C# 클래스 SuperSpriteAnim, urban-survivors

파일 보기 프로젝트 열기: exdev/urban-survivors 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
deactivateNonPlaying bool
deactivateRecursively bool
loopCycles int
name string
onAnimEnd ANIM_END_ACTION
pingPong bool
spriteAnims SuperSpriteAnimElement[],

보호된 프로퍼티들

프로퍼티 타입 설명
curAnim int
isRunning bool
numLoops int
stepDir int

공개 메소드들

메소드 설명
AnimFinished ( SpriteBase, sp ) : void
Delete ( ) : void

Calls Delete() on each constituent sprite.

Hide ( bool tf ) : void

Hides the sprite of the current animation.

Init ( int idx, AnimCompletedDelegate del ) : void
IsHidden ( ) : bool

Returns whether the current sprite in this animation is hidden:

Pause ( ) : void

Pauses the animation.

Play ( ) : void

Starts the animation to playing.

Reset ( ) : void

Resets the animation to the beginning.

Stop ( ) : void

Stops the animation playing.

Unpause ( ) : void

Unpauses the animation.

보호된 메소드들

메소드 설명
HideSprite ( SpriteBase, sp, bool tf ) : void

메소드 상세

AnimFinished() 공개 메소드

public AnimFinished ( SpriteBase, sp ) : void
sp SpriteBase,
리턴 void

Delete() 공개 메소드

Calls Delete() on each constituent sprite.
public Delete ( ) : void
리턴 void

Hide() 공개 메소드

Hides the sprite of the current animation.
public Hide ( bool tf ) : void
tf bool Whether to hide the animation.
리턴 void

HideSprite() 보호된 메소드

protected HideSprite ( SpriteBase, sp, bool tf ) : void
sp SpriteBase,
tf bool
리턴 void

Init() 공개 메소드

public Init ( int idx, AnimCompletedDelegate del ) : void
idx int
del AnimCompletedDelegate
리턴 void

IsHidden() 공개 메소드

Returns whether the current sprite in this animation is hidden:
public IsHidden ( ) : bool
리턴 bool

Pause() 공개 메소드

Pauses the animation.
public Pause ( ) : void
리턴 void

Play() 공개 메소드

Starts the animation to playing.
public Play ( ) : void
리턴 void

Reset() 공개 메소드

Resets the animation to the beginning.
public Reset ( ) : void
리턴 void

Stop() 공개 메소드

Stops the animation playing.
public Stop ( ) : void
리턴 void

Unpause() 공개 메소드

Unpauses the animation.
public Unpause ( ) : void
리턴 void

프로퍼티 상세

curAnim 보호되어 있는 프로퍼티

protected int curAnim
리턴 int

deactivateNonPlaying 공개적으로 프로퍼티

When set to true, non-playing sprites' GameObjects will be deactivated and not merely hidden.
public bool deactivateNonPlaying
리턴 bool

deactivateRecursively 공개적으로 프로퍼티

When set to true, non-playing sprites' GameObjecs will be deactivated recursively. NOTE: Only has effect if deactivateNonPlaying is set to true.
public bool deactivateRecursively
리턴 bool

isRunning 보호되어 있는 프로퍼티

protected bool isRunning
리턴 bool

loopCycles 공개적으로 프로퍼티

How many times to loop the animation, IN ADDITION to the initial play-through. 0 indicates to place the animation once then stop. 1 indicates to repeat the animation once before stopping, and so on.
public int loopCycles
리턴 int

name 공개적으로 프로퍼티

Name of the animation.
public string name
리턴 string

numLoops 보호되어 있는 프로퍼티

protected int numLoops
리턴 int

onAnimEnd 공개적으로 프로퍼티

What the SuperSprite should do when the animation is done playing.
public ANIM_END_ACTION onAnimEnd
리턴 ANIM_END_ACTION

pingPong 공개적으로 프로퍼티

Reverse the play direction when the end of the animation is reached? (Ping-pong) If true, a loop iteration isn't counted until the animation returns to the beginning. NOTE: This automatically plays the constituent animations in reverse when going back through the animation list, so keep that in mind when creating your individual sprite animations.
public bool pingPong
리턴 bool

spriteAnims 공개적으로 프로퍼티

The actual sprite animations to use.
public SuperSpriteAnimElement[], spriteAnims
리턴 SuperSpriteAnimElement[],

stepDir 보호되어 있는 프로퍼티

protected int stepDir
리턴 int