public override void Awake() { Debug.Log("Flee State Awake"); if (_minionController.currentEnemy == null) { _minionController.currentEnemy = _minionController.SelectRandomEnemy().transform; } _flee = new Flee(_minionController.transform, _minionController.currentEnemy.transform, _minionController.GetComponent <Rigidbody>(), 0.5f); _avoid = new Avoid(_minionController.transform, _minionController.lineOfSight.obstaclesLayer, _minionController.obstacleRadius, _minionController.obstacleWeight); _minionController.isFlee = true; // Trigger Flee Bool. _minionController._speed = _minionController._ogSpeed * 1.5f; _minionController.goneFlee = true; fleeTimer = 6f; if (_minionController.isBoss == true) { _minionController.AlertFlee(); } }