Property | Type | Description | |
---|---|---|---|
animations | SuperSpriteAnim[], | ||
defaultAnim | int | ||
playDefaultAnimOnStart | bool |
Property | Type | Description | |
---|---|---|---|
animCompleteDelegate | AnimCompleteDelegate | ||
animating | bool | ||
curAnim | SuperSpriteAnim, | ||
m_started | bool |
Method | Description | |
---|---|---|
DoAnim ( SuperSpriteAnim, anim ) : void |
Plays the specified SuperSprite animation, but only if it isn't playing already.
|
|
DoAnim ( int index ) : void |
Plays the specified SuperSprite animation, but only if it isn't playing already.
|
|
DoAnim ( string name ) : void |
Plays the specified SuperSprite animation, but only if it isn't playing already.
|
|
GetAnim ( int index ) : SuperSpriteAnim, |
Returns the SuperSpriteAnim at the specified index.
|
|
GetAnim ( string name ) : SuperSpriteAnim, |
Returns the SuperSpriteAnim with the specified name.
|
|
GetCurAnim ( ) : SuperSpriteAnim, | ||
Hide ( bool tf ) : void |
Hides the SuperSprite.
|
|
IsAnimating ( ) : bool |
Returns whether an animation is playing.
|
|
IsHidden ( ) : bool |
Returns whether the SuperSprite is hidden.
|
|
PauseAnim ( ) : void |
Pauses the currently playing animation.
|
|
PlayAnim ( SuperSpriteAnim, anim ) : void |
Plays the specified SuperSprite animation.
|
|
PlayAnim ( int index ) : void |
Plays the specified SuperSprite animation.
|
|
PlayAnim ( string anim ) : void |
Plays the specified SuperSprite animation.
|
|
SetAnimCompleteDelegate ( AnimCompleteDelegate del ) : void |
Sets the delegate to be called upon animation completion.
|
|
Start ( ) : void | ||
StopAnim ( ) : void |
Stops the current animation from playing and resets it to the beginning for playing again.
|
|
UnpauseAnim ( ) : void |
Resumes an animation from where it left off previously.
|
Method | Description | |
---|---|---|
AnimFinished ( SuperSpriteAnim, anim ) : void |
protected AnimFinished ( SuperSpriteAnim, anim ) : void | ||
anim | SuperSpriteAnim, | |
return | void |
public DoAnim ( SuperSpriteAnim, anim ) : void | ||
anim | SuperSpriteAnim, | The SuperSprite animation to be played. |
return | void |
public DoAnim ( int index ) : void | ||
index | int | The index of the SuperSprite animation to be played. |
return | void |
public GetAnim ( int index ) : SuperSpriteAnim, | ||
index | int | The index of the desired animation. |
return | SuperSpriteAnim, |
public GetAnim ( string name ) : SuperSpriteAnim, | ||
name | string | The name of the desired animation. |
return | SuperSpriteAnim, |
public PlayAnim ( SuperSpriteAnim, anim ) : void | ||
anim | SuperSpriteAnim, | The SuperSprite animation to be played. |
return | void |
public PlayAnim ( int index ) : void | ||
index | int | The index of the SuperSprite animation to be played. |
return | void |
public PlayAnim ( string anim ) : void | ||
anim | string | The name of the SuperSprite animation to be played. |
return | void |
public SetAnimCompleteDelegate ( AnimCompleteDelegate del ) : void | ||
del | AnimCompleteDelegate | The delegate to be called when an animation finishes playing. |
return | void |
protected AnimCompleteDelegate animCompleteDelegate | ||
return | AnimCompleteDelegate |