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().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[0].roomBeansCoin.ToString(); // HouseLan.GetComponent().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[0].roomNo; // HouseLan.GetComponent().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[0].roomBeansCoin; // LuText.GetComponent().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[1].roomBeansCoin.ToString(); // HouseLu.GetComponent().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[1].roomNo; // HouseLu.GetComponent().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[1].roomBeansCoin; // HuText.GetComponent().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[2].roomBeansCoin.ToString(); // HouseHuang.GetComponent().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[2].roomNo; // HouseHuang.GetComponent().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[2].roomBeansCoin; // FenText.GetComponent().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[3].roomBeansCoin.ToString(); // HouseFen.GetComponent().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[3].roomNo; // HouseFen.GetComponent().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[3].roomBeansCoin; // PurText.GetComponent().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[4].roomBeansCoin.ToString(); // HousePur.GetComponent().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[4].roomNo; // HousePur.GetComponent().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[4].roomBeansCoin; // LanText.GetComponent().numText.text = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[5].roomBeansCoin.ToString(); // HouseQin.GetComponent().RoomId = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[5].roomNo; // HouseQin.GetComponent().coins = QueryRoomdetails512.Instance.gameEscapeRoomResponseVoList[5].roomBeansCoin; //} // Update is called once per frame void Update() { } }