// Use this for initialization void Start() { AdjustHealth(0); AdjustMonies(0); UpdateScore(0); quitAndRestart = FindObjectOfType <QuitAndRestart>(); }
//make this a singleton void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
// Use this for initialization void Start() { quitAndRestart = FindObjectOfType <QuitAndRestart>(); }