Ejemplo n.º 1
0
        public override void InitializeState()
        {
            WaterPivot = animal.pivots.Find(p => p.name.ToLower().Contains("water"));      //Find the Water Pivot
            if (WaterPivot == null)
            {
                Debug.LogError("No Water Pivot Found.. please create a Water Pivot");
            }

            WaterCollider = new Collider[1];
            IsInWater     = false;
        }
Ejemplo n.º 2
0
        public override void AwakeState()
        {
            useCameraInput = animal.UseCameraInput;

            base.AwakeState();

            ClimbHit = new RaycastHit[1];
            ClimbPivot = animal.pivots.Find(x => x.name == Pivot);

            if (ClimbPivot == null)
            { Debug.LogError("The Climb State requires a Pivot named 'Climb'. Please create a new pivot on the Animal Component"); }
        }
Ejemplo n.º 3
0
        public override void AwakeState()
        {
            UsingCameraInput = animal.UseCameraInput; //Store the Animal Current CameraInput

            base.AwakeState();

            ClimbPivot = animal.pivots.Find(x => x.name == Pivot);

            if (ClimbPivot == null)
            {
                Debug.LogError("The Climb State requires a Pivot named 'Climb'. Please create a new pivot on the Animal Component");
            }
        }
Ejemplo n.º 4
0
        public override void AwakeState()
        {
            useCameraInput = animal.UseCameraInput;

            base.AwakeState();

            ClimbHit   = new RaycastHit[1];
            ClimbPivot = animal.pivots.Find(x => x.name == Pivot);

            if (ClimbPivot == null)
            {
                Debug.LogError("The Climb State requires a Pivot named 'Climb'. Please create a new pivot on the Animal Component");
            }

            if (!animal.hasStateStatus)
            {
                Debug.LogError("The Climb State requires a the StateStatus Animator Parameter. Please add it to the Animator Controller and set the Climb Exit Animations with the State Status as the transition condition");
            }
        }