Example #1
0
 // 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();
 }
Example #2
0
    public HexColorPair Pop()
    {
        var tmp = next;

        next  = next2;
        next2 = new HexColorPair(deck.Pop(), deck.Pop());
        Refresh();
        return(tmp);
    }
Example #3
0
 public void ChangeHex(HexColorPair pair)
 {
     if (mainImg == null)
     {
         Init();
     }
     mainImg.ChangeImage(pair.Main);
     subImg.ChangeImage(pair.Sub);
 }
Example #4
0
 public void SetImages(HexColorPair pair)
 {
     mainImg.ChangeImage(pair.Main);
     subImg.ChangeImage(pair.Sub);
 }