C# Class SuperSprite, urban-survivors

Inheritance: MonoBehaviour
Afficher le fichier Open project: exdev/urban-survivors Class Usage Examples

Méthodes publiques

Свойство Type Description
animations SuperSpriteAnim[],
defaultAnim int
playDefaultAnimOnStart bool

Protected Properties

Свойство Type Description
animCompleteDelegate AnimCompleteDelegate
animating bool
curAnim SuperSpriteAnim,
m_started bool

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
AnimFinished ( SuperSpriteAnim, anim ) : void

Method Details

AnimFinished() protected méthode

protected AnimFinished ( SuperSpriteAnim, anim ) : void
anim SuperSpriteAnim,
Résultat void

DoAnim() public méthode

Plays the specified SuperSprite animation, but only if it isn't playing already.
public DoAnim ( SuperSpriteAnim, anim ) : void
anim SuperSpriteAnim, The SuperSprite animation to be played.
Résultat void

DoAnim() public méthode

Plays the specified SuperSprite animation, but only if it isn't playing already.
public DoAnim ( int index ) : void
index int The index of the SuperSprite animation to be played.
Résultat void

DoAnim() public méthode

Plays the specified SuperSprite animation, but only if it isn't playing already.
public DoAnim ( string name ) : void
name string
Résultat void

GetAnim() public méthode

Returns the SuperSpriteAnim at the specified index.
public GetAnim ( int index ) : SuperSpriteAnim,
index int The index of the desired animation.
Résultat SuperSpriteAnim,

GetAnim() public méthode

Returns the SuperSpriteAnim with the specified name.
public GetAnim ( string name ) : SuperSpriteAnim,
name string The name of the desired animation.
Résultat SuperSpriteAnim,

GetCurAnim() public méthode

public GetCurAnim ( ) : SuperSpriteAnim,
Résultat SuperSpriteAnim,

Hide() public méthode

Hides the SuperSprite.
public Hide ( bool tf ) : void
tf bool
Résultat void

IsAnimating() public méthode

Returns whether an animation is playing.
public IsAnimating ( ) : bool
Résultat bool

IsHidden() public méthode

Returns whether the SuperSprite is hidden.
public IsHidden ( ) : bool
Résultat bool

PauseAnim() public méthode

Pauses the currently playing animation.
public PauseAnim ( ) : void
Résultat void

PlayAnim() public méthode

Plays the specified SuperSprite animation.
public PlayAnim ( SuperSpriteAnim, anim ) : void
anim SuperSpriteAnim, The SuperSprite animation to be played.
Résultat void

PlayAnim() public méthode

Plays the specified SuperSprite animation.
public PlayAnim ( int index ) : void
index int The index of the SuperSprite animation to be played.
Résultat void

PlayAnim() public méthode

Plays the specified SuperSprite animation.
public PlayAnim ( string anim ) : void
anim string The name of the SuperSprite animation to be played.
Résultat void

SetAnimCompleteDelegate() public méthode

Sets the delegate to be called upon animation completion.
public SetAnimCompleteDelegate ( AnimCompleteDelegate del ) : void
del AnimCompleteDelegate The delegate to be called when an animation finishes playing.
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

StopAnim() public méthode

Stops the current animation from playing and resets it to the beginning for playing again.
public StopAnim ( ) : void
Résultat void

UnpauseAnim() public méthode

Resumes an animation from where it left off previously.
public UnpauseAnim ( ) : void
Résultat void

Property Details

animCompleteDelegate protected_oe property

protected AnimCompleteDelegate animCompleteDelegate
Résultat AnimCompleteDelegate

animating protected_oe property

protected bool animating
Résultat bool

animations public_oe property

The animations that comprise this SuperSprite.
public SuperSpriteAnim[], animations
Résultat SuperSpriteAnim[],

curAnim protected_oe property

protected SuperSpriteAnim, curAnim
Résultat SuperSpriteAnim,

defaultAnim public_oe property

The default animation.
public int defaultAnim
Résultat int

m_started protected_oe property

protected bool m_started
Résultat bool

playDefaultAnimOnStart public_oe property

Whether or not to play the default animation when the object is started.
public bool playDefaultAnimOnStart
Résultat bool