// Start is called before the first frame update void Awake() { // if the singleton hasn't been initialized yet if (instance != null) { Destroy(this); return;//Avoid doing anything else } instance = this; PlayAudio(); }
private void Awake() { Instance = this; clipManger = new ClipManger(); audioManger = new AudioManger(gameObject); }