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

            tweener.TweenPosition(duration, position);
        }