private void SteeringRotate(CharacterBehaviourWrapper.HeuristicType heuristicType) { switch (heuristicType) { case CharacterBehaviourWrapper.HeuristicType.A1: break; case CharacterBehaviourWrapper.HeuristicType.A2: MovementBehaviour1.Face(MovementBehaviour1.TargetGameObject.transform); break; case CharacterBehaviourWrapper.HeuristicType.B1: MovementBehaviour1.LookWhereYoureGoing(); break; case CharacterBehaviourWrapper.HeuristicType.B2: MovementBehaviour1.Face(MovementBehaviour1.TargetGameObject.transform); break; case CharacterBehaviourWrapper.HeuristicType.C1: MovementBehaviour1.LookWhereYoureGoing(); break; case CharacterBehaviourWrapper.HeuristicType.C2: MovementBehaviour1.FaceAway(MovementBehaviour1.TargetGameObject.transform); break; } }
public void Rotate(CharacterBehaviourWrapper.HeuristicType heuristicType) { if (currentState == InputController.MovementTypeState.kinematic) { KinematicRotate(heuristicType); } // MovementBehaviour1.InterpolateRotate(); if (currentState == InputController.MovementTypeState.steering) { SteeringRotate(heuristicType); } }