C# Class FlatRedBall.Utilities.CustomBehaviorFunctions

Static class containing a collection of common methods used as CustomBehaviors.
Afficher le fichier Open project: vchelaru/FlatRedBall

Méthodes publiques

Méthode Description
RemoveWhenAlphaIs1 ( Sprite si ) : void

Removes the argument Sprite if it is opaque.

This method is commonly used with Sprites which have a positive AlphaRate and which should be removed when completely visible.

RemoveWhenInvisible ( Sprite sprite ) : void

Removes the argument Sprite when its Alpha equals 0.

RemoveWhenJustCycled ( Sprite sprite ) : void

Removes teh argument Sprite after it cycles its AnimationChain.

RemoveWhenOutsideOfScreen ( Sprite sprite ) : void

Removes the argument Sprite when it is outside of the default Camera's view (SpriteManager.Camera).

Method Details

RemoveWhenAlphaIs1() public static méthode

Removes the argument Sprite if it is opaque.
This method is commonly used with Sprites which have a positive AlphaRate and which should be removed when completely visible.
public static RemoveWhenAlphaIs1 ( Sprite si ) : void
si Sprite Sprite to remove.
Résultat void

RemoveWhenInvisible() public static méthode

Removes the argument Sprite when its Alpha equals 0.
public static RemoveWhenInvisible ( Sprite sprite ) : void
sprite Sprite The Sprite to remove.
Résultat void

RemoveWhenJustCycled() public static méthode

Removes teh argument Sprite after it cycles its AnimationChain.
public static RemoveWhenJustCycled ( Sprite sprite ) : void
sprite Sprite The Sprite to remove.
Résultat void

RemoveWhenOutsideOfScreen() public static méthode

Removes the argument Sprite when it is outside of the default Camera's view (SpriteManager.Camera).
public static RemoveWhenOutsideOfScreen ( Sprite sprite ) : void
sprite Sprite The Sprite to remove.
Résultat void