Beispiel #1
0
 public void OnLevelLoaded(object source, EventArgs e)
 {
     Debug.Log("VictoryConditionsWidget notified of level load!");
     victoryConditionData = LevelManager.ActiveLevel.VictoryCondition;
     Debug.Log(victoryConditionData.Goal);
     keyGoalDisplay.SetGoalText(victoryConditionData.Goal);
 }
Beispiel #2
0
 // XXX: If this is never called, why does it exist and what is serving its purpose?
 public LevelData(LevelData data)
 {
     levelName        = data.levelName;
     Placeables       = data.Placeables;
     victoryCondition = new VictoryConditionData(VictoryConditionData.Condition.KEYS, GatherKeys());
 }
Beispiel #3
0
 public void SetVictoryConditionData(VictoryConditionData data)
 {
     victoryConditionData = data;
 }
Beispiel #4
0
 public LevelData(string name = "New Level")
 {
     levelName        = name;
     Placeables       = new List <PlaceableData> ();
     victoryCondition = new VictoryConditionData(VictoryConditionData.Condition.KEYS, GatherKeys());
 }