C# 클래스 SuperSprite, urban-survivors

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

공개 프로퍼티들

프로퍼티 타입 설명
animations SuperSpriteAnim[],
defaultAnim int
playDefaultAnimOnStart bool

보호된 프로퍼티들

프로퍼티 타입 설명
animCompleteDelegate AnimCompleteDelegate
animating bool
curAnim SuperSpriteAnim,
m_started bool

공개 메소드들

메소드 설명
DoAnim ( SuperSpriteAnim, anim ) : void

Plays the specified SuperSprite animation, but only if it isn't playing already.

DoAnim ( int index ) : void

Plays the specified SuperSprite animation, but only if it isn't playing already.

DoAnim ( string name ) : void

Plays the specified SuperSprite animation, but only if it isn't playing already.

GetAnim ( int index ) : SuperSpriteAnim,

Returns the SuperSpriteAnim at the specified index.

GetAnim ( string name ) : SuperSpriteAnim,

Returns the SuperSpriteAnim with the specified name.

GetCurAnim ( ) : SuperSpriteAnim,
Hide ( bool tf ) : void

Hides the SuperSprite.

IsAnimating ( ) : bool

Returns whether an animation is playing.

IsHidden ( ) : bool

Returns whether the SuperSprite is hidden.

PauseAnim ( ) : void

Pauses the currently playing animation.

PlayAnim ( SuperSpriteAnim, anim ) : void

Plays the specified SuperSprite animation.

PlayAnim ( int index ) : void

Plays the specified SuperSprite animation.

PlayAnim ( string anim ) : void

Plays the specified SuperSprite animation.

SetAnimCompleteDelegate ( AnimCompleteDelegate del ) : void

Sets the delegate to be called upon animation completion.

Start ( ) : void
StopAnim ( ) : void

Stops the current animation from playing and resets it to the beginning for playing again.

UnpauseAnim ( ) : void

Resumes an animation from where it left off previously.

보호된 메소드들

메소드 설명
AnimFinished ( SuperSpriteAnim, anim ) : void

메소드 상세

AnimFinished() 보호된 메소드

protected AnimFinished ( SuperSpriteAnim, anim ) : void
anim SuperSpriteAnim,
리턴 void

DoAnim() 공개 메소드

Plays the specified SuperSprite animation, but only if it isn't playing already.
public DoAnim ( SuperSpriteAnim, anim ) : void
anim SuperSpriteAnim, The SuperSprite animation to be played.
리턴 void

DoAnim() 공개 메소드

Plays the specified SuperSprite animation, but only if it isn't playing already.
public DoAnim ( int index ) : void
index int The index of the SuperSprite animation to be played.
리턴 void

DoAnim() 공개 메소드

Plays the specified SuperSprite animation, but only if it isn't playing already.
public DoAnim ( string name ) : void
name string
리턴 void

GetAnim() 공개 메소드

Returns the SuperSpriteAnim at the specified index.
public GetAnim ( int index ) : SuperSpriteAnim,
index int The index of the desired animation.
리턴 SuperSpriteAnim,

GetAnim() 공개 메소드

Returns the SuperSpriteAnim with the specified name.
public GetAnim ( string name ) : SuperSpriteAnim,
name string The name of the desired animation.
리턴 SuperSpriteAnim,

GetCurAnim() 공개 메소드

public GetCurAnim ( ) : SuperSpriteAnim,
리턴 SuperSpriteAnim,

Hide() 공개 메소드

Hides the SuperSprite.
public Hide ( bool tf ) : void
tf bool
리턴 void

IsAnimating() 공개 메소드

Returns whether an animation is playing.
public IsAnimating ( ) : bool
리턴 bool

IsHidden() 공개 메소드

Returns whether the SuperSprite is hidden.
public IsHidden ( ) : bool
리턴 bool

PauseAnim() 공개 메소드

Pauses the currently playing animation.
public PauseAnim ( ) : void
리턴 void

PlayAnim() 공개 메소드

Plays the specified SuperSprite animation.
public PlayAnim ( SuperSpriteAnim, anim ) : void
anim SuperSpriteAnim, The SuperSprite animation to be played.
리턴 void

PlayAnim() 공개 메소드

Plays the specified SuperSprite animation.
public PlayAnim ( int index ) : void
index int The index of the SuperSprite animation to be played.
리턴 void

PlayAnim() 공개 메소드

Plays the specified SuperSprite animation.
public PlayAnim ( string anim ) : void
anim string The name of the SuperSprite animation to be played.
리턴 void

SetAnimCompleteDelegate() 공개 메소드

Sets the delegate to be called upon animation completion.
public SetAnimCompleteDelegate ( AnimCompleteDelegate del ) : void
del AnimCompleteDelegate The delegate to be called when an animation finishes playing.
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

StopAnim() 공개 메소드

Stops the current animation from playing and resets it to the beginning for playing again.
public StopAnim ( ) : void
리턴 void

UnpauseAnim() 공개 메소드

Resumes an animation from where it left off previously.
public UnpauseAnim ( ) : void
리턴 void

프로퍼티 상세

animCompleteDelegate 보호되어 있는 프로퍼티

protected AnimCompleteDelegate animCompleteDelegate
리턴 AnimCompleteDelegate

animating 보호되어 있는 프로퍼티

protected bool animating
리턴 bool

animations 공개적으로 프로퍼티

The animations that comprise this SuperSprite.
public SuperSpriteAnim[], animations
리턴 SuperSpriteAnim[],

curAnim 보호되어 있는 프로퍼티

protected SuperSpriteAnim, curAnim
리턴 SuperSpriteAnim,

defaultAnim 공개적으로 프로퍼티

The default animation.
public int defaultAnim
리턴 int

m_started 보호되어 있는 프로퍼티

protected bool m_started
리턴 bool

playDefaultAnimOnStart 공개적으로 프로퍼티

Whether or not to play the default animation when the object is started.
public bool playDefaultAnimOnStart
리턴 bool