Ejemplo n.º 1
0
        private void ActivateModeZone(bool forced)
        {
            if (modeID == 4 && ActionID != null)
            {
                ID.Value = ActionID;  //Use Action ID Instead
            }
            if (forced || automatic)
            {
                CurrentAnimal.Mode_Activate((int)modeID, ID); //Current animal was empty  ??!?!??!
                OnZONEActive();

                if (automatic)
                {
                    StartCoroutine(ZoneColliderONOFF());
                }
            }
            else
            {  //In Case the Zone is not Automatic
                var PreMode = CurrentAnimal.Mode_Get(modeID);

                if (PreMode != null)
                {
                    PreMode.AbilityIndex = ID;
                    PreMode.GlobalProperties.OnEnter.AddListener(OnZONEActive);
                }
            }
        }