void Awake() { m_ScoreText = GameObject.FindGameObjectWithTag("UI").GetComponentInChildren <Score>(); m_Audio = Camera.main.GetComponent <AudioPlayer>(); }
void Awake() { m_Audio = Camera.main.GetComponent <AudioPlayer>(); m_SpriteRenderer = transform.parent.GetComponent <SpriteRenderer>(); }