Exemplo n.º 1
0
        private void GoToCycle(HUDCycle newCycle, Boolean forced = false)
        {
            if (newCycle != Cycle || forced)
            {
                ArduinoInterface.Clear();

                Timer               = 0;
                PlayerHealth        = -1;
                PlayerArmor         = -1;
                VehicleBodyHealth   = -1;
                VehicleEngineHealth = -1;

                Cycle        = newCycle;
                CycleChanged = true;
            }
        }
Exemplo n.º 2
0
        private void GoToCycle(HUDCycle newCycle, Boolean forced = false)
        {
            if (newCycle != Cycle || forced)
            {
                ArduinoInterface.Clear();

                Timer = 0;
                PlayerHealth = -1;
                PlayerArmor = -1;
                VehicleBodyHealth = -1;
                VehicleEngineHealth = -1;

                Cycle = newCycle;
                CycleChanged = true;
            }
        }