public void togglePanel(string s) { if (currentpanel == s) { return; } CanvasGroupUtility.hide(panels [currentpanel].GetComponent <CanvasGroup>()); CanvasGroupUtility.show(panels [s].GetComponent <CanvasGroup>()); currentpanel = s; switch (s) { case "menupanel": mainCamera.SetActive(true); arCamera.SetActive(false); break; case "bagpanel": mainCamera.SetActive(true); arCamera.SetActive(false); break; case "checkpanel": mainCamera.SetActive(false); arCamera.SetActive(true); break; } arEnv.SetActive(arCamera.activeSelf); }
public void hide() { CanvasGroupUtility.hide(GetComponent <CanvasGroup>()); }