Beispiel #1
0
    public Action GetDelegate(LuaActionKey key)
    {
        Action ac;

        luaDelegate.TryGetValue((uint)key, out ac);
        return(ac);
    }
Beispiel #2
0
    public void AddDelegate(LuaActionKey key, Action action)
    {
        Action ac = GetDelegate(key);

        if (ac != null)
        {
            ac = null;
        }
        luaDelegate[(uint)key] = action;
    }
Beispiel #3
0
    public void CallLuaDelegate(LuaActionKey key)
    {
        Action ac = GetDelegate(key);

        ac();
    }