194 ◾ Game Magic
{
global.Tarot[7] = 1; //location 7
//of the Tarot array becomes 1, indicating that the correct
//card has been placed for a question
}
}
//checks if the object has entered the trigger
//for the 27th path
else if (gameObject.name == "Card_holder_27")
{
//checks if the object is the Tower card
if (myTrigger.gameObject.name ==
"Tower(Clone)")
{
global.Tarot[20] = 1; //location
//20 of the Tarot array becomes 1, indicating that the
//correct card has been placed for a question
//Debug.Log("tower");
}
}
//checks if the object has entered the trigger
//for the 32nd path
else if (gameObject.name == "Card_holder_32")
{
//checks if the object is the World card
if (myTrigger.gameObject.name ...