65 lines
3.1 KiB
C#
65 lines
3.1 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class RoomInfo : MonoBehaviour
|
|
{
|
|
public static RoomInfo instance;
|
|
public HouseBtn HousePur;
|
|
public HouseBtn HouseLan;
|
|
public HouseBtn HouseQin;
|
|
public HouseBtn HouseLu;
|
|
public HouseBtn HouseHuang;
|
|
public HouseBtn HouseFen;
|
|
|
|
public GameObject PurText;
|
|
public GameObject LuText;
|
|
public GameObject HuText;
|
|
public GameObject FenText;
|
|
public GameObject QinText;
|
|
public GameObject LanText;
|
|
|
|
|
|
// Start is called before the first frame update
|
|
void Awake()
|
|
{
|
|
instance = this;
|
|
|
|
|
|
}
|
|
|
|
|
|
//public void GetInfoToRooom()
|
|
//{
|
|
// LanText.GetComponent<TextBox>().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[0].roomBeansCoin.ToString();
|
|
// HouseLan.GetComponent<HouseBtn>().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[0].roomNo;
|
|
// HouseLan.GetComponent<HouseBtn>().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[0].roomBeansCoin;
|
|
|
|
// LuText.GetComponent<TextBox>().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[1].roomBeansCoin.ToString();
|
|
// HouseLu.GetComponent<HouseBtn>().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[1].roomNo;
|
|
// HouseLu.GetComponent<HouseBtn>().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[1].roomBeansCoin;
|
|
|
|
// HuText.GetComponent<TextBox>().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[2].roomBeansCoin.ToString();
|
|
// HouseHuang.GetComponent<HouseBtn>().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[2].roomNo;
|
|
// HouseHuang.GetComponent<HouseBtn>().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[2].roomBeansCoin;
|
|
|
|
// FenText.GetComponent<TextBox>().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[3].roomBeansCoin.ToString();
|
|
// HouseFen.GetComponent<HouseBtn>().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[3].roomNo;
|
|
// HouseFen.GetComponent<HouseBtn>().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[3].roomBeansCoin;
|
|
|
|
// PurText.GetComponent<TextBox>().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[4].roomBeansCoin.ToString();
|
|
// HousePur.GetComponent<HouseBtn>().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[4].roomNo;
|
|
// HousePur.GetComponent<HouseBtn>().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[4].roomBeansCoin;
|
|
|
|
// LanText.GetComponent<TextBox>().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[5].roomBeansCoin.ToString();
|
|
// HouseQin.GetComponent<HouseBtn>().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[5].roomNo;
|
|
// HouseQin.GetComponent<HouseBtn>().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[5].roomBeansCoin;
|
|
//}
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|