Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     SetUpMoveBoundaries();
     deadSound  = GetComponent <AudioSource>();
     laserSound = laserPrefab.GetComponent <AudioSource>();
     hpManager  = FindObjectOfType <HpImage>();
 }
Esempio n. 2
0
 public void HpDisplay()
 {
     HpImage.GetChild(1).GetComponent <Image>().fillAmount = HpRatio();
 }