Added project
This commit is contained in:
13
Platformer/Assets/Scripts/For HW05/Car.cs
Normal file
13
Platformer/Assets/Scripts/For HW05/Car.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Car: Vehicle {
|
||||
|
||||
public Car() {
|
||||
vehicleName = "Car";
|
||||
}
|
||||
|
||||
public override void Beep() {
|
||||
base.Beep();
|
||||
Debug.Log($"{vehicleName}: beep");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user