Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class WarriorCardPlace : MonoBehaviour {
- public int warriorPlaceIndex;
- public GameObject thisWarriorCard;
- private bool hasCard;
- public void ReceiveCard(GameObject card) {
- thisWarriorCard = card;
- hasCard = true;
- }
- public void RemoveCard() {
- thisWarriorCard = null;
- hasCard = false;
- }
- public bool CanDropHere()
- {
- if (hasCard)
- {
- return false;
- }
- else
- {
- return true;
- }
- }
- public Vector3 GetPosition()
- {
- return transform.position;
- }
- public Transform GetTransform()
- {
- return transform;
- }
- //terminar sistema
- //enviar cartas para a lista
- }
Add Comment
Please, Sign In to add comment