Пример #1
0
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     if (audioctrls == null)
     {
         audioctrls = this;
     }
     datafilepath = "../data/usersetting.txt";
     Loaddata();
     if (playsounds == true)
     {
         BGmusic.SetActive(true);
         btnsounds.GetComponent <Image>().sprite = soundsison;
     }
     else
     {
         BGmusic.SetActive(false);
         btnsounds.GetComponent <Image>().sprite = soundsisoff;
     }
 }