Esempio n. 1
0
        public override void OnShow(object param)
        {
            base.OnShow(param);
            ActionOnShow.RegAction(LevelManager.instance.OnLifeChange, OnLifeChange);
            ActionOnShow.RegAction(LevelManager.instance.OnShowLevelEnd, OnLevelEnd);

            m_Img_end_Img.gameObject.SetActive(false);
            m_Txt_blue_Txt.text = m_Txt_red_Txt.text = string.Empty;
        }
Esempio n. 2
0
 public override void OnShow(object param)
 {
     base.OnShow(param);
     ActionOnShow.RegAction(ServerManager.instance.OnConnectSuccess, OnConnectSuccess);
     ActionOnShow.RegAction(ServerManager.instance.OnDisconnect, OnDisconnect);
     m_Txt_connecte_Txt.text = string.Empty;
     m_Input1_IptField.gameObject.SetActive(true);
     m_Btn_go2_Btn.gameObject.SetActive(true);
 }
Esempio n. 3
0
        public override void OnShow(object param)
        {
            base.OnShow(param);
            ActionOnShow.RegAction(LobbyManager.instance.OnLobbyEnter, OnLobbyEnter);
            ActionOnShow.RegAction(LobbyManager.instance.OnCreateSuccess, OnCreateSuccess);
            ActionOnShow.RegAction(LobbyManager.instance.OnCreateFailed, OnCreateFailed);
            ActionOnShow.RegAction(LobbyManager.instance.OnJoinSuccess, OnJoinSuccess);
            ActionOnShow.RegAction(LobbyManager.instance.OnJoinFailed, OnJoinFailed);
            ActionOnShow.RegAction(LobbyManager.instance.OnListUpdate, OnListUpdate);

            LobbyManager.instance.JoinLobby();
        }
Esempio n. 4
0
        public override void OnShow(object param)
        {
            base.OnShow(param);
            ActionOnShow.RegAction(RoomManager.instance.OnNewPlayerEnterRoom, OnNewPlayerEnterRoom);
            ActionOnShow.RegAction(RoomManager.instance.OnOtherPlayerLeftRoom, OnOtherPlayerLeftRoom);
            ActionOnShow.RegAction(RoomManager.instance.OnLevelLoadEnd, OnLevelLoadEnd);

            UIHelper.ClearTemplateChild(m_grid_Trans.gameObject);
            TimeDelay.SetTimeout(() => { UpdateInfo(); }, 0.5f);

            //If Not Host, Hide StartGame Button
            m_Btn_start4_Btn.gameObject.SetActive(RoomManager.instance.IsHost());
            m_Btn_start4_Btn.enabled = RoomManager.instance.IsRoomFull();
        }