Class Room_Trap_Toggleable
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
Room_Trap_Toggleable
Implements
Inherited Members
Namespace: Global
Assembly: Dew.Core.dll
Syntax
[DewResourceLink(ResourceLinkBy.None)]
public abstract class Room_Trap_Toggleable : Actor, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IToggleableTrap, IBanRoomNodesNearby, IBanCampsNearby
Fields
fxOff
Declaration
public GameObject fxOff
Field Value
| Type | Description |
|---|---|
| UnityEngine.GameObject |
fxOn
Declaration
public GameObject fxOn
Field Value
| Type | Description |
|---|---|
| UnityEngine.GameObject |
Properties
isOn
Declaration
public bool isOn { get; }
Property Value
| Type | Description |
|---|---|
| bool |
startTime
Available on server. Based on Time.time. By default it is negative infinity.
Declaration
public float startTime { get; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
OnStartTrapServer()
Called on server when this trap is started.
Declaration
protected virtual void OnStartTrapServer()
OnStopTrapServer()
Called on server when this trap is stopped.
Declaration
protected virtual void OnStopTrapServer()
StartTrap()
Declaration
public void StartTrap()
StopTrap()
Declaration
public void StopTrap()