public override void Init() { if (luaObject == null) { luaObject = new GameObject("LuaClientObject"); luaClient = luaObject.AddComponent <LuaClient>(); GameObject.DontDestroyOnLoad(luaObject); dicObjScript = new Dictionary <GameObject, CScriptObject>(); luaClient.Init(); } instance = this; }