public static CrisisCardModel createCrisisCard(CrisisCardType typeCard) { CrisisCardModel card = new CrisisCardModel(); card.power = typeCard.getPower(); card.colors = typeCard.getColors(); return(card); }
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(); }
public void setNewSuper() { model = CrisisCardModel.createCrisisCard(CrisisCardType.SUPER); view.renderCrisisCard(model); }
public void setNewHard() { model = CrisisCardModel.createCrisisCard(CrisisCardType.HARD); view.renderCrisisCard(model); }
public void setNewMedium() { model = CrisisCardModel.createCrisisCard(CrisisCardType.MEDIUM); view.renderCrisisCard(model); }
public void setNewEasy() { model = CrisisCardModel.createCrisisCard(CrisisCardType.EASY); view.renderCrisisCard(model); }