Пример #1
0
    public void SetDistanceFromStart(Character character, float distance)
    {
        //_distanceStart = distance;
        sTilePathFindInfo tilePathFindInfo = _pathFindInfo[character];

        tilePathFindInfo.distanceStart = distance;
        _pathFindInfo[character]       = tilePathFindInfo;
    }
Пример #2
0
    //TileCell _prevTileCell;
    public void SetPrevTileCell(Character character, TileCell prevTileCell)
    {
        //_prevTileCell = prevTileCell;
        sTilePathFindInfo tilePathFindInfo = _pathFindInfo[character];

        tilePathFindInfo.prevTileCell = prevTileCell;
        _pathFindInfo[character]      = tilePathFindInfo;
    }
Пример #3
0
    //bool _isVisit;
    public void SetVisit(Character character, bool isVisited)
    {
        //_isVisit = isVisited;
        sTilePathFindInfo tilePathFindInfo = _pathFindInfo[character];

        tilePathFindInfo.isVisit = isVisited;
        _pathFindInfo[character] = tilePathFindInfo;
    }