HI guys,
I have a fairly simple problem (except for me)…I have created an array of card hands, and I want to access their names through an array in the order as appears in the hierchy:
For example, in the hierarchy it shows:
Canvas
Hand
card1
card2
card3
card4
I have created this code:
players = GameObject.FindGameObjectsWithTag(“Player”);
foreach (GameObject x in players)
{
Debug.Log("Player " + x+ " is named " + x.name);
}
I can access the card hands but the order is wrong. ANy suggestions ?
Thanks
Marlon