コード例 #1
0
ファイル: EventManager.cs プロジェクト: usernameHed/BackHome
    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);
        }
    }