Esempio n. 1
0
    public void PopupTips(GameTips gameTips)
    {
        GameResultEnum code = (GameResultEnum)gameTips.resultCode;
        string         tips = GameTipsDic.GetTips(code);

        tips = tips ?? gameTips.resultDes;
        if (gameTips.tipsType == 1)  //定时关闭窗口
        {
            PopupManager.ShowTimerPopUp(tips);
        }
        else if (gameTips.tipsType == 2)    //手动关闭
        {
            PopupManager.ShowClosePopUp(tips);
        }
    }
Esempio n. 2
0
 private void LoginSuccess()
 {
     SaveUser();
     PopupManager.ShowTimerPopUp(GameTipsDic.GetTips(GameEnum.LOGIN_SUCCESS));
     StartCoroutine(SceneTool.LoadScene("scene/main"));
 }