Ejemplo n.º 1
0
 public void AddSelected()
 {
     if (selectedData != null)
     {
         DragManager.SetPlacementData(selectedData);
         UIManager.CloseActiveWindow();
     }
 }
Ejemplo n.º 2
0
 void OnCardSelected(object obj)
 {
     selectedUnit = obj as BaseCard;
     if (MatchManager.IsMyTurn(id) && player.mana >= selectedUnit.summonCost)
     {
         DragManager.SetPlacementData(selectedUnit);
         DragManager.OnPlacementDone += OnPlacementDone;
     }
     else
     {
         selectedUnit = null;
     }
 }