Пример #1
0
    static int PlayMove(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 3);
            LookatCameraController obj = (LookatCameraController)ToLua.CheckObject(L, 1, typeof(LookatCameraController));
            float         arg0         = (float)LuaDLL.luaL_checknumber(L, 2);
            System.Action arg1         = null;
            LuaTypes      funcType3    = LuaDLL.lua_type(L, 3);

            if (funcType3 != LuaTypes.LUA_TFUNCTION)
            {
                arg1 = (System.Action)ToLua.CheckObject(L, 3, typeof(System.Action));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 3);
                arg1 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action;
            }

            obj.PlayMove(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Пример #2
0
 static int LateUpdate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LookatCameraController obj = (LookatCameraController)ToLua.CheckObject(L, 1, typeof(LookatCameraController));
         obj.LateUpdate();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #3
0
 static int SetCameraRotation(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LookatCameraController obj  = (LookatCameraController)ToLua.CheckObject(L, 1, typeof(LookatCameraController));
         UnityEngine.Quaternion arg0 = ToLua.ToQuaternion(L, 2);
         obj.SetCameraRotation(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #4
0
 static int GetCameraPosition(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LookatCameraController obj = (LookatCameraController)ToLua.CheckObject(L, 1, typeof(LookatCameraController));
         UnityEngine.Vector3    o   = obj.GetCameraPosition();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #5
0
 static int CaculateCameraAngle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LookatCameraController obj = (LookatCameraController)ToLua.CheckObject(L, 1, typeof(LookatCameraController));
         float o = obj.CaculateCameraAngle();
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #6
0
    static int set_moveSpeed(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LookatCameraController obj = (LookatCameraController)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.moveSpeed = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index moveSpeed on a nil value" : e.Message));
        }
    }
Пример #7
0
    static int set_isMoving(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LookatCameraController obj = (LookatCameraController)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.isMoving = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isMoving on a nil value" : e.Message));
        }
    }
Пример #8
0
    static int set_offset(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LookatCameraController obj  = (LookatCameraController)o;
            UnityEngine.Vector3    arg0 = ToLua.ToVector3(L, 2);
            obj.offset = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index offset on a nil value" : e.Message));
        }
    }
Пример #9
0
    static int set_target(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LookatCameraController obj  = (LookatCameraController)o;
            UnityEngine.Transform  arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
            obj.target = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message));
        }
    }
Пример #10
0
    static int get_moveSpeed(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LookatCameraController obj = (LookatCameraController)o;
            float ret = obj.moveSpeed;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index moveSpeed on a nil value" : e.Message));
        }
    }
Пример #11
0
    static int get_isMoving(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LookatCameraController obj = (LookatCameraController)o;
            bool ret = obj.isMoving;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isMoving on a nil value" : e.Message));
        }
    }
Пример #12
0
    static int get_target(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LookatCameraController obj = (LookatCameraController)o;
            UnityEngine.Transform  ret = obj.target;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message));
        }
    }
Пример #13
0
 static int CaculatePose(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         LookatCameraController obj = (LookatCameraController)ToLua.CheckObject(L, 1, typeof(LookatCameraController));
         float arg0            = (float)LuaDLL.luaL_checknumber(L, 2);
         float arg1            = (float)LuaDLL.luaL_checknumber(L, 3);
         float arg2            = (float)LuaDLL.luaL_checknumber(L, 4);
         UnityEngine.Vector3 o = obj.CaculatePose(arg0, arg1, arg2);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }