コード例 #1
0
 public void changeSound()
 {
     if (StaticSettings.getSoundOn() == true)
     {
         StaticSettings.setSoundOn(false);
         soundOn.gameObject.SetActive(false);
         soundOff.gameObject.SetActive(true);
     }
     else
     {
         StaticSettings.setSoundOn(true);
         soundOn.gameObject.SetActive(true);
         soundOff.gameObject.SetActive(false);
     }
 }