예제 #1
0
        static int _s_set_subsystemImplementationType(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.SubsystemDescriptor gen_to_be_invoked = (UnityEngine.SubsystemDescriptor)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.subsystemImplementationType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
예제 #2
0
        static int _s_set_id(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.SubsystemDescriptor gen_to_be_invoked = (UnityEngine.SubsystemDescriptor)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.id = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }