C# 클래스 AbstractGoTween, wepwep

base class shared by the Tween and TweenChain classes to allow a seemless API when controlling either of them
파일 보기 프로젝트 열기: encephalopathy/wepwep 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
id int

보호된 프로퍼티들

프로퍼티 타입 설명
_completedIterations int
_deltaIterations int
_didBegin bool
_didInit bool
_didIterateLastFrame bool
_didIterateThisFrame bool
_elapsedTime float
_fireIterationEnd bool
_fireIterationStart bool
_isLoopingBackOnPingPong bool
_onBegin Action
_onComplete Action
_onInit Action
_onIterationEnd Action
_onIterationStart Action
_onUpdate Action
_totalElapsedTime float

공개 메소드들

메소드 설명
allTweenProperties ( ) : List

returns a list of all the TweenProperties contained in the tween and all its children (if it is a TweenChain or a TweenFlow) technically, this should be marked as internal

complete ( ) : void

completes the tween. sets the playhead to it's final position as if the tween completed normally. takes into account if the tween was playing forward or reversed.

containsTweenProperty ( AbstractTweenProperty, property ) : bool

returns true if the tween contains the same type (or propertyName) property in its property list technically, this should be marked as internal

destroy ( ) : void

removes the Tween from action and cleans up its state

goTo ( float time ) : void

goes to the specified time clamping it from 0 to the total duration of the tween. if the tween is not playing it can optionally be force updated to the time specified. delays are not taken into effect. (must be implemented by inherited classes.)

goToAndPlay ( float time ) : void

goes to the time and starts playback skipping any delays

isValid ( ) : bool

subclasses should return true if they are a valid and ready to be added to the list of running tweens or false if not ready. technically, this should be marked as internal

pause ( ) : void

pauses playback

play ( ) : void

resumes playback

playBackwards ( ) : void

plays the tween backwards. if it is already playing backwards has no effect

playForward ( ) : void

plays the tween forward. if it is already playing forward has no effect

removeTweenProperty ( AbstractTweenProperty, property ) : bool

attempts to remove the tween property returning true if successful technically, this should be marked as internal

restart ( bool skipDelay = true ) : void

rewinds the tween to the beginning (or end, depending on isReversed) and starts playback, optionally skipping delay (only relevant for Tweens).

reverse ( ) : void

reverses playback. if going forward it will be going backward after this and vice versa.

rewind ( ) : void

rewinds the tween to the beginning (or end, depending on isReversed) and pauses playback.

setOnBeginHandler ( Action onBegin ) : void
setOnCompleteHandler ( Action onComplete ) : void
setOnInitHandler ( Action onInit ) : void
setOnUpdateHandler ( Action onUpdate ) : void
setonIterationEndHandler ( Action onIterationEnd ) : void
setonIterationStartHandler ( Action onIterationStart ) : void
update ( float deltaTime ) : bool

tick method. if it returns true it indicates the tween is complete. note: at it's base, AbstractGoTween does not fire events, it is up to the implementer to do so. see GoTween and AbstractGoTweenCollection for examples.

waitForCompletion ( ) : IEnumerator

waits for either completion or destruction. call in a Coroutine and yield on the return

보호된 메소드들

메소드 설명
onBegin ( ) : void

called whenever the tween is updated and the playhead is at the start (or end, depending on isReversed) of the tween.

onComplete ( ) : void

called when the tween completes playing.

onInit ( ) : void

called once per tween when it is first updated

onIterationEnd ( ) : void

called once per iteration at the end of the iteration.

onIterationStart ( ) : void

called once per iteration at the start of the iteration.

onUpdate ( ) : void

called once per update, after the update has occured.

reset ( ) : void

resets the tween to the beginning, taking isReversed into account.

메소드 상세

allTweenProperties() 공개 추상적인 메소드

returns a list of all the TweenProperties contained in the tween and all its children (if it is a TweenChain or a TweenFlow) technically, this should be marked as internal
public abstract allTweenProperties ( ) : List
리턴 List

complete() 공개 메소드

completes the tween. sets the playhead to it's final position as if the tween completed normally. takes into account if the tween was playing forward or reversed.
public complete ( ) : void
리턴 void

containsTweenProperty() 공개 추상적인 메소드

returns true if the tween contains the same type (or propertyName) property in its property list technically, this should be marked as internal
public abstract containsTweenProperty ( AbstractTweenProperty, property ) : bool
property AbstractTweenProperty,
리턴 bool

destroy() 공개 메소드

removes the Tween from action and cleans up its state
public destroy ( ) : void
리턴 void

goTo() 공개 추상적인 메소드

goes to the specified time clamping it from 0 to the total duration of the tween. if the tween is not playing it can optionally be force updated to the time specified. delays are not taken into effect. (must be implemented by inherited classes.)
public abstract goTo ( float time ) : void
time float
리턴 void

goToAndPlay() 공개 메소드

goes to the time and starts playback skipping any delays
public goToAndPlay ( float time ) : void
time float
리턴 void

isValid() 공개 추상적인 메소드

subclasses should return true if they are a valid and ready to be added to the list of running tweens or false if not ready. technically, this should be marked as internal
public abstract isValid ( ) : bool
리턴 bool

onBegin() 보호된 메소드

