Exemplo n.º 1
0
 public void Activate()
 {
     IsActive = true;
     UI       = _uiController.DrawQuestPanel(this);
     UI.Quest = this;
     UI.SetupPanel();
 }
Exemplo n.º 2
0
 void UnlockQuest()
 {
     foreach (KeyValuePair <StatType, int> cost in quest.Costs)
     {
         if (cost.Key != StatType.Time)
         {
             GameManager.Instance.Game.Center.Stats[cost.Key].BaseValue -= cost.Value;
         }
         else
         {
             GameManager.Instance.Game.Center.TimeRemaining -= cost.Value;
         }
     }
     quest.Unlocked = true;
     uiQuest.SetupPanel();
     CloseWindow();
 }