final commit
This commit is contained in:
@ -3,17 +3,16 @@ using UnityEngine;
|
||||
|
||||
public class MapManager : MonoBehaviour
|
||||
{
|
||||
public static List<NavPoint> navPoints { get; private set; }
|
||||
public static List<NavPoint> NavPoints { get; private set; }
|
||||
private void Start()
|
||||
{
|
||||
var i = 0;
|
||||
navPoints = new List<NavPoint>();
|
||||
NavPoints = new List<NavPoint>();
|
||||
var navPointsGameObj = GameObject.FindGameObjectsWithTag("Point");
|
||||
foreach (var gameobj in navPointsGameObj)
|
||||
{
|
||||
var navpoint = gameobj.GetComponent<NavPoint>();
|
||||
navpoint.PointId = i; i++;
|
||||
navPoints.Add(navpoint);
|
||||
NavPoints.Add(navpoint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user