void StateResolution() { switch (enemyState) { case EnemyState.PATROL: //Debug.Log("State = Patrol"); patrol.PatrolMovement(); break; case EnemyState.PERSUE: //Debug.Log("State = Persue"); accel = pursue.getSteering(playerRB); steeringBasics.steer(accel); steeringBasics.LookAtDirection(); //pursue.getSteering(playerRB); CheckFire(player.transform.position); break; case EnemyState.EVADE: //Debug.Log("State = Evade"); evade.GetSteering(playerRB); CheckFire(player.transform.position); break; case EnemyState.CLOSE: evade.GetCloseSteering(playerRB); break; } }