void Start() { nodosExpandidos = 0; mapCreatorScript = gameObject.GetComponent <MapCreatorScript>(); LoadMap(); mapCreatorScript.CreateMap(mapRepresentation); nodosVisitados = new List <Node>(); StartCoroutine(Busqueda()); }
// Use this for initialization void Start() { mapCreatorScript = GameObject.FindGameObjectWithTag("mapcreator").GetComponent <MapCreatorScript>(); }