C# Class PunkX.Tween

Base class for all Tween objects, can be added to any Core-extended classes.
Afficher le fichier Open project: RichardMarks/PunkX Class Usage Examples

Méthodes publiques

Свойство Type Description
active System.Boolean
complete CompletionDelegate

Protected Properties

Свойство Type Description
_ease EaserDelegate
_t float
_target uint
_time float

Méthodes publiques

Méthode Description
Tween ( uint duration, uint type, CompletionDelegate onCompletion = null, EaserDelegate ease = null ) : System

Constructor. Specify basic information about the Tween.

start ( ) : void

Starts the Tween, or restarts it if it's currently running.

update ( ) : void

Updates the Tween, called by World.

Private Methods

Méthode Description
finish ( ) : void

Called when the Tween completes.

Method Details

Tween() public méthode

Constructor. Specify basic information about the Tween.
public Tween ( uint duration, uint type, CompletionDelegate onCompletion = null, EaserDelegate ease = null ) : System
duration uint Duration of the tween (in seconds or frames).
type uint Tween type, one of Tween.PERSIST (default), Tween.LOOPING, or Tween.ONESHOT.
onCompletion CompletionDelegate Optional callback for when the Tween completes.
ease EaserDelegate Optional easer function to apply to the Tweened value.
Résultat System

start() public méthode

Starts the Tween, or restarts it if it's currently running.
public start ( ) : void
Résultat void

update() public méthode

Updates the Tween, called by World.
public update ( ) : void
Résultat void

Property Details

_ease protected_oe property

protected EaserDelegate _ease
Résultat EaserDelegate

_t protected_oe property

protected float _t
Résultat float

_target protected_oe property

protected uint _target
Résultat uint

_time protected_oe property

protected float _time
Résultat float

active public_oe property

if the tween should update
public Boolean,System active
Résultat System.Boolean

complete public_oe property

callback function to be called when the tween has finished
public CompletionDelegate complete
Résultat CompletionDelegate