Exemple #1
0
 //设置正向播放方向
 public void ChangeForwardDir()
 {
     _status = 1;
     foreach (var obj in AniObjs)
     {
         FrameAni fa = obj.GetComponent <FrameAni>();
         fa.PlayForward(gameObject);
     }
 }
Exemple #2
0
 private void PlayAni()
 {
     if (_status == 0)
     {
         _status = 1;
         //自身设置为隐藏
         gameObject.SetActive(false);
         foreach (var obj in AniObjs)
         {
             FrameAni fa = obj.GetComponent <FrameAni>();
             fa.PlayForward(gameObject);
             obj.SetActive(true);
         }
     }
 }