static int UpdateFollowOffset(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); System.Collections.Generic.List <UnityEngine.Vector3> arg0 = (System.Collections.Generic.List <UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector3>)); obj.UpdateFollowOffset(arg0); return(0); } else if (count == 3) { PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); System.Collections.Generic.List <UnityEngine.Vector3> arg0 = (System.Collections.Generic.List <UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector3>)); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.UpdateFollowOffset(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: PgJoystick.UpdateFollowOffset")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ResetSceneRotPoint(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); obj.ResetSceneRotPoint(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AutoCamRotate(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); obj.AutoCamRotate(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCamRotateOffset(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); float o = obj.GetCamRotateOffset(); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCamLookPos(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); UnityEngine.Vector3 o = obj.GetCamLookPos(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); FairyGUI.GComponent arg0 = (FairyGUI.GComponent)ToLua.CheckObject <FairyGUI.GComponent>(L, 2); obj.Init(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetSceneRotPoint(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.SetSceneRotPoint(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetCam(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2); obj.SetCam(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetLockView(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.SetLockView(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetInstance(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); PgJoystick o = SingetonMono <PgJoystick> .GetInstance(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int BeginAutoCamZoomIn(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.BeginAutoCamZoomIn(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AutoMove(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.AutoMove(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
void Start() { PgJoystick.GetInstance().SetCam(Camera.main.transform); GameObject.DontDestroyOnLoad(Camera.main.gameObject); InitUI(); AppFacade.Instance.StartUp(); //启动游戏 AppFacade.Instance.RegisterCommand(NotiConst.UPDATE_MESSAGE, typeof(UpdateCommand)); //#if UNITY_EDITOR // Application.targetFrameRate = 60; //#else // Application.targetFrameRate = 30; //#endif }
static int SetSceneLockView(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.SetSceneLockView(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CameraRotate(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); PgJoystick obj = (PgJoystick)ToLua.CheckObject <PgJoystick>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); obj.CameraRotate(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_onMoveEnd(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; PgJoystick.OnMoveEndHandler2 ret = obj.onMoveEnd; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onMoveEnd on a nil value")); } }
static int set_followOffset(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.followOffset = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index followOffset on a nil value")); } }
static int get_isLockView(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; bool ret = obj.isLockView; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isLockView on a nil value")); } }
static int set_enableMoveDir(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.enableMoveDir = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index enableMoveDir on a nil value")); } }
static int set_offsetLook(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.offsetLook = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index offsetLook on a nil value")); } }
static int set_onMoveEnd(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; PgJoystick.OnMoveEndHandler2 arg0 = (PgJoystick.OnMoveEndHandler2)ToLua.CheckDelegate <PgJoystick.OnMoveEndHandler2>(L, 2); obj.onMoveEnd = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onMoveEnd on a nil value")); } }
static int get_MaxCamDistance(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; float ret = obj.MaxCamDistance; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index MaxCamDistance on a nil value")); } }
static int get_EnableAutoCamRotate(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; bool ret = obj.EnableAutoCamRotate; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index EnableAutoCamRotate on a nil value")); } }
static int get_sceneRotPoint(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; int ret = obj.sceneRotPoint; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sceneRotPoint on a nil value")); } }
static int get_defaultRotation(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; UnityEngine.Quaternion ret = obj.defaultRotation; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index defaultRotation on a nil value")); } }
static int get_autoRotateSpeed(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; float ret = obj.autoRotateSpeed; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index autoRotateSpeed on a nil value")); } }
static int get_followOffset(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; UnityEngine.Vector3 ret = obj.followOffset; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index followOffset on a nil value")); } }
static int get_cameraLookAt(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; UnityEngine.Transform ret = obj.cameraLookAt; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cameraLookAt on a nil value")); } }
static int get_RangeRotateY(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; UnityEngine.Vector2 ret = obj.RangeRotateY; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index RangeRotateY on a nil value")); } }
static int set_defaultRotation(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; UnityEngine.Quaternion arg0 = ToLua.ToQuaternion(L, 2); obj.defaultRotation = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index defaultRotation on a nil value")); } }