// Use this for initialization void Start() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }
void Awake() { scoreClass = GameObject.Find("GameHandler").GetComponent<TheScore>(); sScore = GameObject.Find("GodObject").GetComponent<StayingScores>(); player = GameObject.Find("Player").GetComponent<PlayerController>(); }
void Awake() { audioOn = GetComponent<AudioSource>(); scoreClass = GameObject.Find("GameHandler").GetComponent<TheScore>(); }