void Awake()
 {
     cardModel = card.GetComponent<LayeredCardModel>();
     counter = 0;
     generator = new VictimGenerator();
     Victim v = generator.generateVictim();
     cardModel.initialize(v, skin, clothes, hair, accessory);
     generateText(cardModel.v, cardModel);
     cardModel.ToggleFace(false);
 }
 public void generateText(Victim v, LayeredCardModel c)
 {
     c.ctm.text.fontSize = 50;
     string toShow = "";
     if (v is Animal)
     {
         Animal a = (Animal)v;
         toShow += (a.name + " is a " + a.gender + " " + a.species + " who is " + a.age + " years old.");
     }
     else
     {
         Person p = (Person)v;
         toShow += (p.name + " is a " + p.ethnicity + " " + p.gender + " who is " + p.age + " years old. \n occupation: " + p.job);
     }
     c.ctm.cardText = toShow;
 }
    public float duration = 0.5f; //how long it takes to do animation

    void Awake()
    { //second game starts....
        spriteRenderer = GetComponent<SpriteRenderer>();
        model = GetComponent<LayeredCardModel>(); //method of game object of type specified

    }