Add random point moving.

This commit is contained in:
2022-04-13 11:00:07 +07:00
parent 5371fe0f9c
commit b9b2f3ddf7
43 changed files with 3408 additions and 711 deletions

View File

@ -3,11 +3,15 @@ using UnityEngine;
public class MapManager : MonoBehaviour
{
public List<NavPoint> navPoints { get; private set; }
public static List<NavPoint> navPoints { get; private set; }
private void Start()
{
navPoints = new List<NavPoint>();
var navPointsGameObj = GameObject.FindGameObjectsWithTag("Point");
foreach (var gameobj in navPointsGameObj)
{
Debug.Log(" a ");
navPoints.Add(gameobj.GetComponent<NavPoint>());
}
}
}