Exemplo n.º 1
0
 private void OnTriggerEnter(Collider Other)
 {
     if (Other.tag == "Player")
     {
         PlayersInArea.Add(Other.gameObject);
         if (PlayersInArea.Count == 2)
         {
             if (IsFinalCheckpoint)
             {
                 if (!LoadLock)
                 {
                     CheckpointMan.FinalCheckpointComplete();
                     LoadLock = true;
                 }
             }
             else
             {
                 CheckpointMan.SetCheckpoint(this);
                 CheckpointCompleted();
             }
         }
     }
 }