Пример #1
0
 void Awake()
 {
     m_ScoreText = GameObject.FindGameObjectWithTag("UI").GetComponentInChildren <Score>();
     m_Audio     = Camera.main.GetComponent <AudioPlayer>();
 }
Пример #2
0
 void Awake()
 {
     m_Audio          = Camera.main.GetComponent <AudioPlayer>();
     m_SpriteRenderer = transform.parent.GetComponent <SpriteRenderer>();
 }