Пример #1
0
        public void OnAnimationAttack(AnimationAttackEvent value)
        {
            //            Debug.Log($"{this} OnAnimationAttack");
            GlobalEnums.AttackStates state = value.GetAttackState;

            AttackState(state);
        }
Пример #2
0
        public void OnAnimationAttack(AnimationAttackEvent value)
        {
            Debug.Log($"Услышан эвент анимации {value.ToString()}");

            if (_attacksDict.ContainsKey(value.GetAnimationNamesIDs))
            {
                _attacksDict[value.GetAnimationNamesIDs].AttackState(value.GetAttackState);
            }
        }
Пример #3
0
        //protected void SetLayerWeight(int layer, float weight)
        //{
        //    GetAnimator.SetLayerWeight(layer, weight);
        //}

        /// <summary>
        /// Class should receive events from animations with string names and parce it
        /// </summary>
        /// <param name="attackStates"></param>
        public void Attack(AnimationAttackEvent value)
        {
            GlobalEnums.AttackStates state = value.GetAttackState;

            AttackState(state);
        }