Beispiel #1
0
        int UnityEngineUIToggleGroup_m_NotifyToggleOn(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);

            if (gen_param_count == 3 && translator.Assignable <UnityEngine.UI.Toggle>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
            {
                UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle));
                bool _sendCallback            = LuaAPI.lua_toboolean(L, 3);

                gen_to_be_invoked.NotifyToggleOn(_toggle, _sendCallback);



                return(0);
            }
            if (gen_param_count == 2 && translator.Assignable <UnityEngine.UI.Toggle>(L, 2))
            {
                UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle));

                gen_to_be_invoked.NotifyToggleOn(_toggle);



                return(0);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ToggleGroup.NotifyToggleOn!"));
        }
Beispiel #2
0
        static int _m_SetAllTogglesOff(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _sendCallback = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.SetAllTogglesOff(_sendCallback);



                    return(0);
                }
                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.SetAllTogglesOff(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ToggleGroup.SetAllTogglesOff!"));
        }
Beispiel #3
0
        int UnityEngineUIToggleGroup_m_SetAllTogglesOff(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);

            if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
            {
                bool _sendCallback = LuaAPI.lua_toboolean(L, 2);

                gen_to_be_invoked.SetAllTogglesOff(_sendCallback);



                return(0);
            }
            if (gen_param_count == 1)
            {
                gen_to_be_invoked.SetAllTogglesOff(  );



                return(0);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ToggleGroup.SetAllTogglesOff!"));
        }
Beispiel #4
0
        /// <summary>
        /// Read the data into the specified value.
        /// </summary>
        /// <param name="value">Value.</param>
        /// <param name="reader">Reader.</param>
        public override void ReadInto(object value, ISaveGameReader reader)
        {
            UnityEngine.UI.ToggleGroup toggleGroup = (UnityEngine.UI.ToggleGroup)value;
            foreach (string property in reader.Properties)
            {
                switch (property)
                {
                case "allowSwitchOff":
                    toggleGroup.allowSwitchOff = reader.ReadProperty <System.Boolean> ();
                    break;

                case "useGUILayout":
                    toggleGroup.useGUILayout = reader.ReadProperty <System.Boolean> ();
                    break;

                case "enabled":
                    toggleGroup.enabled = reader.ReadProperty <System.Boolean> ();
                    break;

                case "tag":
                    toggleGroup.tag = reader.ReadProperty <System.String> ();
                    break;

                case "name":
                    toggleGroup.name = reader.ReadProperty <System.String> ();
                    break;

                case "hideFlags":
                    toggleGroup.hideFlags = reader.ReadProperty <UnityEngine.HideFlags> ();
                    break;
                }
            }
        }
Beispiel #5
0
        int UnityEngineUIToggleGroup_g_get_allowSwitchOff(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);
            LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowSwitchOff);
            return(1);
        }
Beispiel #6
0
 /// <summary>
 /// Write the specified value using the writer.
 /// </summary>
 /// <param name="value">Value.</param>
 /// <param name="writer">Writer.</param>
 public override void Write(object value, ISaveGameWriter writer)
 {
     UnityEngine.UI.ToggleGroup toggleGroup = (UnityEngine.UI.ToggleGroup)value;
     writer.WriteProperty("allowSwitchOff", toggleGroup.allowSwitchOff);
     writer.WriteProperty("useGUILayout", toggleGroup.useGUILayout);
     writer.WriteProperty("enabled", toggleGroup.enabled);
     writer.WriteProperty("tag", toggleGroup.tag);
     writer.WriteProperty("name", toggleGroup.name);
     writer.WriteProperty("hideFlags", toggleGroup.hideFlags);
 }
