public Action GetDelegate(LuaActionKey key) { Action ac; luaDelegate.TryGetValue((uint)key, out ac); return(ac); }
public void AddDelegate(LuaActionKey key, Action action) { Action ac = GetDelegate(key); if (ac != null) { ac = null; } luaDelegate[(uint)key] = action; }
public void CallLuaDelegate(LuaActionKey key) { Action ac = GetDelegate(key); ac(); }