Пример #1
0
 public void FadeTo(float fade, float time, OnFinishMovement onFinish = null)
 {
     LeanTween.alpha(gameObject, fade, time).setOnComplete(() =>
     {
         if (onFinish != null)
         {
             onFinish();
         }
     });
 }
Пример #2
0
 public void ScaleTo(Vector3 scale, float time, OnFinishMovement onFinish = null)
 {
     LeanTween.scale(gameObject, scale, time).setOnComplete(() =>
     {
         if (onFinish != null)
         {
             onFinish();
         }
     });
 }
Пример #3
0
 public void MoveTo(LTSpline spline, float time, OnFinishMovement onFinish = null)
 {
     LeanTween.move(gameObject, spline, time).setOnComplete(() =>
     {
         if (onFinish != null)
         {
             onFinish();
         }
     });
 }
Пример #4
0
 public void MoveTo(Vector3 pos, float time, OnFinishMovement onFinish = null)
 {
     LeanTween.move(gameObject, pos, time).setOnComplete(() =>
     {
         if (onFinish != null)
         {
             onFinish();
         }
     });
 }
Пример #5
0
 public void RotateTo(float vel, Vector3 vectorDirection, float time, OnFinishMovement onFinish = null)
 {
     LeanTween.rotate(gameObject, vectorDirection, time);
 }