// Update is called once per frame void Update() { if (hcs != null) { Magazine magazine = magazines [selectedMagazine]; hcs.UpdateHUD(magazine.bullet.color, magazine.remainingBullets, magazine.maxBullets); } }
// Update is called once per frame void Update() { if (hcs != null) { hcs.UpdateHUD(health); } if (heal) { IncrementHealth(100); heal = false; } if (damage) { ApplyDamage(100); damage = false; } if (kill) { ApplyDamage(health); kill = false; } }