public void ReviewDirection(DirectionDLG.eDIRECTIONTYPE type) { switch (type) { case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_COMMUNITY: PlayerPrefs.SetInt("Community DLG Effect", 0); break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_PLUNDER: PlayerPrefs.SetInt("PlunderMainDLG Effect", 0); break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_ITEMSKILL: PlayerPrefs.SetInt("ItemSkill Effect", 0); break; } this.ShowDirection(type, 0); }
public void SetDirection(DirectionDLG.eDIRECTIONTYPE type) { switch (this.m_direction_type) { case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_COMMUNITY: PlayerPrefs.SetInt("Community DLG Effect", 1); break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_BABEL: PlayerPrefs.SetInt("BabelTowerMainDLG Effect", 1); break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_PLUNDER: PlayerPrefs.SetInt("PlunderMainDLG Effect", 1); break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_ITEMSKILL: PlayerPrefs.SetInt("ItemSkill Effect", 1); break; } }
public void ShowDirection(DirectionDLG.eDIRECTIONTYPE type, int sub_data = 0) { this.m_direction_type = type; if (!this.CheckDirection()) { this.Close(); return; } UIDataManager.MuteSound(true); string arg = string.Empty; this.SetDirection(this.m_direction_type); switch (this.m_direction_type) { case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_COMMUNITY: arg = string.Format("{0}", "UI/Etc/fx_helpfriend" + NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 32f; break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_BABEL: this.m_nBabel_FloorType = (short)sub_data; if (PlayerPrefs.GetInt("BabelTowerMainDLG Effect") == 0) { arg = "Effect/Instant/fx_direct_chaostower" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 17f; } else { arg = "Effect/Instant/fx_towerloading" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 2.5f; } break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_PLUNDER: { arg = string.Format("{0}", "UI/Etc/fx_herobattle" + NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 32f; Vector3 position = new Vector3(0f, 0f, 0f); position.z = 200f; position.x = this.m_lSkip.transform.position.x; position.y = this.m_lSkip.transform.position.y; this.m_lSkip.transform.position = position; break; } case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_ITEMSKILL: arg = string.Format("{0}", "UI/item/fx_direct_improvemagic" + NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 22.2f; break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MINESEARCH: { if (sub_data == 1) { arg = "UI/Mine/fx_direct_forestroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } else if (sub_data == 2) { arg = "UI/Mine/fx_direct_iceroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } else if (sub_data == 3) { arg = "UI/Mine/fx_direct_goldroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } else if (sub_data == 4) { arg = "UI/Mine/fx_direct_goldroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } else if (sub_data == 5) { arg = "UI/Mine/fx_direct_goldroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } Vector3 position2 = new Vector3(0f, 0f, 0f); position2.z = 200f; position2.x = this.m_lSkip.transform.position.x; position2.y = this.m_lSkip.transform.position.y; this.m_lSkip.transform.position = position2; break; } case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MINETUTORIAL: arg = string.Format("{0}{1}{2}", "UI/Mine/", "fx_direct_minewar", NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 15f; break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_EXPLORATION: arg = string.Format("{0}{1}{2}", "UI/Exploration/", "fx_direct_exploreloding", NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 3f; break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MYTHRAID: UIDataManager.MuteSound(false); TsAudio.StoreMuteAllAudio(); TsAudio.SetExceptMuteAllAudio(EAudioType.UI, true); TsAudio.RefreshAllMuteAudio(); TsAudioManager.Instance.AudioContainer.RequestAudioClip("BGM", "MYTH", "START", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay), string.Empty, true); arg = string.Format("{0}{1}{2}", "ui/mythicraid/", "fx_direct_mythraid", NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 3f; break; } string str = string.Format("{0}", arg); WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem.SetItemType(ItemType.USER_ASSETB); wWWItem.SetCallback(new PostProcPerItem(this.SetActionDirection), null); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true); }