C# Класс FlatRedBall.Utilities.CustomBehaviorFunctions

Static class containing a collection of common methods used as CustomBehaviors.
Показать файл Открыть проект

Открытые методы

Метод Описание
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).

Описание методов

RemoveWhenAlphaIs1() публичный статический Метод

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.
Результат void

RemoveWhenInvisible() публичный статический Метод

Removes the argument Sprite when its Alpha equals 0.
public static RemoveWhenInvisible ( Sprite sprite ) : void
sprite Sprite The Sprite to remove.
Результат void

RemoveWhenJustCycled() публичный статический Метод

Removes teh argument Sprite after it cycles its AnimationChain.
public static RemoveWhenJustCycled ( Sprite sprite ) : void
sprite Sprite The Sprite to remove.
Результат void

RemoveWhenOutsideOfScreen() публичный статический Метод

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.
Результат void