void Start() { pathfinding = Pathfinding.Instance; map = new Map(MapWidth, MapHeight); if (OnMapChange != null) { OnMapChange(); } pathfinding.CreateNodeGrid(); }