Door

Doors are objects that allow you to move between locations. They can be set to react automatically when the player touches them, or to require the player to press the d-pad in a specific direction first. Additionally, they can be set to require the player to be on a certain side of them before working.

Public Members

public bool willOpenOnTouch

If True, the door will open immediately when the Player touches it, regardless of whether or not they’re pressing a direction on the d-pad.

public Direction.Vertical pressDirectionVertical = Direction.Vertical.Up

If set to Up or Down, this requires the player to press that direction the d-pad before entering.

public Direction.Horizontal pressDirectionHorizontal

If set to Left or Right, this requires the player to press that direction the d-pad before entering.

public RexObject.Side actorSide

The side of the Door that the Player must be on in order to enter. If set to “None,” the player can enter from any side as long as they’re touching the Door.

public ActorAnimations actorAnimations

Strings representing the name of the AnimationClips the Player will play when they enter this door. AnimationClips with these names must be present on the player’s Animator or this won’t play anything.

public DoorAnimations doorAnimations

AnimationClips are slotted here to play on the Door itself when it opens and closes.