public void TriggerEvent(string name, params object[] data) { GlobalEvent @event = null; if (_eventsDictionary.TryGetValue(name, out @event)) { @event.ActivateEvent(data); } else { Debug.LogFormat("There is no event name of {0}.", name); } }