private void OpenGameLevelFailView()
    {
        m_UIGameLevelFailView = UIViewUtil.Instance.OpenWindow(UIViewType.GameLevelFail).GetComponent <UIGameLevelFailView>();
        m_UIGameLevelFailView.OnClickReturnButton      = OnClickGameLevelFailViewReturnButton;
        m_UIGameLevelFailView.OnClickRestartGameButton = OnClickGameLevelFailViewRestartGameButton;
        int maxScore = PlayerPrefs.GetInt("MaxScore");

        m_UIGameLevelFailView.SetUI(GameLevelSceneCtrl.Instance.Step, maxScore);
    }
Exemple #2
0
    /// <summary>
    /// 打开关卡失败页面
    /// </summary>
    private void OpenGameLevelFail()
    {
        m_GameLevelFailView = UIViewUtil.Instance.OpenWindow(UIViewType.GameLevelFail).GetComponent <UIGameLevelFailView>();
        m_GameLevelFailView.OnbtnResurrection     = OnClickGameLevelFailViewResurrectionButton;
        m_GameLevelFailView.OnbtnReturnWroldScene = OnClickGameLevelFailViewReturnWorldSceneButton;
        GameLevel_FailProto proto = new GameLevel_FailProto();

        proto.GameLevelId = m_GameLevelSceneId;
        proto.Grade       = (byte)m_Garade;
        NetWorkSocket.Instance.SendMsg(proto.ToArray());
    }