示例#1
0
 protected override void OnBeforeEnd(bool force)
 {
     base.OnBeforeEnd(force);
     if (delyPlay != null)
     {
         StopCoroutine(delyPlay);
     }
     if (animPlayer != null)
     {
         animPlayer.RecordPlayer(this);
         animPlayer.StepComplete();
     }
 }
        private void FindAnimCore(bool record)
        {
            if (animPlayer == null)
            {
                var elements = elementCtrl.GetElements <AnimPlayer>(animName, true);
                if (elements != null && elements.Count > 0)
                {
                    animPlayer = elements.Find(x => x.Body != null && x.OperateAble);//[0];
                }
            }

            if (animPlayer)
            {
                if (record)
                {
                    animPlayer.RecordPlayer(this);
                }
                animPlayer.gameObject.SetActive(true);
            }
        }