Ejemplo n.º 1
0
 void Update()
 {
     if (playerShip != null && playerShip.crewSystem != null)
     {
         crewGauge.SetCurrent(playerShip.crewSystem.GetCrewLeft());
         crewGauge.SetMax(playerShip.crewSystem.GetMaxCrew());
         fuelGauge.SetCurrent(playerShip.propulsionSystem.GetFuelLeft());
         fuelGauge.SetMax(playerShip.propulsionSystem.GetMaxFuel());
         energyGauge.SetCurrent(playerShip.energySystem.GetEnergyLeft());
         energyGauge.SetMax(playerShip.energySystem.GetMaxEnergy());
     }
 }
Ejemplo n.º 2
0
    void Update()
    {
        if (hull.crew != null)
        {
            crewGauge.SetCurrent(hull.crew.GetCrewLeft());
            crewGauge.SetMax(hull.crew.GetMaxCrew());
            fuelGauge.SetCurrent(hull.fuel.GetFuelLeft());
            fuelGauge.SetMax(hull.fuel.GetMaxFuel());
            energyGauge.SetCurrent(hull.energy.GetEnergyLeft());
            energyGauge.SetMax(hull.energy.GetMaxEnergy());

            Debug.Log(hull.GetMassScore());
            massGauge.SetCurrent(hull.GetMassScore());
            massGauge.SetMax(100);
            powerGauge.SetCurrent(hull.GetEnergyScore());
            powerGauge.SetMax(100);
            accelerationGauge.SetCurrent(hull.GetAccelerationScore());
            accelerationGauge.SetMax(100);
            fuelConsumptionGauge.SetCurrent(hull.GetFuelScore());
            fuelConsumptionGauge.SetMax(100);
        }
    }