You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
909 B
34 lines
909 B
4 years ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
public class RoomInfoPanel : MonoBehaviour
|
||
|
{
|
||
|
|
||
|
public Image SelectSceneImage;
|
||
|
public Text SceneName;
|
||
|
public Text IntroduceText;
|
||
|
public Text Creater;
|
||
|
public Text ScenceType;
|
||
|
public Text RoomNum;
|
||
|
// Use this for initialization
|
||
|
void Start()
|
||
|
{
|
||
|
//:ToDo
|
||
|
//房间缩略图
|
||
|
//SelectSceneImage.sprite=
|
||
|
SetRoomInfo();
|
||
|
}
|
||
|
|
||
|
public void SetRoomInfo()
|
||
|
{
|
||
|
SceneName.text = CurrentUserInfo.room.Map.name;
|
||
|
IntroduceText.text = CurrentUserInfo.room.Map.introduction;
|
||
|
Creater.text = CurrentUserInfo.room.Owner.UserInfo.Username;
|
||
|
ScenceType.text = CurrentUserInfo.room.Map.sceneType.ToString();
|
||
|
RoomNum.text = CurrentUserInfo.room.UserList.Count.ToString() + "/" + CurrentUserInfo.room.MaxPersons;
|
||
|
}
|
||
|
|
||
|
}
|