Пример #1
0
        public override void InitializeState()
        {
            SwimState = null;
            SwimState = (Swim)animal.State_Get(StateEnum.Swim); //Get the Store the Swim State

            if (SwimState == null)
            {
                Debug.LogError("UnderWater State needs Swim State in order to work, please add the Swim State to the Animal");
            }
        }
Пример #2
0
        public override void StartState()
        {
            SwimState = null;

            SwimState = (Swim)animal.GetState(4); //Get the Store the Swim State

            if (SwimState == null)
            {
                Debug.LogError("UnderWater State needs Swim State in order to work, please add the Swim State to the Animal");
            }
        }
Пример #3
0
        public override void StartState()
        {
            LandHit      = new RaycastHit[1];
            currentTime  = Time.time;
            FlyStyleTime = GlideChance.RandomValue;

            SwimState = (Swim)animal.GetState(4); //Get the Store the Swim State

            if (CheckforWater && (SwimState == null))
            {
                Debug.LogError("No Swim State Found.. please add the Swim State");
            }
        }