Exemple #1
0
    private void ActivateNode()
    {
        Node n = activeNode.GetComponent <Node>();

        if (keyboard.gameObject.activeInHierarchy)
        {
            KeyboardMode.Instance().ButtonActivate(n, control.LSH());
        }
        else
        {
            mode.ButtonActivate(n, control.LSH());
        }
    }
Exemple #2
0
 public void DisableKeyboard()
 {
     keyboard.gameObject.SetActive(false);
     KeyboardMode.Instance().SoftUnload();
 }
Exemple #3
0
 public void EnableKeyboard()
 {
     keyboard.gameObject.SetActive(true);
     KeyboardMode.Instance().SetupMode();
 }
Exemple #4
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();
            }
        }
    }