// Start is called before the first frame update private void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }
// Start is called before the first frame update void Start() { health = GetComponent <Health>(); gameScoreManager = WinConditionManager.instance; }