Exemplo n.º 1
0
 internal void RefillElctricVehicle(float i_ToAdd)
 {
     if (m_Engine is Electric)
     {
         m_Engine.RefillEnergy(i_ToAdd);
     }
     else
     {
         throw (new ArgumentException("Wrong Type Of Vehicle"));
     }
 }