C# 클래스 FlatRedBall.Utilities.CustomBehaviorFunctions

Static class containing a collection of common methods used as CustomBehaviors.
파일 보기 프로젝트 열기: vchelaru/FlatRedBall

공개 메소드들

메소드 설명
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