コード例 #1
0
 private void _CheckBG()
 {
     if (GameManager.instance.GetIDBackground() == 1)
     {
         BGDay.SetActive(true);
         BGNight.SetActive(false);
     }
     else if (GameManager.instance.GetIDBackground() == 2)
     {
         BGDay.SetActive(false);
         BGNight.SetActive(true);
     }
 }
コード例 #2
0
 public void _BGChange()
 {
     if (GameManager.instance.GetIDBackground() == 1)
     {
         BGNight.SetActive(false);
         BGDay.SetActive(true);
     }
     else if (GameManager.instance.GetIDBackground() == 2)
     {
         BGNight.SetActive(true);
         BGDay.SetActive(false);
     }
 }
コード例 #3
0
 public void _BGChange()
 {
     if (BGDay.activeSelf)
     {
         BGNight.SetActive(true);
         BGDay.SetActive(false);
         GameManager.instance.SetIDBackground(2);
     }
     else if (BGNight.activeSelf)
     {
         BGNight.SetActive(false);
         BGDay.SetActive(true);
         GameManager.instance.SetIDBackground(1);
     }
 }