Ejemplo n.º 1
0
        public void SetTilemap(MapProperties tilemap)
        {
            Tilemap = tilemap;

            if (Tilemap)
            {
                Pathfinding = Tilemap.GetComponent <Pathfinding>();
                Tilemap.AddConnections(Connections);
                Tilemap.AddSpawnPoints(SpawnPoints);
            }
            else
            {
                Pathfinding = null;
                Connections.Clear();
                SpawnPoints.Clear();
            }
        }