Exemple #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);
     }
 }
Exemple #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);
     }
 }
Exemple #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);
     }
 }