void Start() { // Ensure singleton if (SumPause.instance == null) { SumPause.instance = this; } else { Destroy(this); } }
private void Start() { if (SumPause.instance == null) { SumPause.instance = this; } else { Destroy(this); } glueCam = FindObjectOfType <GlueCam>(); musicPlayer = FindObjectOfType <MusicPlayer>(); player = FindObjectOfType <Player>(); }