public void FadeTo(float fade, float time, OnFinishMovement onFinish = null) { LeanTween.alpha(gameObject, fade, time).setOnComplete(() => { if (onFinish != null) { onFinish(); } }); }
public void ScaleTo(Vector3 scale, float time, OnFinishMovement onFinish = null) { LeanTween.scale(gameObject, scale, time).setOnComplete(() => { if (onFinish != null) { onFinish(); } }); }
public void MoveTo(LTSpline spline, float time, OnFinishMovement onFinish = null) { LeanTween.move(gameObject, spline, time).setOnComplete(() => { if (onFinish != null) { onFinish(); } }); }
public void MoveTo(Vector3 pos, float time, OnFinishMovement onFinish = null) { LeanTween.move(gameObject, pos, time).setOnComplete(() => { if (onFinish != null) { onFinish(); } }); }
public void RotateTo(float vel, Vector3 vectorDirection, float time, OnFinishMovement onFinish = null) { LeanTween.rotate(gameObject, vectorDirection, time); }