コード例 #1
0
        public static LuaClient CreateLuaClient()
        {
            if (!mInited)
            {
                throw new Exception("you should call LuaInterface.Init first!");
            }
            var client = new LuaClient();

            mList.Add(client);
            return(client);
        }
コード例 #2
0
 public static void DestroyLuaClient(LuaClient client)
 {
     if (mList.Contains(client))
     {
         client.Destroy();
         mList.Remove(client);
     }
     else
     {
         throw new Exception("do not find LuaClient!");
     }
 }