using System.Collections; using System.Collections.Generic; using UnityEngine; public class TravelEvent { public virtual void PlayerEvent(int eventID, float lengh, float speed,float time) { } } public class GoEndPointEvent : TravelEvent { public override void PlayerEvent(int eventID, float lengh, float speed,float time) { } } public class SpeedUpEvent : TravelEvent { public override void PlayerEvent(int eventID, float lengh, float speed,float time) { } }