Exemple #1
0
 private void onHandChange()
 {
     this.destroyChildren();
     foreach (Card card in DeckManager.Instance.getHand())
     {
         GameObject  newInstance       = Instantiate(Resources.Load("RuntimePrefabs/Card"), this.transform) as GameObject;
         CardBuilder cardBuilderScript = newInstance.GetComponent <CardBuilder>();
         cardBuilderScript.buildWithCard(card);
     }
 }