コード例 #1
0
        public void OpenStartCartoonForID(long id)
        {
            ContextId = id;
            ConfCartoonScene confScene = ConfCartoonScene.Get(ContextId);

            if (confScene == null && confScene.sceneInfoIds.Length == 0)
            {
                return;
            }
            CSCartoonEnterRequest enterReq = new CSCartoonEnterRequest();

            enterReq.SceneId = ContextId;
            GameEvents.NetWorkEvents.SendMsg.SafeInvoke(enterReq);
        }
コード例 #2
0
        private void OnResponse(object obj)
        {
            if (obj is SCCartoonEnterResponse)
            {
                SCCartoonEnterResponse res = obj as SCCartoonEnterResponse;
                if (!MsgStatusCodeUtil.OnError(res.Result))
                {
                    Dictionary <UBSParamKeyName, object> enterSceneFromChapterMapDict = new Dictionary <UBSParamKeyName, object>();
                    enterSceneFromChapterMapDict.Add(UBSParamKeyName.EnterSceneFromChapter, this.ContextId);
                    UserBehaviorStatisticsModules.Instance.LogEvent(UBSEventKeyName.carton_star, null, enterSceneFromChapterMapDict);

                    FrameMgr.OpenUIParams param = new FrameMgr.OpenUIParams(UIDefine.UI_COMICS_1);
                    param.Param = ConfCartoonScene.Get(ContextId).sceneInfoIds[0];
                    EngineCoreEvents.UIEvent.ShowUIEventWithParam.SafeInvoke(param);
                }
            }
        }
コード例 #3
0
ファイル: GameRoot.cs プロジェクト: kingpowervrg/my_seeker
        private void OnGUI()
        {
            if (!needShowGUI)
            {
                return;
            }
            if (enable)
            {
                GUILayout.BeginArea(new Rect(10, gui_start_y, 300, Screen.height));

                scene_txt = GUILayout.TextField(scene_txt, GUILayout.Width(150), GUILayout.Height(40));

                if (GUILayout.Button("seek", GUILayout.Width(150), GUILayout.Height(40)))
                {
                    if (!string.IsNullOrEmpty(scene_txt))
                    {
                        long scene_id;
                        if (long.TryParse(scene_txt, out scene_id))
                        {
                            //GameIAPModule.Instance.OnTransactionDone.SafeInvoke(ConfCharge.Get(scene_id).desc);
                            CommonHelper.OpenEnterGameSceneUI(scene_id);
                        }
                    }
                }


                progresssTex = GUILayout.TextField(progresssTex, GUILayout.Width(150), GUILayout.Height(40));

                if (GUILayout.Button("progresssTex", GUILayout.Width(150), GUILayout.Height(40)))
                {
                    SeekerGame.NewGuid.GuidNewManager.Instance.TestProgressIndex(int.Parse(progresssTex));
                }
                if (GUILayout.Button("SkipCurrentCapter", GUILayout.Width(150), GUILayout.Height(40)))
                {
                    GameEvents.UIEvents.UI_StartCartoon_Event.OnSkipCurrentCapter.SafeInvoke();
                }
                if (GUILayout.Button("EnterCartoon", GUILayout.Width(150), GUILayout.Height(40)))
                {
                    FrameMgr.OpenUIParams param = new FrameMgr.OpenUIParams(UIDefine.UI_COMICS_1);
                    param.Param = ConfCartoonScene.Get(40008).sceneInfoIds[0];
                    EngineCoreEvents.UIEvent.ShowUIEventWithParam.SafeInvoke(param);
                }
                buildName = GUILayout.TextField(buildName, GUILayout.Width(150), GUILayout.Height(40));
                if (GUILayout.Button("UnLock", GUILayout.Width(150), GUILayout.Height(40)))
                {
                    GameEvents.BigWorld_Event.OnUnLock.SafeInvoke(buildName);
                }
                if (GUILayout.Button("EnterTalk", GUILayout.Width(150), GUILayout.Height(40)))
                {
                    SceneModule.Instance.EnterExhibitionHallScene();
                    //PresuadeUILogic.Show(1000);
                    //ReasoningUILogic.ShowReasonUIById(1);
                    //GameEvents.UIEvents.UI_GameEntry_Event.OnNewPoliceEffect.SafeInvoke(true);
                    //TalkUIHelper.OnStartTalk(int.Parse(buildName));
                    //GameEvents.UIEvents.UI_GameEntry_Event.OnLockMainIcon.SafeInvoke(int.Parse(buildName),true);
                }
                if (GUILayout.Button("ShowReasonUIById", GUILayout.Width(150), GUILayout.Height(40)))
                {
                    ///PresuadeUILogic.Show(1000);
                    ReasoningUILogic.ShowReasonUIById(1);
                    //GameEvents.UIEvents.UI_GameEntry_Event.OnNewPoliceEffect.SafeInvoke(true);
                    //TalkUIHelper.OnStartTalk(int.Parse(buildName));
                    //GameEvents.UIEvents.UI_GameEntry_Event.OnLockMainIcon.SafeInvoke(int.Parse(buildName),true);
                }
                if (GUILayout.Button("SkyeyeUILogic", GUILayout.Width(150), GUILayout.Height(40)))
                {
                    SkyeyeUILogic.Show();
                }
                GUILayout.EndArea();
            }
        }