Files
5.24BuYu/Assets/MyGame/aa/UI/Game/GameMainPanel_Base.cs
T

38 lines
966 B
C#
Raw Normal View History

2026-03-12 10:48:53 +08:00
using Assets.MyGame.Scripts.Net;
using Assets.MyGame.Scripts.Net.API;
using Assets.MyGame.Scripts.Net.APIResponses.Enum;
using Assets.MyGame.Scripts.Net.WebResponses;
using Newtonsoft.Json;
using System;
using System.Collections;
2026-02-03 11:35:19 +08:00
using System.Collections.Generic;
2026-03-18 17:26:14 +08:00
using TMPro;
2026-02-03 11:35:19 +08:00
using UnityEngine;
2026-03-12 10:48:53 +08:00
using UnityEngine.EventSystems;
using UnityEngine.InputSystem;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
2026-02-03 11:35:19 +08:00
2026-02-13 19:23:01 +08:00
public class GameMainPanel_Base : UIBase
2026-02-03 11:35:19 +08:00
{
2026-03-18 17:26:14 +08:00
2026-03-12 10:48:53 +08:00
[Header("子ui管理器")]
2026-02-13 19:23:01 +08:00
public SubUIManager subUIManager;
public UIPanelAddressConfig panelAddressConfig;
public Transform subPanelParent;
2026-03-18 17:26:14 +08:00
public TextMeshProUGUI textMeshProUGUI_RoomID;
2026-02-13 19:23:01 +08:00
public virtual void Awake()
2026-02-03 11:35:19 +08:00
{
2026-02-26 11:05:56 +08:00
subUIManager = new SubUIManager(subPanelParent, panelAddressConfig,this);
2026-03-27 15:18:35 +08:00
2026-03-12 10:48:53 +08:00
}
2026-03-18 17:26:14 +08:00
#if UNITY_EDITOR
public void OnGUI()
2026-03-12 10:48:53 +08:00
{
2026-03-18 17:26:14 +08:00
textMeshProUGUI_RoomID.text = GameManager.Instance.gameData.currRoomData.roomId;
2026-03-12 10:48:53 +08:00
}
2026-03-18 17:26:14 +08:00
#endif
2026-02-03 11:35:19 +08:00
}