Exemplo n.º 1
0
    public void RefreshRoomClick()
    {
        int        roomPanelCount = allRoomPanelObjects.Count;
        GameObject roomInfoPanel  = GameObject.Instantiate(roomInfoPanelTempalte);

        roomInfoPanel.transform.parent        = roomScrollViewObj.transform;
        roomInfoPanel.transform.localScale    = Vector3.one;
        roomInfoPanel.transform.localPosition = new Vector3(initVec.x, initVec.y - roomPanelCount * yOffset, initVec.z);
        RoomInfoControl infoControl = roomInfoPanel.GetComponent <RoomInfoControl>();

        infoControl.SetViewControl(this);
        infoControl.RoomId    = roomPanelCount;
        infoControl.RoomState = ERoomState.RS_Ready;
        allRoomPanelObjects.Add(roomInfoPanel);
    }
Exemplo n.º 2
0
 public void RoomInfoClick(RoomInfoControl infoControl)
 {
     Debug.LogErrorFormat("roomId[{0}] Click", infoControl.RoomId);
 }