예제 #1
0
 public void RegisterObjective(HealthController objective, ObjectiveMarker.Type type)
 {
     if (type == ObjectiveMarker.Type.House)
     {
         Houses.Add(objective);
     }
     else
     {
         Players.Add(objective);
     }
 }
예제 #2
0
    public void MarkObjectiveLost(HealthController objective, ObjectiveMarker.Type type)
    {
        if (type == ObjectiveMarker.Type.House)
        {
            Houses.Remove(objective);

            if (Houses.Count == 0)
            {
                DoDefeat();
            }
        }
        else
        {
            Players.Remove(objective);

            if (Players.Count == 0)
            {
                DoDefeat();
            }
        }
    }