void Awake() { //Code to manage the singleton uniqueness if ((singleton != null) && (singleton != this)) { Destroy(gameObject); return; } singleton = this; }
private void Start() { GC = gameDirector.GetComponent <Game2Controller>(); }
//public GameObject addScorePrefab; private void Awake() { instance = this; }