Example #1
0
 public static ScalePanMode Instance()
 {
     if (instance == null)
     {
         instance = new ScalePanMode();
         manager  = SL.Get <GameManager>();
         control  = SL.Get <IVRControl>();
         shared   = SL.Get <WorldBuilderMain>();
     }
     return(instance);
 }
Example #2
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();
            }
        }
    }