예제 #1
0
 static int shake(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         NormalCameraController obj = (NormalCameraController)ToLua.CheckObject(L, 1, typeof(NormalCameraController));
         obj.shake();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 static int SetDuration(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         NormalCameraController obj = (NormalCameraController)ToLua.CheckObject(L, 1, typeof(NormalCameraController));
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.SetDuration(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #3
0
 static int SetFollowTarget(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         NormalCameraController obj  = (NormalCameraController)ToLua.CheckObject(L, 1, typeof(NormalCameraController));
         UnityEngine.Transform  arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
         obj.SetFollowTarget(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #4
0
    static int set_snow(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NormalCameraController obj  = (NormalCameraController)o;
            UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject));
            obj.snow = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index snow on a nil value" : e.Message));
        }
    }
예제 #5
0
    static int set_agentRot(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NormalCameraController obj  = (NormalCameraController)o;
            UnityEngine.Quaternion arg0 = ToLua.ToQuaternion(L, 2);
            obj.agentRot = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index agentRot on a nil value" : e.Message));
        }
    }
예제 #6
0
    static int set_minZhenpin(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NormalCameraController obj = (NormalCameraController)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.minZhenpin = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index minZhenpin on a nil value" : e.Message));
        }
    }
예제 #7
0
    static int set_playerAgent(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NormalCameraController obj  = (NormalCameraController)o;
            UnityEngine.Transform  arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
            obj.playerAgent = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index playerAgent on a nil value" : e.Message));
        }
    }
예제 #8
0
    static int get_snow(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NormalCameraController obj = (NormalCameraController)o;
            UnityEngine.GameObject ret = obj.snow;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index snow on a nil value" : e.Message));
        }
    }
예제 #9
0
    static int get_minZhenpin(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NormalCameraController obj = (NormalCameraController)o;
            float ret = obj.minZhenpin;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index minZhenpin on a nil value" : e.Message));
        }
    }
예제 #10
0
    static int get_pinlv(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NormalCameraController obj = (NormalCameraController)o;
            int ret = obj.pinlv;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pinlv on a nil value" : e.Message));
        }
    }
예제 #11
0
    static int get_playerAgent(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NormalCameraController obj = (NormalCameraController)o;
            UnityEngine.Transform  ret = obj.playerAgent;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index playerAgent on a nil value" : e.Message));
        }
    }