Example #1
0
            // Update is called once per frame
            void Update()
            {
                if (Input.GetKeyUp(m_enableKey))
                {
                    this.isEnableView = !(this.isEnableView);
                }

                if (this.isEnableView)
                {
                    if (XVRInput.IsTrigForced(m_moveLogMenuKey))
                    {
                        if (m_moveLog || (!XVRInput.enabledDebug))
                        {
                            m_moveLog = !m_moveLog;
                            XVRInput.EnableDebug(m_moveLog);
                        }
                    }
                    if (Input.GetKeyDown(m_dumpLogMenuKey))
                    {
                        XLogger.Log("DebugSystem:DumpLog");
                        XLogger.DumpLog();
                    }
                    if (m_moveLog)
                    {
                        if (XVRInput.IsHoldDbg(XVRKeyCode.Up))
                        {
                            m_positionY -= m_moveSpeedY;
                        }
                        if (XVRInput.IsHoldDbg(XVRKeyCode.Down))
                        {
                            m_positionY += m_moveSpeedY;
                        }
                        if (XVRInput.IsHoldDbg(XVRKeyCode.Left))
                        {
                            m_positionX -= m_moveSpeedX;
                        }
                        if (XVRInput.IsHoldDbg(XVRKeyCode.Right))
                        {
                            m_positionX += m_moveSpeedX;
                        }
                    }
                }
            }