Exemple #1
0
        public void InitMaxAmountOfEnergy(Vehicle i_Vehicle)
        {
            switch (m_EnergyType)
            {
            case eEnergyTypes.Fuel:
                this.m_MaxAmountOfEnergy = i_Vehicle.GetMaxFuelAmount();
                break;

            case eEnergyTypes.Electric:
                this.m_MaxAmountOfEnergy = i_Vehicle.GetMaxElectricAmount();
                break;
            }
        }