Beispiel #7
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.UI.ToggleGroup o = (UnityEngine.UI.ToggleGroup)obj;
     allowSwitchOff = o.allowSwitchOff;
 }
 private static void AddVariable(StoryInstance instance, string name, UnityEngine.GameObject control)
 {
     instance.SetVariable(name, control);
     UnityEngine.UI.Text text = control.GetComponent <UnityEngine.UI.Text>();
     if (null != text)
     {
         instance.SetVariable(string.Format("{0}_Text", name), text);
     }
     UnityEngine.UI.Image image = control.GetComponent <UnityEngine.UI.Image>();
     if (null != image)
     {
         instance.SetVariable(string.Format("{0}_Image", name), image);
     }
     UnityEngine.UI.RawImage rawImage = control.GetComponent <UnityEngine.UI.RawImage>();
     if (null != rawImage)
     {
         instance.SetVariable(string.Format("{0}_RawImage", name), rawImage);
     }
     UnityEngine.UI.Button button = control.GetComponent <UnityEngine.UI.Button>();
     if (null != button)
     {
         instance.SetVariable(string.Format("{0}_Button", name), button);
     }
     UnityEngine.UI.Dropdown dropdown = control.GetComponent <UnityEngine.UI.Dropdown>();
     if (null != dropdown)
     {
         instance.SetVariable(string.Format("{0}_Dropdown", name), dropdown);
     }
     UnityEngine.UI.InputField inputField = control.GetComponent <UnityEngine.UI.InputField>();
     if (null != inputField)
     {
         instance.SetVariable(string.Format("{0}_Input", name), inputField);
     }
     UnityEngine.UI.Slider slider = control.GetComponent <UnityEngine.UI.Slider>();
     if (null != inputField)
     {
         instance.SetVariable(string.Format("{0}_Slider", name), slider);
     }
     UnityEngine.UI.Toggle toggle = control.GetComponent <UnityEngine.UI.Toggle>();
     if (null != toggle)
     {
         instance.SetVariable(string.Format("{0}_Toggle", name), toggle);
     }
     UnityEngine.UI.ToggleGroup toggleGroup = control.GetComponent <UnityEngine.UI.ToggleGroup>();
     if (null != toggleGroup)
     {
         instance.SetVariable(string.Format("{0}_ToggleGroup", name), toggleGroup);
     }
     UnityEngine.UI.Scrollbar scrollbar = control.GetComponent <UnityEngine.UI.Scrollbar>();
     if (null != scrollbar)
     {
         instance.SetVariable(string.Format("{0}_Scrollbar", name), scrollbar);
     }
 }
Beispiel #9
0
 public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects)
 {
     obj = base.WriteTo(obj, objects);
     if (obj == null)
     {
         return(null);
     }
     UnityEngine.UI.ToggleGroup o = (UnityEngine.UI.ToggleGroup)obj;
     o.allowSwitchOff = allowSwitchOff;
     return(o);
 }
Beispiel #10
0
        static int _g_get_allowSwitchOff(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowSwitchOff);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Beispiel #11
