using System; using System.Collections; using System.Collections.Generic; using DG.Tweening; using Script; using Script.Map; using UnityEngine; using UnityEngine.UI; //格子脚本,用于获取相邻信息 public class Grid : MonoBehaviour { public int X => gx; [SerializeField] private int gx; public int Y => gy; [SerializeField] private int gy; public bool Open => gOpen; [SerializeField] private bool gOpen=true; public Grid East => gEast; [SerializeField] private Grid gEast; public Grid South => gSouth; [SerializeField] private Grid gSouth; public Grid West => gWest; [SerializeField] private Grid gWest; public Grid North => gNorth; [SerializeField] private Grid gNorth; public bool aniPlay => gAniPlay; [SerializeField] private bool gAniPlay=false; public PassengerObject passenger; public Action action = null; public Action buttonAction=null; private void Awake() { GetComponent