Пример #1
0
 void Awake()
 {
     _renderer    = GetComponent <SpriteRenderer> ();
     _rigidbody2D = GetComponent <Rigidbody2D> ();
     _audio       = GetComponent <AudioPlayer> ();
 }
Пример #2
0
 void Awake()
 {
     _animator = GetComponent <Animator> ();
     _audio    = GetComponent <AudioPlayer> ();
 }
 void Awake()
 {
     _audio = GetComponent <AudioPlayer> ();
 }