void Start() { if (instance == null) { instance = this; } }
// 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; } }