Esempio n. 1
0
 private void Start()
 {
     curAmmo         = maxAmmo;
     ammoFill_       = transform.GetChild(0).GetComponent <RectTransform>();
     actionFill_     = transform.GetChild(1).GetComponent <RectTransform>();
     cameraEffects_  = Camera.main.GetComponent <CameraEffects>();
     text_           = transform.GetChild(2).GetComponent <TextMeshProUGUI>();
     textBlink_      = text_.GetComponent <TextBlink>();
     ejectAudio_     = transform.GetChild(3).GetComponent <AudioSource>();
     reloadAudio_    = transform.GetChild(4).GetComponent <AudioSource>();
     emptyClipAudio_ = transform.GetChild(5).GetComponentInParent <AudioSource>();
 }