public static CrisisCardModel createCrisisCard(CrisisCardType typeCard)
        {
            CrisisCardModel card = new CrisisCardModel();

            card.power  = typeCard.getPower();
            card.colors = typeCard.getColors();
            return(card);
        }
Exemple #2
0
 public void renderCrisisCard(CrisisCardModel card)
 {
     yellow.SetActive(card.colors[0]);
     green.SetActive(card.colors[1]);
     purple.SetActive(card.colors[2]);
     red.SetActive(card.colors[3]);
     blue.SetActive(card.colors[4]);
     power.text = card.power.ToString();
 }
Exemple #3
0
 public void setNewSuper()
 {
     model = CrisisCardModel.createCrisisCard(CrisisCardType.SUPER);
     view.renderCrisisCard(model);
 }
Exemple #4
0
 public void setNewHard()
 {
     model = CrisisCardModel.createCrisisCard(CrisisCardType.HARD);
     view.renderCrisisCard(model);
 }
Exemple #5
0
 public void setNewMedium()
 {
     model = CrisisCardModel.createCrisisCard(CrisisCardType.MEDIUM);
     view.renderCrisisCard(model);
 }
Exemple #6
0
 public void setNewEasy()
 {
     model = CrisisCardModel.createCrisisCard(CrisisCardType.EASY);
     view.renderCrisisCard(model);
 }