Megacity demo game for UOS
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
603 B

using Unity.MegaCity.Gameplay;
using UnityEngine;
using UnityEngine.UI;
namespace Unity.MegaCity.UI
{
public class LobbyRoomItem : MonoBehaviour
{
public Text name;
public Text extraInfo;
private RoomInfo _roomInfo;
public void Set(RoomInfo room)
{
name.text = room.name;
extraInfo.text = $"{room.playerCount}/{room.maxPlayers}";
_roomInfo = room;
}
public void HandleClick()
{
LobbyPanelController.JoinRoomByRoomInfo.Invoke(_roomInfo);
}
}
}