private void ActivateNode() { Node n = activeNode.GetComponent <Node>(); if (keyboard.gameObject.activeInHierarchy) { KeyboardMode.Instance().ButtonActivate(n, control.LSH()); } else { mode.ButtonActivate(n, control.LSH()); } }
public void DisableKeyboard() { keyboard.gameObject.SetActive(false); KeyboardMode.Instance().SoftUnload(); }
public void EnableKeyboard() { keyboard.gameObject.SetActive(true); KeyboardMode.Instance().SetupMode(); }
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(); } } }