// Start is called before the first frame update public void Init() { deck = new HexDeck(); deck.MakeDeck(); next = new HexColorPair(deck.Pop(), deck.Pop()); next2 = new HexColorPair(deck.Pop(), deck.Pop()); Refresh(); }
public HexColorPair Pop() { var tmp = next; next = next2; next2 = new HexColorPair(deck.Pop(), deck.Pop()); Refresh(); return(tmp); }