private void Awake() { if (Instance == null) { Instance = this; } }
// Start is called before the first frame update void Start() { Instance = this; Time.timeScale = 1f; language = PlayerPrefs.GetInt("LANGUAGE"); volumeSlider.onValueChanged.AddListener(delegate { ValueChangeCheck(); }); SetVolumeStart(); SetLanguage(language); }
private void Awake() { if (UIManagerInGame.instance != null) { Destroy(this); } else { UIManagerInGame.instance = this; } }
private void Awake() { singleton = this; }