C# Класс GoTween, GoKit

Наследование: AbstractGoTween
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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