Ejemplo n.º 1
0
    /// <summary>
    /// Resets the map and researches
    /// </summary>
    public void resetMap()
    {
        cleanUp();
        GameObject  aStarObj = GameObject.FindWithTag("AStar");
        AStarSearch aStar    = aStarObj.GetComponent <AStarSearch>();

        aStar.cleanUp();
        this._nodes = readMap(_mapFileName);
        aStar._map  = _map;
        aStar.findPath(this._nodes);
        // TODO: Something is breaking. Cannot set the _path stupidly! SHIIIIT
    }