void OnClick() { //UnityEngine.GameObject go = UIManager.Instance.GetWindowGoByName("SceneSelect"); //if (go != null) { // UISceneSelect sceneSelect = go.GetComponent<UISceneSelect>(); // if (sceneSelect != null) sceneSelect.StartChapter(m_SceneId); //} RoleInfo role = LobbyClient.Instance.CurrentRole; if (role != null) { if (role.SceneInfo.ContainsKey(m_SceneId)) { UIManager.Instance.HideWindowByName("ItemSourceTips"); UIManager.Instance.HideWindowByName("ArtifactPanel"); UnityEngine.GameObject goc = UIManager.Instance.GetWindowGoByName("SceneSelect"); if (goc != null) { LogicSystem.SendStoryMessage("cityplayermove", 0);//寻路 UISceneSelect uss = goc.GetComponent <UISceneSelect>(); if (uss != null) { uss.startChapterId = m_SceneId; } } } else { SendScreeTipCenter(40); } } }
public void OnSkipClick() { if (hasClick == false) { hasClick = true; LogicSystem.SendStoryMessage("SkipStory"); ArkCrossEngine.GfxSystem.EventChannelForLogic.Publish("ge_skip_story", "ui"); } }
public void OnClickMainCity() { switch (typefail) { case 1: LogicSystem.PublishLogicEvent("ge_quit_battle", "lobby", false); break; case 2: LogicSystem.SendStoryMessage("missionfailed"); break; } timeOut = false; }
void OnClick() { if (m_IsCopy) { //UIManager.Instance.ToggleWindowVisible("SceneSelect"); LogicSystem.SendStoryMessage("cityplayermove", 0);//寻路 UnityEngine.GameObject goc = UIManager.Instance.GetWindowGoByName("SceneSelect"); if (goc != null) { UISceneSelect uss = goc.GetComponent <UISceneSelect>(); if (uss != null) { uss.startChapterId = 0;//无指引 } } } else { UIManager.Instance.ToggleWindowVisible("GameTask"); } }
private void OnTriggerExit(UnityEngine.Collider collider) { try { if (!IsStopped) { UnityEngine.GameObject obj = collider.gameObject; if (null != obj) { if (obj == LogicSystem.PlayerSelf) { LogicSystem.SendStoryMessage(MessageName, 0); } } } } catch (System.Exception ex) { LogicSystem.LogErrorFromGfx("Exception {0}\n{1}", ex.Message, ex.StackTrace); } }
private bool GotoTargetUI(ArkCrossEngine.MissionConfig missionconfig) { bool result = false; if (missionconfig != null) { switch (missionconfig.TargetUI) { case 1: //副本 UnityEngine.GameObject goc = UIManager.Instance.TryGetWindowGameObject("SceneSelect"); if (goc != null) { LogicSystem.SendStoryMessage("cityplayermove", 0); //寻路 UISceneSelect uss = goc.GetComponent <UISceneSelect>(); if (uss != null) { //uss.StartChapter(missionconfig.SceneId); uss.startChapterId = missionconfig.SceneId; } } result = true; break; case 2: //pvp LogicSystem.SendStoryMessage("cityplayermove", 2); result = true; break; case 3: //活动 LogicSystem.SendStoryMessage("cityplayermove", 1); result = true; break; } } return(result); }
public void OnButtonClick(UnityEngine.GameObject go) { if (go == null) { return; } delayBtnName = ""; switch (go.name) { //case "Entrance-Equipment": // OpenAndCloseWindow("GamePokey"); // break; //case "Entrance-Skill": // OpenAndCloseWindow("SkillPanel"); // break; //case "Entrance-GodEquip": // OpenAndCloseWindow("ArtifactPanel"); // break; //case "Entrance-Mission": // OpenAndCloseWindow("GameTask"); // JoyStickInputProvider.JoyStickEnable = false; // ArkCrossEngine.GfxSystem.EventChannelForLogic.Publish("ge_reload_missions", "lobby"); // if (WorldSystem.Instance.IsPureClientScene()) { // CYGTConnector.HideCYGTSDK(); // } // break; case "Entrance-Match": /*EnterInScene(2);*/ //OpenAndCloseWindow("PvPEntrance"); LogicSystem.SendStoryMessage("cityplayermove", 2); break; //case "Entrance-Treasure": // RoleInfo role_info = LobbyClient.Instance.CurrentRole; // if (role_info != null && role_info.Level < ExpeditionPlayerInfo.c_UnlockLevel) { // string chn_desc = StrDictionaryProvider.Instance.GetDictString(456); // string chn_confirm = StrDictionaryProvider.Instance.GetDictString(4); // ArkCrossEngine.LogicSystem.EventChannelForGfx.Publish("ge_show_dialog", "ui", chn_desc, chn_confirm, null, null, null, false); // } else { // OpenAndCloseWindow("cangbaotu"); // } // break; //case "Entrance-Mail": // OpenAndCloseWindow("Mail"); // break; //case "Entrance-Friend": // LogicSystem.PublishLogicEvent("ge_request_friends", "lobby"); // OpenAndCloseWindow("Friend"); // break; //case "Entrance-XHun": // OpenAndCloseWindow("XHun"); // break; //case "Entrance-Partner": // OpenAndCloseWindow("Partner"); // break; case "Entrance-Trial": //LogicSystem.SendStoryMessage("cityplayermove", 1); break; //case "Entrance-Shop": // OpenAndCloseWindow("Store"); // break; //case "Entrance-Award": // OpenAndCloseWindow("ActivityAward"); // break; default: delayBtnName = go.name; UnityEngine.GameObject window = UIManager.Instance.GetWindowGoByName("MainCityUI"); if (window != null) { MainCityTopTween script = window.GetComponentInChildren <MainCityTopTween>(); if (script != null) { script.Up(); Invoke("OpenUi", 0.3f); } else { OpenUi(); } } break; } }