public static LuaClient CreateLuaClient() { if (!mInited) { throw new Exception("you should call LuaInterface.Init first!"); } var client = new LuaClient(); mList.Add(client); return(client); }
public static void DestroyLuaClient(LuaClient client) { if (mList.Contains(client)) { client.Destroy(); mList.Remove(client); } else { throw new Exception("do not find LuaClient!"); } }