Roxaq

WarriorCardPlace

Nov 10th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class WarriorCardPlace : MonoBehaviour {
  5.  
  6. public int warriorPlaceIndex;
  7. public GameObject thisWarriorCard;
  8.  
  9. private bool hasCard;
  10.  
  11. public void ReceiveCard(GameObject card) {
  12.  
  13. thisWarriorCard = card;
  14. hasCard = true;
  15. }
  16.  
  17. public void RemoveCard() {
  18.  
  19. thisWarriorCard = null;
  20. hasCard = false;
  21. }
  22.  
  23. public bool CanDropHere()
  24. {
  25. if (hasCard)
  26. {
  27. return false;
  28. }
  29. else
  30. {
  31. return true;
  32. }
  33.  
  34. }
  35.  
  36. public Vector3 GetPosition()
  37. {
  38.  
  39. return transform.position;
  40.  
  41. }
  42.  
  43. public Transform GetTransform()
  44. {
  45. return transform;
  46. }
  47.  
  48. //terminar sistema
  49. //enviar cartas para a lista
  50. }
Add Comment
Please, Sign In to add comment