Пример #1
0
    override public BaseScene CreateScene(int resId)
    {
        BaseScene scene = new QiangLinDanYuScene();

        if (!InitScene(scene, resId))
        {
            return(null);
        }

        return(scene);
    }
    protected override void OnRespond(respond_qianglindanyu_report_score respond, object userdata)
    {
        //if(!respond.succeed)
        //{
        //    SceneManager.Instance.RequestEnterLastCity();
        //}
        //else
        {
            QiangLinDanYuScene scn = SceneManager.Instance.GetCurScene() as QiangLinDanYuScene;
            if (scn != null)
            {
                scn.ResetReportTime();
            }

            QiangLinDanYuUpdateEvent e = new QiangLinDanYuUpdateEvent();
            e.score       = respond.score;
            e.sortInfo    = respond.sortinfo;
            e.playerCount = respond.playercount;

            EventSystem.Instance.PushEvent(e);
        }
    }