using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
public class Testing : MonoBehaviour
{
[SerializeField] private Unit unit;
private void Start()
{
}
private void Update() {
if (Input.GetKeyDown(KeyCode.T)) {
}
}
private void findPath() {
// GridPosition mouseGridPosition = LevelGrid.Instance.GetGridPosition(MouseWorld.GetPosition());
// GridPosition startGridPosition = new GridPosition(0, 0);
// float startTime = Time.realtimeSinceStartup;
// List<GridPosition> gridPositionList = Pathfinding.Instance.FindPath(startGridPosition, mouseGridPosition).ToList();
// Debug.Log((Time.realtimeSinceStartup - startTime) * 1000);
// for (int i = 0; i < gridPositionList.Count - 1; i++)
// {
// Debug.DrawLine(
// LevelGrid.Instance.GetWorldPosition(gridPositionList[i]),
// LevelGrid.Instance.GetWorldPosition(gridPositionList[i + 1]),
// Color.black,
// 5f
// );
// }
}
}