GridManager.ClearSquares C# (CSharp) Method

ClearSquares() public method

public ClearSquares ( ) : void
return void
    public void ClearSquares()
    {
        foreach ( Point point in AllSquares() )
        {
            squares[ point.x, point.y ] = GenerateTile( point.x, point.y );			//new Tile();
        }
    }

Usage Example

Esempio n. 1
0
    private void GridManager_INIT()
    {
        GRIDMANAGER         = new GridManager(this, 4);
        GRIDMANAGER.Squares = new Tile[WIDTH, HEIGHT];

        GRIDMANAGER.ClearSquares();

        GRIDMANAGER.Squares[0, 7].ContentCode  = TileContent.Start;
        GRIDMANAGER.Squares[20, 7].ContentCode = TileContent.Finish;

        GRIDMANAGER.ClearLogic();
        GRIDMANAGER.Pathfind();
        //	GRIDMANAGER.HighlightPath();
    }
All Usage Examples Of GridManager::ClearSquares