示例#1
0
 public void SetTrigger(string triggerName, bool value)
 {
     if (!Triggers.ContainsKey(triggerName))
     {
         Triggers.Add(triggerName, value);
     }
     else
     {
         Triggers[triggerName] = value;
     }
     OnTriggerSetEvent?.Invoke(triggerName, value);
 }
示例#2
0
 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();
 }
示例#3
0
 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);
 }