public void SetTrigger(string triggerName, bool value) { if (!Triggers.ContainsKey(triggerName)) { Triggers.Add(triggerName, value); } else { Triggers[triggerName] = value; } OnTriggerSetEvent?.Invoke(triggerName, value); }
public void SetTrigger(string triggerName, bool value) { if (!triggers.ContainsKey(triggerName)) { triggers.Add(triggerName, value ? TriggerState.On : TriggerState.Off); } else { triggers[triggerName] = value ? TriggerState.On : TriggerState.Off; } OnTriggerSetEvent?.Invoke(triggerName, value); QuestManager.Instance.UpdateUI(); }
public void SetTrigger(string triggerName, bool value) { if (!triggers.ContainsKey(triggerName)) { triggers.Add(triggerName, value ? TriggerState.On : TriggerState.Off); } else { triggers[triggerName] = value ? TriggerState.On : TriggerState.Off; } OnTriggerSetEvent?.Invoke(triggerName, value); NotifyCenter.PostNotify(NotifyCenter.CommonKeys.TriggerChanged, triggerName, value); }