예제 #1
0
 public void OnTriggerEnter(Collider2D other)
 {
     // Debug.Log("triggered");
     if (other.tag == "Edge")
     {
         enemy.ChangeDirection();
     }
 }
예제 #2
0
 public void OnTriggerEnter(Collider2D other)
 {
     if (other.tag == "Edge")
     {
         enemy.ChangeDirection();
         enemy.Target = null;
     }
 }