Exemplo n.º 1
0
    void Update()
    {
        SetMoveDioToggle();


        if (!loader.LoaderRunning)
        {
            if (Time.deltaTime > 0)
            {
                lastDeltaTime = Time.deltaTime;
            }

            RotateTextsToHMD();
            ToolTipTimer();

            if (control != null)
            {
                control.RefreshControl();
            }
            if (Input.GetKey("escape"))
            {
                Application.Quit();
            }

            LookMenuActivate();
            CheckForActiveButton();

            SelectObjectMode.SoftReset();

            mode.IUpdate();
            FMControlUpdate();


            if (moveDio)
            {
                PoserMode.DropObject();
                ScalePanMode.Instance().IControlUpdate();
            }
            else if (activeNode)
            {
                if (control.AR())
                {
                    ActivateNode();
                    return;
                }
                if (keyboard.gameObject.activeInHierarchy)
                {
                    KeyboardMode.Instance().IControlUpdate();
                }
            }
            else if (keyboard.gameObject.activeInHierarchy)
            {
                KeyboardMode.Instance().IControlUpdate();
            }
            else if (mode != null)
            {
                mode.IControlUpdate();
            }
            RightDetailText();
        }
        else
        {
            rightText.text = "Loading";
            if (moveDio)
            {
                ScalePanMode.Instance().IControlUpdate();
            }
        }
    }