예제 #1
0
 public void TryToUnlockDoor(EnumPuerta idComp)
 {
     if (this.idDoor == idComp)
     {
         this.hasCard = true;
         HudController.current.AddCardToUI(idComp);
     }
 }
예제 #2
0
    public void AddCardToUI(EnumPuerta val)
    {
        switch (val)
        {
        case EnumPuerta.Azul:
            cardAzul.SetActive(true);
            break;

        case EnumPuerta.Verde:
            cardVerde.SetActive(true);
            break;

        case EnumPuerta.Naranja:
            cardNaranja.SetActive(true);
            break;
        }
    }