public void CheckFuel() { if (_fuelBar.value == 0) { _rocket.Die(); } }
public void CheckHealth() { if (_healthBar.value == 0) { _rocket.Die(); _healthBar.DOKill(); _healthBar.DOValue(1, _rocket.RespawnTime); } }