using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using System; using LitJson; using ShadowStudio.Model; using XRTool.Util; using ShadowStudio.Mgr; using ShadowStudio.UI; using DG.Tweening; using BeinLab.Util; using UnityEngine.EventSystems; using Studio.Scripts; public class MenuIcon : MonoBehaviour, IPointerDownHandler, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler { private DoubleLinkNode _dataConfig; /// /// 存储房间的数据信息 /// public DoubleLinkNode DataConfig { get => _dataConfig; set => _dataConfig = value; } Button _deleteBtn;//删除按钮 GameObject _show;//显示房间界面 GameObject _showK;//无房间时显示默认界面 TextMesh _peopleNum;//房间人数文本 TextMesh _roomName;//房间名称文本 string _id;//房间ID string _passWord;//房间密码 bool isClick = false;//房间是否被点击 float _clickTime = 0.2f;//点击按下房间的间隔时间 float _lastTime = 0;//记录开始点击房间时所处的时间 public bool _isDrag = false;//房间是否被拖拽 public static bool isjoinRoom; /// /// 记录物体的缩放值 /// public Vector3 initAV3 { get; set; } /// /// 记录所进入房间的ID,用于退出房间时显示指定房间的动画效果 /// public static string inID; bool isRoomShow; bool isInit; bool isHide; /// /// 所处的位置索引(用于设置动画延迟) /// public int RoomIndex { get; set; } /// /// 进入或者退出房间时的位置变换记录 /// public static Vector3 itemPos; public void Init()//初始化 { HomeProxy.Instance.DeleteRoomAction += DeleteRoomHandler; _deleteBtn = transform.Find("DeleteBtn").GetComponent