public void SendGrid(bool[] states, CellType[] types, GridType gtype, int start, int end, int w, int h, GridColorTheme colors) { grid = states; cellType = types; gridType = gtype; sourceIndex = start; outputIndex = end; width = w; height = h; theme = colors; EvaluatePuzzle(); UpdateCellImages(); }
public void SendGrid(bool[] states, CellType[] types, GridType gtype, int start, int end, int w, int h, GridColorTheme colors, GameObject senttarget, GameObject senttarget1, GameObject senttarget2, GameObject senttarget3, UseData ud) { grid = states; cellType = types; gridType = gtype; sourceIndex = start; outputIndex = end; width = w; height = h; theme = colors; targets[0] = senttarget; targets[1] = senttarget1; targets[2] = senttarget2; targets[3] = senttarget3; udSender = ud; EvaluatePuzzle(); if (udSender.mainIndex == 54) { PuzzleSolved(); } UpdateCellImages(); }