Class RoomComponent
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
RoomComponent
Implements
Inherited Members
Namespace: Global
Assembly: Dew.Core.dll
Syntax
[RequireComponent(typeof(Room))]
public class RoomComponent : DewNetworkBehaviour, ILogicUpdate
Properties
isRevisit
Declaration
public bool isRevisit { get; }
Property Value
| Type | Description |
|---|---|
| bool |
isRoomActive
Declaration
public bool isRoomActive { get; }
Property Value
| Type | Description |
|---|---|
| bool |
room
Declaration
public Room room { get; }
Property Value
| Type | Description |
|---|---|
| Room |
Methods
ActiveLogicUpdate(float)
Declaration
protected virtual void ActiveLogicUpdate(float dt)
Parameters
| Type | Name | Description |
|---|---|---|
| float | dt |
Awake()
Declaration
protected override void Awake()
Overrides
LogicUpdate(float)
Declaration
public override void LogicUpdate(float dt)
Parameters
| Type | Name | Description |
|---|---|---|
| float | dt |
Overrides
OnRoomStart()
Called everywhere when this room has finished loading and needs setup.
Declaration
public virtual void OnRoomStart()
OnRoomStartServer()
Called on server when this room has finished loading and needs setup.
Declaration
public virtual void OnRoomStartServer()
OnRoomStop()
Called everywhere when next room is about to load and this room is cleaning up.
Declaration
public virtual void OnRoomStop()
OnRoomStopServer()
Called on server when next room is about to load and this room is cleaning up.
Populate save data here.
Declaration
public virtual void OnRoomStopServer()