目录
1.效果
2.CellItem类
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// 行列值 结构体
/// </summary>
public struct PosXY
{
public int x;
public int y;
public void Set(int _x, int _y)
{
x = _x;
y = _y;
}
}
public class CellItem : MonoBehaviour
{
public PosXY oriPos;//记录初始位置
public PosXY nowPos;//当前位置
public Image sho