示例#1
0
        public static CrisisCardModel createCrisisCard(CrisisCardType typeCard)
        {
            CrisisCardModel card = new CrisisCardModel();

            card.power  = typeCard.getPower();
            card.colors = typeCard.getColors();
            return(card);
        }
示例#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();
 }
示例#3
0
 public void setNewSuper()
 {
     model = CrisisCardModel.createCrisisCard(CrisisCardType.SUPER);
     view.renderCrisisCard(model);
 }
示例#4
0
 public void setNewHard()
 {
     model = CrisisCardModel.createCrisisCard(CrisisCardType.HARD);
     view.renderCrisisCard(model);
 }
示例#5
0
 public void setNewMedium()
 {
     model = CrisisCardModel.createCrisisCard(CrisisCardType.MEDIUM);
     view.renderCrisisCard(model);
 }
示例#6
0
 public void setNewEasy()
 {
     model = CrisisCardModel.createCrisisCard(CrisisCardType.EASY);
     view.renderCrisisCard(model);
 }