private void AnimatePedestal() { PedestalPart.SetLocalScaleY(1); weener?.Kill(); weener = PedestalPart.DOScaleY(3, .2f).SetEase(Ease.OutQuad).SetLoops(2, LoopType.Yoyo); }
public static void TweenPosition(this Transform transform, float duration, Vector3 position) { Tweener tweener = transform.GetComponent <Tweener>() ?? transform.gameObject.AddComponent <Tweener>(); tweener.TweenPosition(duration, position); }