protected override void RegisterUIEvent()
    {
        base.RegisterUIEvent();
        writeBtn[0].onClick.AddListener(OnWriteBtnByteClick);
        writeBtn[1].onClick.AddListener(OnWriteBtnXmlClick);
        writeBtn[2].onClick.AddListener(OnWriteBtnJsonClick);
        writeBtn[3].onClick.AddListener(OnWriteBtnProtoClick);

        readerBtn[0].onClick.AddListener(OnReaderBtnByteClick);
        readerBtn[1].onClick.AddListener(OnReaderBtnXmlClick);
        readerBtn[2].onClick.AddListener(OnReaderBtnJsonClick);
        readerBtn[3].onClick.AddListener(OnReaderBtnProtoClick);
        UIToos.ButtonAddListener(BtnBack, OnBtnBack);
        UITransitionExtension.BindTransition <LobbyGamePanel, LobbyGameLobbyPanel>(BtnBack);
    }
 protected override void RegisterUIEvent()
 {
     base.RegisterUIEvent();
     UIToos.ButtonAddListener(BtnOpenGameEnd, OnBtnOpenGameEnd);
     UIToos.ButtonAddListener(BtnBtnULui, OnOpenLuiPanel);
 }
Example #3
0
 protected override void RegisterUIEvent()
 {
     base.RegisterUIEvent();
     UITransitionExtension.BindTransition <LobbyExampleULui, LobbyGameOpenPanel>(BtnBack);
     UIToos.ButtonAddListener(BtnOpenLobby, OnBtnOpenLobbyClick);
 }