called whenever the tween is updated and the playhead is at the start (or end, depending on isReversed) of the tween.
protected onBegin ( ) : void
리턴 void

onComplete() 보호된 메소드

called when the tween completes playing.
protected onComplete ( ) : void
리턴 void

onInit() 보호된 메소드

called once per tween when it is first updated
protected onInit ( ) : void
리턴 void

onIterationEnd() 보호된 메소드

called once per iteration at the end of the iteration.
protected onIterationEnd ( ) : void
리턴 void

onIterationStart() 보호된 메소드

called once per iteration at the start of the iteration.
protected onIterationStart ( ) : void
리턴 void

onUpdate() 보호된 메소드

called once per update, after the update has occured.
protected onUpdate ( ) : void
리턴 void

pause() 공개 메소드

pauses playback
public pause ( ) : void
리턴 void

play() 공개 메소드

resumes playback
public play ( ) : void
리턴 void

playBackwards() 공개 메소드

plays the tween backwards. if it is already playing backwards has no effect
public playBackwards ( ) : void
리턴 void

playForward() 공개 메소드

plays the tween forward. if it is already playing forward has no effect
public playForward ( ) : void
리턴 void

removeTweenProperty() 공개 추상적인 메소드

attempts to remove the tween property returning true if successful technically, this should be marked as internal
public abstract removeTweenProperty ( AbstractTweenProperty, property ) : bool
property AbstractTweenProperty,
리턴 bool

reset() 보호된 메소드

resets the tween to the beginning, taking isReversed into account.
protected reset ( ) : void
리턴 void

restart() 공개 메소드

rewinds the tween to the beginning (or end, depending on isReversed) and starts playback, optionally skipping delay (only relevant for Tweens).
public restart ( bool skipDelay = true ) : void
skipDelay bool
리턴 void

reverse() 공개 메소드

reverses playback. if going forward it will be going backward after this and vice versa.
public reverse ( ) : void
리턴 void

rewind() 공개 메소드

rewinds the tween to the beginning (or end, depending on isReversed) and pauses playback.
public rewind ( ) : void
리턴 void

setOnBeginHandler() 공개 메소드

public setOnBeginHandler ( Action onBegin ) : void
onBegin Action
리턴 void

setOnCompleteHandler() 공개 메소드

public setOnCompleteHandler ( Action onComplete ) : void
onComplete Action
리턴 void

setOnInitHandler() 공개 메소드

public setOnInitHandler ( Action onInit ) : void
onInit Action
리턴 void

setOnUpdateHandler() 공개 메소드

public setOnUpdateHandler ( Action onUpdate ) : void
onUpdate Action
리턴 void

setonIterationEndHandler() 공개 메소드

public setonIterationEndHandler ( Action onIterationEnd ) : void
onIterationEnd Action
리턴 void

setonIterationStartHandler() 공개 메소드

public setonIterationStartHandler ( Action onIterationStart ) : void
onIterationStart Action
리턴 void

update() 공개 메소드

tick method. if it returns true it indicates the tween is complete. note: at it's base, AbstractGoTween does not fire events, it is up to the implementer to do so. see GoTween and AbstractGoTweenCollection for examples.
public update ( float deltaTime ) : bool
deltaTime float
리턴 bool

waitForCompletion() 공개 메소드

waits for either completion or destruction. call in a Coroutine and yield on the return
public waitForCompletion ( ) : IEnumerator
리턴 IEnumerator

프로퍼티 상세

_completedIterations 보호되어 있는 프로퍼티

protected int _completedIterations
리턴 int

_deltaIterations 보호되어 있는 프로퍼티

protected int _deltaIterations
리턴 int

_didBegin 보호되어 있는 프로퍼티

protected bool _didBegin
리턴 bool

_didInit 보호되어 있는 프로퍼티

protected bool _didInit
리턴 bool

_didIterateLastFrame 보호되어 있는 프로퍼티

protected bool _didIterateLastFrame
리턴 bool

_didIterateThisFrame 보호되어 있는 프로퍼티

protected bool _didIterateThisFrame
리턴 bool

_elapsedTime 보호되어 있는 프로퍼티

protected float _elapsedTime
리턴 float

_fireIterationEnd 보호되어 있는 프로퍼티

protected bool _fireIterationEnd
리턴 bool

_fireIterationStart 보호되어 있는 프로퍼티

protected bool _fireIterationStart
리턴 bool

_isLoopingBackOnPingPong 보호되어 있는 프로퍼티

protected bool _isLoopingBackOnPingPong
리턴 bool

_onBegin 보호되어 있는 프로퍼티

protected Action _onBegin
리턴 Action

_onComplete 보호되어 있는 프로퍼티

protected Action _onComplete
리턴 Action

_onInit 보호되어 있는 프로퍼티

protected Action _onInit
리턴 Action

_onIterationEnd 보호되어 있는 프로퍼티

protected Action _onIterationEnd
리턴 Action

_onIterationStart 보호되어 있는 프로퍼티

protected Action _onIterationStart
리턴 Action

_onUpdate 보호되어 있는 프로퍼티

protected Action _onUpdate
리턴 Action

_totalElapsedTime 보호되어 있는 프로퍼티

protected float _totalElapsedTime
리턴 float

id 공개적으로 프로퍼티

public int id
리턴 int