// 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); }
public void ChangeHex(HexColorPair pair) { if (mainImg == null) { Init(); } mainImg.ChangeImage(pair.Main); subImg.ChangeImage(pair.Sub); }
public void SetImages(HexColorPair pair) { mainImg.ChangeImage(pair.Main); subImg.ChangeImage(pair.Sub); }