예제 #1
0
        private IEnumerator DelyPlay()
        {
            yield return(new WaitForSeconds(delyTime));

            if (animPlayer != null)
            {
                animPlayer.duration      = speed;
                animPlayer.onAutoPlayEnd = OnAnimPlayCallBack;
                animPlayer.SetVisible(true);
                animPlayer.StepActive();
            }
        }
예제 #2
0
 private void DelyPlay()
 {
     FindAnimCore(true);
     Debug.Assert(animPlayer != null, "no enough animplayer named:" + this);
     if (animPlayer)
     {
         animPlayer.speed    = speed;
         animPlayer.opposite = opposite;
         animPlayer.SetVisible(true);
         animPlayer.SetActive(this);
         var feature = animPlayer.RetriveFeature <CompleteAbleItemFeature>();
         feature.RegistOnCompleteSafety(this, OnAnimPlayCallBack);
         feature.AutoExecute(this);
     }
 }