11using System.Collections;
16 private static int _nextInstanceId = 1;
88 Pool<TweenInstance>.Recycle(
this);
108 progress = Mathf.SmoothStep(0, 1,
curPercent);
137 private int _instanceId;
140 _instance = instance;
const int ID_INVALID_STATE
bool returnToPoolUponStop
void Step(TweenRunner runner)
void interpolatePercent()
IInterpolator[] interpolators
TweenYieldInstruction yieldInstruction
Action< float > OnProgress
Func< float, float > smoothFunction
const int ID_WAITING_FOR_RECYCLE
void RemoveTween(TweenInstance instance)
Implement this interface to add your own interpolators to Tween!
bool isValid
Returns whether or not this interpolator is currently considered valid. Any invalid interpolators wil...
void Interpolate(float percent)
Called to trigger the interpolation of this interpolator. Use this callback to do whatever work your ...
Implement this interface to recieve a callback whenever your object is spawned from a pool.
TweenYieldInstruction(TweenInstance instance)