Animator

Animator

new Animator()

Source:

No params for constructor

Members

incrementFrame

Source:

Used to increment the frame counter.

state

Source:

Returns the current animation state.

Methods

fireAnimation()

Source:

Fire animation logic

idleAnimation()

Source:

Idle animation logic

resetFrameCounter()

Source:

Reset frame counter to 0.

returnToIdle(a, b)

Source:

Returns back to idle animation.

Parameters:
Name Type Description
a number

State 1.

b number

State 2.