Exemple #1
0
    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);
    }
Exemple #2
0
 public void hide()
 {
     CanvasGroupUtility.hide(GetComponent <CanvasGroup>());
 }