Reference Source
import {State} from 'state-manager'
public class | source

State

A class representing a state.

Method Summary

Public Methods
public

enter()

Called when entering the state.

public

exit()

Called when exiting the state.

public

update(pDelta: number)

Called when executing the state.

Public Methods

public enter() source

Called when entering the state.

public exit() source

Called when exiting the state.

public update(pDelta: number) source

Called when executing the state.

Params:

NameTypeAttributeDescription
pDelta number

The delta time since the last update in seconds.