void SetUI_ToMeshControl() { StopText.color = OriginalColor; SaveText.color = OriginalColor; LoadText.color = StaticMeshScript.CheckModelLoaded() && !StaticMeshScript.CheckChairExist() ? OriginalColor : BrightColor; ScanText.color = BrightColor; HintText.text = "Static Mesh"; StopText.text = "[Stop]"; SaveText.text = "[Save]"; LoadText.text = "[Load]"; ScanText.text = "[Scan]"; TriggerCanvas.SetActive(true); GripCanvas.SetActive(StaticMeshScript.CheckModelLoaded()); }
protected override void StartToDo() { PortalScript = ViveSR_Experience_Demo.instance.PortalScript; StaticMeshScript = ViveSR_Experience_Demo.instance.StaticMeshScript; EnableButton(StaticMeshScript.CheckChairExist()); }