Class Example2Chest
Example implementation of a chest that is opened (sprite change) when the players interacts with it.
Implements
Inherited Members
Namespace: Edgar.Unity.Examples.Example2
Assembly: cs.temp.dll.dll
Syntax
public class Example2Chest : InteractableBase, IInteractable
Fields
AlreadyOpened
Declaration
public bool AlreadyOpened
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
BeginInteract()
Declaration
public override void BeginInteract()
Overrides
EndInteract()
Declaration
public override void EndInteract()
Overrides
Interact()
Declaration
public override void Interact()
Overrides
IsInteractionAllowed()
Make sure to not make it possible to interact with the chest when it is already opened.
Declaration
public override bool IsInteractionAllowed()
Returns
Type | Description |
---|---|
System.Boolean |