Пример #1
0
 private void Awake()
 {
     _targetPanel = FindObjectOfType <TargetPanel>();
     _hitPanel    = Resources.FindObjectsOfTypeAll <HitPanel>()[0];
     _damagePanel = Resources.FindObjectsOfTypeAll <DamagePanel>()[0];
     _uiAudio     = FindObjectOfType <UIAudio>();
 }
Пример #2
0
 private void Awake()
 {
     All.Add(this);
     _myIcon  = transform.GetChild(0).gameObject.GetComponent <Image>();
     _uiAudio = FindObjectOfType <UIAudio>();
 }