A class representing a state.

Constructors

Properties

Methods

Constructors

Properties

name?: string

The name of the state.

manager?: StateManager

The manager instance this state belongs to.

Methods

  • Called when entering the state.

    Parameters

    • Rest ...args: any[]

    Returns void

  • Called when executing the state.

    Parameters

    • pDelta: number

      The delta time since the last update in seconds.

    Returns void

  • Called when exiting the state.

    Returns void