Exemple #1
0
 /// <summary>
 /// Informs the objective / activates it and ensures that a cleared room is not going to be activated again.
 /// </summary>
 /// <param name="player"></param>
 public void OnPlayerEnter(Player player)
 {
     if (objective == null)
     {
         Debug.Log("[ROOMS] This Room has no objective!");
         return;
     }
     if (objective.GetFinished())
     {
         Debug.Log("[ROOMS] This room has been cleared already.");
         return;
     }
     Debug.Log("[ROOMS] Player activated Objective");
     objective.ActivateGoal(player);
 }