Ejemplo n.º 1
0
 public void EndTurn()
 {
     if (waitActionResponse)
     {
         return;
     }
     waitActionResponse = true;
     pendingCard        = null;
     NetworkManager.Instance.sendEndTurn();
 }
Ejemplo n.º 2
0
 public void AttackCard(PlayCard attacker, PlayCard attackee)
 {
     if (waitActionResponse)
     {
         return;
     }
     Debug.Log($"{attacker.Card.Name} -> {attackee.Card.Name}");
     waitActionResponse = true;
     NetworkManager.Instance.sendAttackCharacter(attacker.InstanceId, attackee.InstanceId);
 }
Ejemplo n.º 3
0
 public void AttackPlayer(PlayCard attacker)
 {
     if (waitActionResponse)
     {
         return;
     }
     Debug.Log($"{attacker.Card.Name} -> player!");
     waitActionResponse = true;
     NetworkManager.Instance.sendAttackPlayer(attacker.InstanceId);
 }
Ejemplo n.º 4
0
 public void UseCard(PlayCard card)
 {
     if (waitActionResponse)
     {
         return;
     }
     waitActionResponse = true;
     pendingCard        = card;
     NetworkManager.Instance.sendUseCard(card.Card.Id);
 }