GridManager.ClearLogic C# (CSharp) Method

ClearLogic() public method

public ClearLogic ( ) : void
return void
    public void ClearLogic()
    {
        foreach ( Point point in AllSquares() )
        {
            int x = point.x;
            int y = point.y;
            squares[ x, y ].DistanceSteps = 10000;
            squares[ x, y ].IsPath = false;
            squares[ x, y ].SetColor( (squares[ x, y ].ContentCode == TileContent.Wall ) ? Color.red : Color.white );

        }
    }

Usage Example

Esempio n. 1
0
    public void RecalcPath()
    {
        GRIDMANAGER.ClearLogic();
        GRIDMANAGER.Pathfind();
        //  GRIDMANAGER.HighlightPath();

        //	GRIDMANAGER.DrawBoard( this );
    }
All Usage Examples Of GridManager::ClearLogic