コード例 #1
0
 public void Riddle_1_Active()
 {
     Panel.SetActive(true);
     foreach (GameObject UI_Object1 in UI_Objects1)
     {
         UI_Object1.SetActive(true);
     }
 }
コード例 #2
0
 public void ClosePanel()
 {
     foreach (GameObject UI_Object1 in UI_Objects1)
     {
         UI_Object1.SetActive(false);
     }
     foreach (GameObject UI_Object2 in UI_Objects2)
     {
         UI_Object2.SetActive(false);
     }
     Panel.SetActive(false);
 }
コード例 #3
0
 public void Update()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         foreach (GameObject UI_Object1 in UI_Objects1)
         {
             UI_Object1.SetActive(false);
         }
         foreach (GameObject UI_Object2 in UI_Objects2)
         {
             UI_Object2.SetActive(false);
         }
         Panel.SetActive(false);
     }
 }