Exemple #1
0
 void LateUpdate()
 {
     if (_attribute != null)
     {
         _attribute.UpdateRotation();
     }
     if (!string.IsNullOrEmpty(trigger) && ator != null && !ator.IsInTransition(0))
     {
         if (trigger != AnimTriger.ToStand &&
             trigger != AnimTriger.ToMove &&
             trigger != AnimTriger.EndSkill)
         {
             Execute(); // is casting
         }
         ator.speed = 1;
         ator.SetTrigger(trigger);
         trigger = null;
     }
 }
Exemple #2
0
    private void LateUpdate()
    {
        if (_attribute != null)
        {
            _attribute.UpdateRotation();
        }
        if (!string.IsNullOrEmpty(trigger) && _anim != null && !_anim.Ator.IsInTransition(0))
        {
            if (trigger != AnimTriger.ToStand &&
                trigger != AnimTriger.ToMove &&
                trigger != AnimTriger.EndSkill)
            {
                Execute();
            }

            _anim.SetTrigger(trigger);
            trigger = null;
        }
    }