12345678910111213141516171819202122232425262728 |
- using UnityEngine;
- using UnityEngine.UI;
- namespace GHZLangChao
- {
- public class ShowChoosePanelSelect : AbstractController
- {
- [SerializeField] private Text currentRoom_Text; // 当前房间名
- [SerializeField] private Transform Content;
- private RoomName_Item item; // item
- void Start()
- {
- // currentRoom_Text.text = UICallManager.Instance.GetMachineRoomList()[0];
-
- // 实例化 item
- for (int i = 0;i< UICallManager.Instance.GetMachineRoomList().Count;i++)
- {
- GameObject go = Instantiate(InstantiateSystem.Instance.BlueObject.RoomName_Item, Content);
- item = go .GetComponent<RoomName_Item>();
- item.RoomName_Text.text = MachineRoomManager.Instance.listRoomName[i];
- go.name = UICallManager.Instance.GetMachineRoomList()[i];
- }
-
- }
- }
- }
|