Пример #1
0
        /// <summary>When a Tag Changes apply this modifications</summary>
        public void AnimationTagEnter(int animatorTagHash)
        {
            if (MainTagHash == animatorTagHash)
            {
                General.Modify(animal);
                animal.State_SetStatus(Int_ID.Available); //Reset all the Status when the animal enters the main State Animation

                IsPending = false;

                if (IsActiveState)
                {
                    EnterCoreAnimation();
                    return; //Do not search for Active Tags
                }
            }

            TagModifier ActiveTag = TagModifiers.Find(tag => tag.TagHash == animatorTagHash);

            if (ActiveTag != null)
            {
                IsPending = false;

                ActiveTag.modifier.Modify(animal);
                EnterTagAnimation();
                CheckPendingExit();
            }
        }