Show / Hide Table of Contents

Class Example1Door

Example implementation of doors that are opened (disabled) after pressing E if the player is near enough.

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

Methods

BeginInteract()

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

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