Exemple #1
0
 public void DoDrop(CardGameObject cardGO)
 {
     cardGO.transform.position = this.transform.position + (Vector3.back * 10);
     cardGO.transform.SetParent(this.transform);
     if (cardGO.transform.childCount == 0 && cardGO.GetComponent <IDroppable>() == null)
     {
         cardGO.AddDropReceiver();
     }
 }
 public void DoDrop(CardGameObject cardGO)
 {
     cardGO.transform.position = this.transform.position - new Vector3(0, Solitaire.GameManager.YOffset, Solitaire.GameManager.ZOffset);
     cardGO.transform.SetParent(this.transform);
     if (cardGO.transform.childCount == 0 && cardGO.GetComponent <IDroppable>() == null)
     {
         cardGO.AddDropReceiver();
     }
 }