コード例 #1
0
 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);
 }
コード例 #2
0
 public void OffDetected()
 {
     this.target = null;
     this.state  = EggsyStates.Idle;
     this.Animator.SetBool("has seen player", false);
 }