Esempio n. 1
0
        /// <summary>Enables the Zone using the Stance</summary>
        private void ActivateStanceZone()
        {
            // CurrentAnimal.Mode_Interrupt(); //in case the Animal is doing a mode Interrupt it

            switch (stanceAction)
            {
            case StanceAction.Enter:
                CurrentAnimal.Stance_Set(stanceID);
                break;

            case StanceAction.Exit:
                CurrentAnimal.Stance_Reset();
                break;

            case StanceAction.Toggle:
                CurrentAnimal.Stance_Toggle(stanceID);
                break;

            case StanceAction.Stay:
                CurrentAnimal.Stance_Set(stanceID);
                break;

            default:
                break;
            }
            AlignAnimal();
            StatModifier.ModifyStat(AnimalStats);
            OnZoneActivation.Invoke();
        }