SetCustomInput() public method

public SetCustomInput ( RaycastHit &hit, bool buttonDown ) : void
hit RaycastHit
buttonDown bool
return void
示例#1
0
 static public int SetCustomInput(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.RaycastHit), typeof(bool)))
         {
             FairyGUI.Stage         self = (FairyGUI.Stage)checkSelf(l);
             UnityEngine.RaycastHit a1;
             checkValueType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             self.SetCustomInput(ref a1, a2);
             pushValue(l, true);
             pushValue(l, a1);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Vector2), typeof(bool)))
         {
             FairyGUI.Stage      self = (FairyGUI.Stage)checkSelf(l);
             UnityEngine.Vector2 a1;
             checkType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             self.SetCustomInput(a1, a2);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#2
0
    static int SetCustomInput(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Stage), typeof(UnityEngine.RaycastHit), typeof(bool)))
            {
                FairyGUI.Stage         obj  = (FairyGUI.Stage)ToLua.ToObject(L, 1);
                UnityEngine.RaycastHit arg0 = (UnityEngine.RaycastHit)ToLua.ToObject(L, 2);
                bool arg1 = LuaDLL.lua_toboolean(L, 3);
                obj.SetCustomInput(ref arg0, arg1);
                ToLua.Push(L, arg0);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Stage), typeof(UnityEngine.Vector2), typeof(bool)))
            {
                FairyGUI.Stage      obj  = (FairyGUI.Stage)ToLua.ToObject(L, 1);
                UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
                bool arg1 = LuaDLL.lua_toboolean(L, 3);
                obj.SetCustomInput(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.Stage.SetCustomInput"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
示例#3
0
    static int SetCustomInput(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes <UnityEngine.RaycastHit, bool>(L, 2))
            {
                FairyGUI.Stage         obj  = (FairyGUI.Stage)ToLua.CheckObject <FairyGUI.Stage>(L, 1);
                UnityEngine.RaycastHit arg0 = StackTraits <UnityEngine.RaycastHit> .To(L, 2);

                bool arg1 = LuaDLL.lua_toboolean(L, 3);
                obj.SetCustomInput(ref arg0, arg1);
                ToLua.Push(L, arg0);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.Vector2, bool>(L, 2))
            {
                FairyGUI.Stage      obj  = (FairyGUI.Stage)ToLua.CheckObject <FairyGUI.Stage>(L, 1);
                UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
                bool arg1 = LuaDLL.lua_toboolean(L, 3);
                obj.SetCustomInput(arg0, arg1);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes <UnityEngine.RaycastHit, bool, bool>(L, 2))
            {
                FairyGUI.Stage         obj  = (FairyGUI.Stage)ToLua.CheckObject <FairyGUI.Stage>(L, 1);
                UnityEngine.RaycastHit arg0 = StackTraits <UnityEngine.RaycastHit> .To(L, 2);

                bool arg1 = LuaDLL.lua_toboolean(L, 3);
                bool arg2 = LuaDLL.lua_toboolean(L, 4);
                obj.SetCustomInput(ref arg0, arg1, arg2);
                ToLua.Push(L, arg0);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <UnityEngine.Vector2, bool, bool>(L, 2))
            {
                FairyGUI.Stage      obj  = (FairyGUI.Stage)ToLua.CheckObject <FairyGUI.Stage>(L, 1);
                UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
                bool arg1 = LuaDLL.lua_toboolean(L, 3);
                bool arg2 = LuaDLL.lua_toboolean(L, 4);
                obj.SetCustomInput(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.Stage.SetCustomInput"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }