public void ToChaseState() { enemy.currentState = enemy.chaseState; searchTimer = 0f; enemy.navMeshAgent.speed = enemy.chaseSpeed; enemy.camouflageInRange(); if (enemy.enterChase.Any()) { enemy.audioSource.PlayOneShot(Util.RandomElement(enemy.enterChase)); } }
public void ToChaseState() { enemy.currentState = enemy.chaseState; searchTimer = 0f; enemy.navMeshAgent.speed = enemy.chaseSpeed; enemy.camouflageInRange(); if (!firstChase) { enemy.wantedLevel.GuardIsNowVigilant(); firstChase = true; } }