Show / Hide Table of Contents

Class GungeonDoor

Example implementation of doors that can be locked.

Inheritance
System.Object
InteractableBase
GungeonDoor
Implements
IInteractable
Inherited Members
InteractableBase.InteractionText
InteractableBase.Start()
InteractableBase.ShowText(String)
InteractableBase.HideText()
InteractableBase.IsInteractionAllowed()
InteractableBase.OnDisable()
Namespace: Edgar.Unity.Examples.Gungeon
Assembly: cs.temp.dll.dll
Syntax
public class GungeonDoor : InteractableBase, IInteractable

Fields

State

Declaration
public GungeonDoor.DoorState State
Field Value
Type Description
GungeonDoor.DoorState

Methods

BeginInteract()

Show text when the interaction begins (player is close to the door).

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

EndInteract()

Hide text when the interaction ends (player gets further from doors).

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

Interact()

Check for key press when the player is near.

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

Implements

IInteractable
In This Article
Back to top Generated by DocFX