Example #1
0
        public void UseFuel(float usage)
        {
            currentFuel -= usage;

            fuelBar.SetBarValue(currentFuel);

            GetCurrentFuel(currentFuel);
        }
        public void TakeDamage(float damage)
        {
            currentHealth -= damage;

            healthBar.SetBarValue(currentHealth);

            GetCurrentHealth(currentHealth);
        }