예제 #1
0
 // Entered exit trigger
 private void OnTriggerEnter(Collider other)
 {
     if (!other.CompareTag(Constants.TAG_PLAYER))
     {
         return;
     }
     if (LevelsManager.CurrentLevelIsLast())
     {
         EndScreen.Instance.OnEnd();
         return;
     }
     LevelsManager.OnExitReached();
 }