C# Class SpriteAnimationPump, marblemadness

Drives all sprite animation using a coroutine. A SpriteAnimationPump instance will be automatically created by the first sprite created in the scene.
Inheritance: MonoBehaviour
Afficher le fichier Open project: MtvnGames/marblemadness Class Usage Examples

Méthodes publiques

Свойство Type Description
animationPumpInterval float

Protected Properties

Свойство Type Description
cur ISpriteAnimatable
head ISpriteAnimatable
pumpIsDone bool
pumpIsRunning bool

Méthodes publiques

Méthode Description
Add ( ISpriteAnimatable s ) : void
OnDestroy ( ) : void
Remove ( ISpriteAnimatable s ) : void
StartAnimationPump ( ) : void

Starts the animation pump coroutine. Normally, there is no need to call this directly. Only use this if you have manually stopped the pump to pause all animations or something.

StopAnimationPump ( ) : void

Stops the animation pump from running. Normally, there is no need to call this directly. Only use this if you want to pause all animations or something.

Méthodes protégées

Méthode Description
AnimationPump ( ) : IEnumerator
PumpStarter ( ) : IEnumerator

Private Methods

Méthode Description
Awake ( ) : void
OnApplicationPause ( bool paused ) : void

Method Details

Add() public static méthode

public static Add ( ISpriteAnimatable s ) : void
s ISpriteAnimatable
Résultat void

AnimationPump() protected static méthode

protected static AnimationPump ( ) : IEnumerator
Résultat IEnumerator

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

PumpStarter() protected méthode

protected PumpStarter ( ) : IEnumerator
Résultat IEnumerator

Remove() public static méthode

public static Remove ( ISpriteAnimatable s ) : void
s ISpriteAnimatable
Résultat void

StartAnimationPump() public méthode

Starts the animation pump coroutine. Normally, there is no need to call this directly. Only use this if you have manually stopped the pump to pause all animations or something.
public StartAnimationPump ( ) : void
Résultat void

StopAnimationPump() public static méthode

Stops the animation pump from running. Normally, there is no need to call this directly. Only use this if you want to pause all animations or something.
public static StopAnimationPump ( ) : void
Résultat void

Property Details

animationPumpInterval public_oe static_oe property

The interval between animation coroutine updates. Defaults to 0.03333f (30 frames per second).
public static float animationPumpInterval
Résultat float

cur protected_oe static_oe property

protected static ISpriteAnimatable cur
Résultat ISpriteAnimatable

head protected_oe static_oe property

protected static ISpriteAnimatable head
Résultat ISpriteAnimatable

pumpIsDone protected_oe static_oe property

protected static bool pumpIsDone
Résultat bool

pumpIsRunning protected_oe static_oe property

protected static bool pumpIsRunning
Résultat bool