You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
614 B
30 lines
614 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace BuildSystem
|
|
{
|
|
public class Car : MonoBehaviour
|
|
{
|
|
public Vector2Int pos;
|
|
public Queue<Grid> moveRoad = new Queue<Grid>();
|
|
|
|
private void Update()
|
|
{
|
|
if (moveRoad.Count < 3) {
|
|
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 随机寻找下一个路径
|
|
/// </summary>
|
|
/// <param name="pos"></param>
|
|
void RandomFindRoad(Vector2Int pos) {
|
|
//BuildSystemManager.Instance.gridMap[pos.x][pos.y]
|
|
}
|
|
|
|
|
|
}
|
|
}
|