コード例 #1
0
 private void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0) && overallManager.checkInteractMenu())
     {
         if (goesToScene)
         {
             SceneManager.LoadScene(whereTo);
         }
         else
         {
             popUp.SetActive(true);
             overallManager.setInteractMenu(false);
         }
     }
 }
コード例 #2
0
 private void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0))
     {
         if (type == 0)
         {
             overallManager.setInteractMenu(true);
             transform.parent.gameObject.SetActive(false);
         }
         else if (type == 1)
         {
             overallManager.toggleMute();
         }
         else if (type == 2)
         {
             overallManager.toggleColorblind();
         }
     }
 }