public void OnDetected(GameObject target) { this.target = target.GetComponent <Transform>(); this.state = EggsyStates.Run; AudioManager.Play("Eggsy_flee"); this.Animator.SetBool("has seen player", true); }
public void OffDetected() { this.target = null; this.state = EggsyStates.Idle; this.Animator.SetBool("has seen player", false); }