Class Rift
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
Rift
Assembly: Dew.Core.dll
Syntax
[DewResourceLink(ResourceLinkBy.None)]
public class Rift : Actor, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IInteractable, IBanRoomNodesNearby
Fields
afterOpenInteractableDelay
Declaration
public float afterOpenInteractableDelay
Field Value
chargeDuration
Declaration
public float chargeDuration
Field Value
fxActivate
Declaration
public GameObject fxActivate
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
fxCharge
Declaration
public GameObject fxCharge
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
fxLocked
Declaration
public GameObject fxLocked
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
fxLoop
Declaration
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
fxOpen
Declaration
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
fxUnlocked
Declaration
public GameObject fxUnlocked
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
softInstance
Declaration
public static Rift softInstance
Field Value
Properties
canInteractWithMouse
Declaration
public bool canInteractWithMouse { get; }
Property Value
focusDistance
Declaration
public float focusDistance { get; }
Property Value
instance
Declaration
public static Rift instance { get; }
Property Value
interactPivot
Declaration
public Transform interactPivot { get; }
Property Value
| Type |
Description |
| UnityEngine.Transform |
|
isDestroyedOnRoomChange
Declaration
public override bool isDestroyedOnRoomChange { get; }
Property Value
Overrides
isLocked
Declaration
[SaveVar(SaveVarFlags.Default)]
public bool isLocked { get; set; }
Property Value
isOpen
Declaration
[SaveVar(SaveVarFlags.Default)]
public bool isOpen { get; set; }
Property Value
Methods
Awake()
Declaration
protected override void Awake()
Overrides
CanInteract(Entity)
Declaration
public virtual bool CanInteract(Entity entity)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
Returns
Close()
Declaration
[Button]
public void Close()
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroyActor()
Declaration
protected override void OnDestroyActor()
Overrides
OnInteractRift(Hero)
Called on server when a hero interacts with this rift.
Return true to indicate success of interaction. (Will play activate effect)
Declaration
protected virtual bool OnInteractRift(Hero hero)
Parameters
| Type |
Name |
Description |
| Hero |
hero |
|
Returns
Open()
Open the rift with charging animation. If you wish to skip the animation, set the isOpen property directly.
Declaration
[Button]
public void Open()
ShouldBeSavedWithRoom()
Declaration
public override bool ShouldBeSavedWithRoom()
Returns
Overrides
Explicit Interface Implementations
IInteractable.OnInteract(Entity, bool)
Declaration
void IInteractable.OnInteract(Entity entity, bool alt)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
| bool |
alt |
|
IInteractable.priority
Declaration
int IInteractable.priority { get; }
Returns
Implements
Extension Methods