C# Class GPSTD_RM.AnimationLoop

Any animations are stored as loops. Loops advance until the end, and then return to a specified point.
Afficher le fichier Open project: dideler/gps-tower-defense Class Usage Examples

Méthodes publiques

Méthode Description
AnimationLoop ( string name, SpriteFrame frames, int rIdx ) : System

Initialize the loop!

NextFrame ( int currentFrame ) : int

Get the next frame based on the current frame.

Method Details

AnimationLoop() public méthode

Initialize the loop!
public AnimationLoop ( string name, SpriteFrame frames, int rIdx ) : System
name string What is the loop called?
frames SpriteFrame The list of frames in the loop.
rIdx int The return index.
Résultat System

NextFrame() public méthode

Get the next frame based on the current frame.
public NextFrame ( int currentFrame ) : int
currentFrame int The current position in the list.
Résultat int