Exemple #1
0
 // Entered enter trigger
 private void OnTriggerEnter(Collider other)
 {
     if (!other.CompareTag(Constants.TAG_PLAYER))
     {
         return;
     }
     if (LevelsManager.CurrentLevel == 1)
     {
         print("That is the first level");
         return;
     }
     LevelsManager.OnEnterReached();
 }