C# Class GoTween, GoKit

Inheritance: AbstractGoTween
Afficher le fichier Open project: prime31/GoKit Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
onInit ( ) : void

called only once the first update of a tween.

Method Details

GoTween() public méthode

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
Résultat System

addTweenProperty() public méthode

adds the tween property if it passes validation and initializes the property
public addTweenProperty ( AbstractTweenProperty, tweenProp ) : void
tweenProp AbstractTweenProperty,
Résultat void

allTweenProperties() public méthode

public allTweenProperties ( ) : List
Résultat List

clearTweenProperties() public méthode

public clearTweenProperties ( ) : void
Résultat void

complete() public méthode

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
Résultat void

containsTweenProperty() public méthode

public containsTweenProperty ( AbstractTweenProperty, property ) : bool
property AbstractTweenProperty,
Résultat bool

destroy() public méthode

removes the tween and cleans up its state
public destroy ( ) : void
Résultat void

goTo() public méthode

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
Résultat void

isValid() public méthode

we are valid if we have a target and at least one TweenProperty
public isValid ( ) : bool
Résultat bool

onInit() protected méthode

called only once the first update of a tween.
protected onInit ( ) : void
Résultat void

removeTweenProperty() public méthode

public removeTweenProperty ( AbstractTweenProperty, property ) : bool
property AbstractTweenProperty,
Résultat bool

update() public méthode

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