You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
651 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class Block : MonoBehaviour, IPointerDownHandler
{
public GameObject card;
public GameObject SummonBlock;
public GameObject AttackBlock;
public void OnPointerDown(PointerEventData eventData)
{
if (SummonBlock.activeInHierarchy)
{
BattleManager.Instance.SummonConfirm(transform);
}
}
// 获取格子的世界坐标
public Vector2 GetWorldPosition()
{
return transform.position;
}
void Start()
{
}
void Update()
{
}
}