void Awake() { if (instance != null) { instance.resetScore(); Destroy(gameObject); } else { DontDestroyOnLoad(gameObject); instance = this; } }