//Puts cards at the top of the screen
public static void dealFirstHand()
{
deck = GameObject.FindGameObjectWithTag("deck");
for(int i =0;i<6;i++)
{
GameObject card = NGUITools.AddChild(deck,Resources.Load("Prefabs/UI/CardSlot") as GameObject);
assignRandomCard(card.GetComponent<UI_Controller_CardSlot>().cardArt);
UIPanel display = card.transform.GetComponentInChildren<UIPanel>();
card.transform.parent = deck.transform;
card
.transform.localScale = new Vector3
(1f,1f,1f
); card
.transform.position = new Vector3
(display
.width/2,display
.height/2,
0); playerCards.Add(card.GetComponent<UI_Controller_CardSlot>().cardArt,false);
card.GetComponent<UI_Controller_CardSlot>().cardArt.activate();
}
deck.GetComponent<UIGrid>().Reposition();
}