static int SetFloat(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UnityGameFramework.Runtime.SettingComponent obj = (UnityGameFramework.Runtime.SettingComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.SettingComponent)); string arg0 = ToLua.CheckString(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); obj.SetFloat(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public override void OnUpdate(float elapseSeconds, float realElapseSeconds) { if (m_LastIconX != m_DebuggerComponent.IconRect.x) { m_LastIconX = m_DebuggerComponent.IconRect.x; m_SettingComponent.SetFloat("Debugger.Icon.X", m_DebuggerComponent.IconRect.x); } if (m_LastIconY != m_DebuggerComponent.IconRect.y) { m_LastIconY = m_DebuggerComponent.IconRect.y; m_SettingComponent.SetFloat("Debugger.Icon.Y", m_DebuggerComponent.IconRect.y); } if (m_LastWindowX != m_DebuggerComponent.WindowRect.x) { m_LastWindowX = m_DebuggerComponent.WindowRect.x; m_SettingComponent.SetFloat("Debugger.Window.X", m_DebuggerComponent.WindowRect.x); } if (m_LastWindowY != m_DebuggerComponent.WindowRect.y) { m_LastWindowY = m_DebuggerComponent.WindowRect.y; m_SettingComponent.SetFloat("Debugger.Window.Y", m_DebuggerComponent.WindowRect.y); } if (m_LastWindowWidth != m_DebuggerComponent.WindowRect.width) { m_LastWindowWidth = m_DebuggerComponent.WindowRect.width; m_SettingComponent.SetFloat("Debugger.Window.Width", m_DebuggerComponent.WindowRect.width); } if (m_LastWindowHeight != m_DebuggerComponent.WindowRect.height) { m_LastWindowHeight = m_DebuggerComponent.WindowRect.height; m_SettingComponent.SetFloat("Debugger.Window.Height", m_DebuggerComponent.WindowRect.height); } if (m_LastWindowScale != m_DebuggerComponent.WindowScale) { m_LastWindowScale = m_DebuggerComponent.WindowScale; m_SettingComponent.SetFloat("Debugger.Window.Scale", m_DebuggerComponent.WindowScale); } }