public static void TriggerEvent(GameData.Event eventName, GameObject obj, int firstValue, int secondValue) { UnityEventGameObject2Int thisEvent = null; if (Instance.eventDictionaryGameObject2Int.TryGetValue(eventName, out thisEvent)) { thisEvent.Invoke(obj, firstValue, secondValue); } }