// Use this for initialization void Start() { GlobalScoreKeeper oldKeeper = FindObjectOfType <GlobalScoreKeeper> (); if (oldKeeper) { score = oldKeeper.score; Destroy(oldKeeper.gameObject); } }
// Use this for initialization void Start() { text = GetComponent <Text> (); scoreKeeper = FindObjectOfType <GlobalScoreKeeper> (); }
void Start() { scoreKeeper = FindObjectOfType <GlobalScoreKeeper> (); setInstrument(); }
void Start() { scoreKeeper = FindObjectOfType <GlobalScoreKeeper> (); }
void OnCollisionEnter(Collision collision) { GlobalScoreKeeper scoreKeeper = FindObjectOfType <GlobalScoreKeeper> (); scoreKeeper.IncrementScore(); }