private void Animate()
{
switch (animationType)
{
case UIAnimationTypes.Fade:
tweenObject = Fade();
break;
case UIAnimationTypes.Move:
tweenObject = Move();
break;
case UIAnimationTypes.Scale:
tweenObject = Scale();
break;
}
tweenObject.setDelay(delay);
tweenObject.setEase(easeType);
if (loop)
{
tweenObject.setLoopClamp();
}
if (pingpong)
{
tweenObject.setLoopPingPong();
}
}