예제 #1
0
파일: FormMain.cs 프로젝트: cash2one/oold
 private void btnEnterCarbon_Click(object sender, EventArgs e)
 {
     //uint sceneTypeID = 2;
     //string lg = "[SendMsgPlayerSystemGC2GMReqEnterScene][sceneTypeID=" + sceneTypeID + "]\r\n";
     //Log(lg);
     //UnityGMClient.CClientCore.Singleton.SendMsgSceneSystemGC2GMReqEnterScene(sceneTypeID, CbEnterScene);
     this.Hide();
     timerWait.Stop();
     FormInstance.showForm();
 }
예제 #2
0
파일: FormMain.cs 프로젝트: cash2one/oold
        private void CbEnterScene(UnityGMClient.EEnterSceneResult retCode, UInt32 currentSceneID, List <UnityGMClient.CSceneRoleInfo> listSceneRoles)
        {
            //string lg = "[CbEnterScene][retCode=" + retCode.ToString() + "][prizeCount=" + prizeCount.ToString() + "]\r\n";
            //Log(lg);
            if (retCode != UnityGMClient.EEnterSceneResult.EENTER_SCENE_RESULT_SUCCESS)
            {
                UnityUtility.CTrace.Singleton.debug("返回进入场景[{0}]失败", currentSceneID);
                return;
            }

            UnityUtility.CTrace.Singleton.debug("返回进入场景[{0}]", currentSceneID);
            GC.CPlayer.Singleton.setCurrentSceneID(currentSceneID);
            this.Hide();
            timerWait.Stop();
            //FormInstance.getForm().InitPrizeData(prizeList);
            FormInstance.showForm();
        }