public void init() { transform.localPosition = _localPosition; LeanTween.rotateAroundLocal(transform.parent.gameObject, _zAxis, 360, rotateTime).setEase(LeanTweenType.easeInOutQuint).setDelay(rotateDelay); LeanTween.rotateAroundLocal(gameObject, -_zAxis, 360, rotateTime).setEase(LeanTweenType.easeInOutQuint).setDelay(rotateDelay); LeanTween.moveLocal(gameObject, Vector3.zero, moveTime).setDelay(moveDelay); Logic.UI.CommonAnimations.CommonFadeToAnimation fadeto = Logic.UI.CommonAnimations.CommonFadeToAnimation.Get(gameObject); fadeto.init(1f, 0, moveTime, moveDelay); }
public void ResetPosition() { transform.localPosition = _localPosition; Logic.UI.CommonAnimations.CommonFadeToAnimation ani = Logic.UI.CommonAnimations.CommonFadeToAnimation.Get(gameObject); ani.init(0, 1, 0.1f, 0); }