void Awake() { if (singleton != null && singleton != this) { Destroy(this.gameObject); return; } else { singleton = this; } DontDestroyOnLoad(this); }
//private Chat chat; void Awake() { audio2D = Audio2D.singleton; //chat = Chat.singleton; }