public void SetData(ST_Room a_refData, int a_nOffsetX, int a_nOffsetY) { m_refData = a_refData; m_nOffsetX = a_nOffsetX; m_nOffsetY = a_nOffsetY; Refresh(); }
public void SetData(GameObject a_objRoot, ST_Room a_stRoom) { m_stRoomData = a_stRoom; string strPrefabName = string.Format("Rooms/Room_{0:000}", m_stRoomData.nRoomID); m_objRoom = a_objRoot.Instantiate_asChild(strPrefabName); m_objRoom.name = string.Format("{0}_{1}_{2}", m_objRoom.name, a_stRoom.nX, a_stRoom.nY); m_refRoom = m_objRoom.GetComponent <RoomInfo>(); m_refRoom.SetData(m_stRoomData); SetVisible(false); }
public void SetData(ST_Room a_stData) { m_stData = a_stData; Refresh(); }