Show / Hide Table of Contents

Class Example2Chest

Example implementation of a chest that is opened (sprite change) when the players interacts with it.

Inheritance
System.Object
InteractableBase
Example2Chest
Implements
IInteractable
Inherited Members
InteractableBase.InteractionText
InteractableBase.Start()
InteractableBase.ShowText(String)
InteractableBase.HideText()
InteractableBase.OnDisable()
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
InteractableBase.BeginInteract()

EndInteract()

Declaration
public override void EndInteract()
Overrides
InteractableBase.EndInteract()

Interact()

Declaration
public override void Interact()
Overrides
InteractableBase.Interact()

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
Overrides
InteractableBase.IsInteractionAllowed()

Implements

IInteractable
In This Article
Back to top Generated by DocFX