예제 #1
0
 private void OnTriggerExit(Collider other)
 {
     if (other.tag == "Player")
     {
         canSpawn = false;
         EnteredArea?.Invoke("Town");
     }
 }
예제 #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         canSpawn = true;
         EnteredArea?.Invoke(area);
     }
 }