Esempio n. 1
0
 private void Reset()
 {
     if (TweenPos != null && TweenScale != null)
     {
         TweenPos.ResetForPlay();
         TweenScale.ResetForPlay();
         TweenPos.enabled    = false;
         TweenScale.enabled  = false;
         Trans.localPosition = OriPos;
         Trans.localScale    = OriScale;
     }
 }
        private void OnPlayAnim(IEvent ievent)
        {
            var e = ievent as SmithyOnPlayTweenAnim;

            if (e.Index == Index)
            {
                TweenPos.ResetForPlay();
                TweenPos.PlayForward();
            }
        }