C# 클래스 GoTween, GoKit

상속: AbstractGoTween
파일 보기 프로젝트 열기: prime31/GoKit 1 사용 예제들

공개 메소드들

메소드 설명
GoTween ( object target, float duration, GoTweenConfig, config, Action onComplete = null ) : System

initializes a new instance and sets up the details according to the config parameter

addTweenProperty ( AbstractTweenProperty, tweenProp ) : void

adds the tween property if it passes validation and initializes the property

allTweenProperties ( ) : List
clearTweenProperties ( ) : void
complete ( ) : void

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

containsTweenProperty ( AbstractTweenProperty, property ) : bool
destroy ( ) : void

removes the tween and cleans up its state

goTo ( float time, bool skipDelay ) : void

goes to the specified time clamping it from 0 to the total duration of the tween. if the tween is not playing it will be force updated to the time specified.

isValid ( ) : bool

we are valid if we have a target and at least one TweenProperty

removeTweenProperty ( AbstractTweenProperty, property ) : bool
update ( float deltaTime ) : bool

tick method. if it returns true it indicates the tween is complete

보호된 메소드들

메소드 설명
onInit ( ) : void

called only once the first update of a tween.

메소드 상세

GoTween() 공개 메소드

initializes a new instance and sets up the details according to the config parameter
public GoTween ( object target, float duration, GoTweenConfig, config, Action onComplete = null ) : System
target object
duration float
config GoTweenConfig,
onComplete Action
리턴 System

addTweenProperty() 공개 메소드

adds the tween property if it passes validation and initializes the property
public addTweenProperty ( AbstractTweenProperty, tweenProp ) : void
tweenProp AbstractTweenProperty,
리턴 void

allTweenProperties() 공개 메소드

public allTweenProperties ( ) : List
리턴 List

clearTweenProperties() 공개 메소드

public clearTweenProperties ( ) : void
리턴 void

complete() 공개 메소드

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

containsTweenProperty() 공개 메소드

public containsTweenProperty ( AbstractTweenProperty, property ) : bool
property AbstractTweenProperty,
리턴 bool

destroy() 공개 메소드

removes the tween 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 will be force updated to the time specified.
public goTo ( float time, bool skipDelay ) : void
time float
skipDelay bool
리턴 void

isValid() 공개 메소드

we are valid if we have a target and at least one TweenProperty
public isValid ( ) : bool
리턴 bool

onInit() 보호된 메소드

called only once the first update of a tween.
protected onInit ( ) : void
리턴 void

removeTweenProperty() 공개 메소드

public removeTweenProperty ( AbstractTweenProperty, property ) : bool
property AbstractTweenProperty,
리턴 bool

update() 공개 메소드

tick method. if it returns true it indicates the tween is complete
public update ( float deltaTime ) : bool
deltaTime float
리턴 bool