public override void Move() { SoundPlayer move = new SoundPlayer(@"..\..\src\cadillacmove.wav"); move.PlaySync(); MoveNotification?.Invoke($"\"{Name}\" Car is riding"); }
public override void Move() { SoundPlayer move = new SoundPlayer(@"..\..\src\teslamove.wav"); move.PlaySync(); batteryLevel -= 10; if (batteryLevel <= 0) { Condition = "Empty battery"; } else if (batteryLevel <= 30) { Condition = "Low battery"; } MoveNotification?.Invoke($"\"{Name}\" Car is riding"); }