Example #1
0
    public virtual void Init()
    {
        BuildBoard();

        foreach (GameHex gHex in Hexes)
        {
            gHex.SetColourInner(BoardColourPallet.Inner(ColorPallet));
            gHex.SetColourOuter(BoardColourPallet.Outer(ColorPallet));
        }
    }
Example #2
0
    void HighlightGameHexes(List <GameHex> highlightHexes)
    {
        foreach (GameHex gHex in Hexes)
        {
            Material mat = highlightHexes.Contains(gHex) ?
                           BoardColourPallet.OuterHighlight(ColorPallet) :
                           BoardColourPallet.Outer(ColorPallet);

            gHex.SetColourOuter(mat);
        }
    }