Beispiel #1
0
 public void setOpen(IdTarjeta id, bool estado)
 {
     if ((uint)id > 0 && (uint)id <= numTarjetas)
     {
         estadoTarjetas[(uint)id - 1] = estado;
     }
 }
Beispiel #2
0
 public bool getOpen(IdTarjeta id)
 {
     if ((uint)id > 0 && (uint)id <= numTarjetas)
     {
         return(estadoTarjetas[(uint)id - 1]);
     }
     else
     {
         return(false);
     }
 }
Beispiel #3
0
    public void SetTarjeta(IdTarjeta id)
    {
        switch (id)
        {
        case IdTarjeta.ROJA:
            t_roj.SetActive(true);
            break;

        case IdTarjeta.AZUL:
            t_azul.SetActive(true);
            break;

        case IdTarjeta.VIOLETA:
            t_vio.SetActive(true);
            break;

        default:
            break;
        }
    }