0
        static int _s_set_allowSwitchOff(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.UI.ToggleGroup __cl_gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.allowSwitchOff = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static StackObject *SetAllTogglesOff_7(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.ToggleGroup instance_of_this_method = (UnityEngine.UI.ToggleGroup) typeof(UnityEngine.UI.ToggleGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetAllTogglesOff();

            return(__ret);
        }
        static StackObject *get_allowSwitchOff_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.ToggleGroup instance_of_this_method = (UnityEngine.UI.ToggleGroup) typeof(UnityEngine.UI.ToggleGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.allowSwitchOff;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
Beispiel #14
0
        int UnityEngineUIToggleGroup_m_EnsureValidState(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


            {
                gen_to_be_invoked.EnsureValidState(  );



                return(0);
            }
        }
        static StackObject *set_allowSwitchOff_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.ToggleGroup instance_of_this_method = (UnityEngine.UI.ToggleGroup) typeof(UnityEngine.UI.ToggleGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.allowSwitchOff = value;

            return(__ret);
        }
Beispiel #16
0
        int UnityEngineUIToggleGroup_m_ActiveToggles(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


            {
                System.Collections.Generic.IEnumerable <UnityEngine.UI.Toggle> gen_ret = gen_to_be_invoked.ActiveToggles(  );
                translator.PushAny(L, gen_ret);



                return(1);
            }
        }
Beispiel #17
0
        int UnityEngineUIToggleGroup_m_AnyTogglesOn(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


            {
                bool gen_ret = gen_to_be_invoked.AnyTogglesOn(  );
                LuaAPI.lua_pushboolean(L, gen_ret);



                return(1);
            }
        }
        static StackObject *set_group_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.ToggleGroup value = (UnityEngine.UI.ToggleGroup) typeof(UnityEngine.UI.ToggleGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Toggle instance_of_this_method;
            instance_of_this_method = (UnityEngine.UI.Toggle) typeof(UnityEngine.UI.Toggle).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.group = value;

            return(__ret);
        }
Beispiel #19
0
        int UnityEngineUIToggleGroup_m_UnregisterToggle(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle));

                gen_to_be_invoked.UnregisterToggle(_toggle);



                return(0);
            }
        }
Beispiel #20
0
        static int _m_SetAllTogglesOff(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.ToggleGroup __cl_gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.SetAllTogglesOff(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static StackObject *ActiveToggles_6(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.ToggleGroup instance_of_this_method = (UnityEngine.UI.ToggleGroup) typeof(UnityEngine.UI.ToggleGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.ActiveToggles();

            object obj_result_of_this_method = result_of_this_method;

            if (obj_result_of_this_method is CrossBindingAdaptorType)
            {
                return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance));
            }
            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Beispiel #22
0
        static int _m_ActiveToggles(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.ToggleGroup __cl_gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Collections.Generic.IEnumerable <UnityEngine.UI.Toggle> __cl_gen_ret = __cl_gen_to_be_invoked.ActiveToggles(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #23
0
        static int _m_AnyTogglesOn(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.ToggleGroup __cl_gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


            try {
                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.AnyTogglesOn(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static StackObject *NotifyToggleOn_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @sendCallback = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Toggle @toggle = (UnityEngine.UI.Toggle) typeof(UnityEngine.UI.Toggle).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.UI.ToggleGroup instance_of_this_method = (UnityEngine.UI.ToggleGroup) typeof(UnityEngine.UI.ToggleGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.NotifyToggleOn(@toggle, @sendCallback);

            return(__ret);
        }
Beispiel #25
0
        static int _m_EnsureValidState(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.EnsureValidState(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #26
0
        static int _m_UnregisterToggle(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.ToggleGroup __cl_gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.UI.Toggle toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle));

                    __cl_gen_to_be_invoked.UnregisterToggle(toggle);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #27
0
        static int _m_ActiveToggles(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);



                {
                    var gen_ret = gen_to_be_invoked.ActiveToggles(  );
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #28
0
        static int _m_NotifyToggleOn(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && translator.Assignable <UnityEngine.UI.Toggle>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle));
                    bool _sendCallback            = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.NotifyToggleOn(_toggle, _sendCallback);



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.UI.Toggle>(L, 2))
                {
                    UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle));

                    gen_to_be_invoked.NotifyToggleOn(_toggle);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ToggleGroup.NotifyToggleOn!"));
        }
Beispiel #29
0
        static int _m_NotifyToggleOn(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle));

                    gen_to_be_invoked.NotifyToggleOn(_toggle);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #30
0
 /// <summary>
 /// Read the data using the reader.
 /// </summary>
 /// <param name="reader">Reader.</param>
 public override object Read(ISaveGameReader reader)
 {
     UnityEngine.UI.ToggleGroup toggleGroup = SaveGameType.CreateComponent <UnityEngine.UI.ToggleGroup> ();
     ReadInto(toggleGroup, reader);
     return(toggleGroup);
 }