public void playCard(int index) { if (energy >= myDeck[index].energyCost) { text.text = myDeck[index].effect().ToString(); audience.changePlayerAffection(myDeck[index].effect()); energy = energy - myDeck[index].energyCost; } }