Exemplo n.º 1
0
    public void clicked()               // !!!! This is assuming the chip is in a hand !!!! (Ok for now b/c only called by click event)
    {
        GameObject hand = transform.parent.gameObject;

        hand.GetComponent <Chip_Hand>().chip_removed(index, chip_logic.cost);
        navi.useChip(chip_logic.ID, color_code);
    }
Exemplo n.º 2
0
 public void Draw_Chip()
 {
     if (navi != null)
     {
         if (Cust.GetComponent <Cust>().energy >= 2) // have at least 2 energy to draw
         {
             navi.useChip(-1, 0);                    // -1 is a non-chip-code that represents draw, 0 is grey
         }
     }
 }