private void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; GameObject.DontDestroyOnLoad(gameObject); } }
void Awake() { music = GameObject.FindObjectOfType <ToggleMusicBtn>(); UpdateIcon(); }
private void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; GameObject.DontDestroyOnLoad(gameObject); } }
void Awake() { music = GameObject.FindObjectOfType <ToggleMusicBtn>(); UpdateIcon(); }