This repository has been archived on 2024-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
sota/RunningLateGame/Assets/Scripts/CommonVehicle.cs

28 lines
581 B
C#
Raw Normal View History

2024-08-15 08:25:18 +00:00
/*
* author: ryan lin, mark joshwel
* date: 15/08/2024
* description: common vehicular behaviour
*/
using UnityEngine;
/// <summary>
/// logic to move a vehicle to a target position
/// </summary>
public class CommonVehicle : MonoBehaviour
{
/// <summary>
/// game object that the vehicle is moving towards
/// </summary>
[SerializeField] private GameObject targetWaypoint;
/// <summary>
/// enum of states that the vehicle can be in
/// </summary>
private enum State
{
Stopped,
Slowed,
Driving
}
}