static public int SetDirection(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.UI.Slider           self = (UnityEngine.UI.Slider)checkSelf(l);
         UnityEngine.UI.Slider.Direction a1;
         a1 = (UnityEngine.UI.Slider.Direction)LuaDLL.luaL_checkinteger(l, 2);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.SetDirection(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
    static int SetDirection(IntPtr L)
    {
        L.ChkArgsCount(3);
        UnityEngine.UI.Slider obj = (UnityEngine.UI.Slider)L.ChkUnityObjectSelf(1, "UnityEngine.UI.Slider");
        var arg0 = (UnityEngine.UI.Slider.Direction)L.ChkEnumValue(2, typeof(UnityEngine.UI.Slider.Direction));
        var arg1 = L.ChkBoolean(3);

        obj.SetDirection(arg0, arg1);
        return(0);
    }
    static int SetDirection(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        UnityEngine.UI.Slider           obj  = (UnityEngine.UI.Slider)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.UI.Slider");
        UnityEngine.UI.Slider.Direction arg0 = (UnityEngine.UI.Slider.Direction)LuaScriptMgr.GetNetObject(L, 2, typeof(UnityEngine.UI.Slider.Direction));
        bool arg1 = LuaScriptMgr.GetBoolean(L, 3);

        obj.SetDirection(arg0, arg1);
        return(0);
    }
Beispiel #4
0
 static public int SetDirection(IntPtr l)
 {
     try {
         UnityEngine.UI.Slider           self = (UnityEngine.UI.Slider)checkSelf(l);
         UnityEngine.UI.Slider.Direction a1;
         checkEnum(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.SetDirection(a1, a2);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int QPYX_SetDirection_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 3);
         UnityEngine.UI.Slider           QPYX_obj_YXQP  = (UnityEngine.UI.Slider)ToLua.CheckObject <UnityEngine.UI.Slider>(L_YXQP, 1);
         UnityEngine.UI.Slider.Direction QPYX_arg0_YXQP = (UnityEngine.UI.Slider.Direction)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.UI.Slider.Direction));
         bool QPYX_arg1_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 3);
         QPYX_obj_YXQP.SetDirection(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Beispiel #6
0
 static int SetDirection(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UnityEngine.UI.Slider           obj  = (UnityEngine.UI.Slider)ToLua.CheckObject <UnityEngine.UI.Slider>(L, 1);
         UnityEngine.UI.Slider.Direction arg0 = (UnityEngine.UI.Slider.Direction)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.Slider.Direction));
         bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.SetDirection(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }