void on_game_result(CPacket msg)
    {
        byte  is_win = msg.pop_byte();
        short money  = msg.pop_int16();

        msg.pop_int16();
        short score       = msg.pop_int16();
        short double_val  = msg.pop_int16();
        short final_score = msg.pop_int16();

        CUIManager.Instance.show(UI_PAGE.POPUP_GAME_RESULT);
        CPopupGameResult popup =
            CUIManager.Instance.get_uipage(UI_PAGE.POPUP_GAME_RESULT).GetComponent <CPopupGameResult>();

        popup.refresh(is_win, money, score, double_val, final_score);
    }
Пример #2
0
    IEnumerator on_game_result(CPacket msg)
    {
        byte  is_win      = msg.pop_byte();
        short money       = msg.pop_int16();
        short score       = msg.pop_int16();
        short double_val  = msg.pop_int16();
        short final_score = msg.pop_int16();

        CUIManager.Instance.show(UI_PAGE.POPUP_STOP);
        yield return(new WaitForSeconds(2.0f));

        CUIManager.Instance.hide(UI_PAGE.POPUP_STOP);

        CUIManager.Instance.show(UI_PAGE.POPUP_GAME_RESULT);
        CPopupGameResult popup =
            CUIManager.Instance.get_uipage(UI_PAGE.POPUP_GAME_RESULT).GetComponent <CPopupGameResult>();

        popup.refresh(is_win, money, score, double_val, final_score);
    }