public void Activate() { IsActive = true; UI = _uiController.DrawQuestPanel(this); UI.Quest = this; UI.SetupPanel(); }
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(); }