private void ClickSolMovie(IUIObject obj) { if (obj == null) { return; } int charkind = (int)obj.Data; NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(charkind); if (charKindInfo == null) { return; } string sOLINTRO = charKindInfo.GetCHARKIND_INFO().SOLINTRO; if (NrTSingleton <NrGlobalReference> .Instance.localWWW) { if (NrTSingleton <NrGlobalReference> .Instance.useCache) { string str = string.Format("{0}SOLINTRO/", Option.GetProtocolRootPath(Protocol.HTTP)); NmMainFrameWork.PlayMovieURL(str + sOLINTRO + ".mp4", true, false, true); } else { NmMainFrameWork.PlayMovieURL("http://klohw.ndoors.com/at2mobile_android/SOLINTRO/" + sOLINTRO + ".mp4", true, false, true); } } else { string str2 = string.Format("{0}SOLINTRO/", NrTSingleton <NrGlobalReference> .Instance.basePath); NmMainFrameWork.PlayMovieURL(str2 + sOLINTRO + ".mp4", true, false, true); } }
public void PlayMovie() { string str = "intro"; string str2 = string.Format("{0}GameDrama/", Option.GetProtocolRootPath(Protocol.HTTP)); NmMainFrameWork.PlayMovieURL(str2 + str + ".mp4", true, false, true); }
private void ClickOpening(IUIObject obj) { if (this.IsOpeningOn) { return; } string str = "intro"; string str2 = string.Format("{0}GameDrama/", Option.GetProtocolRootPath(Protocol.HTTP)); NmMainFrameWork.PlayMovieURL(str2 + str + ".mp4", true, false, true); this.IsOpeningOn = true; }
public void ShowResultFx() { this.m_OpenTime = 0f; if (!this.m_bPlayMovie) { this.m_waitImg.Visible = false; string text = "UI/Drama/TUTORIAL.mp4"; text = text.ToLower(); string path = string.Format("{0}/{1}", NrTSingleton <NrGlobalReference> .Instance.basePath, text); if (File.Exists(path)) { this.m_bPlayMovie = false; this.m_bUpdateCheck = true; Debug.LogError("TUTORIAL MOVIE NOT EXIST"); return; } NmMainFrameWork.PlayMovieURL(path, true, false, true); this.m_bPlayMovie = true; this.MovieTime = Time.realtimeSinceStartup; this.m_bUpdateCheck = false; } }
public void ShowCompanyLogoMov() { string str = string.Empty; string text = "LOHBI.mp4"; if (Application.platform == RuntimePlatform.IPhonePlayer) { str = Application.dataPath + "/Raw/"; } else if (Application.platform == RuntimePlatform.Android) { str = Application.temporaryCachePath + "/"; if (!File.Exists(str + text)) { WWW wWW = new WWW("jar:file://" + Application.dataPath + "!/assets/" + text); while (!wWW.isDone) { } if (!string.IsNullOrEmpty(wWW.error)) { UnityEngine.Debug.Log(string.Concat(new string[] { "Error unpacking 'jar:file://", Application.dataPath, "!/assets/", text, "'" })); str = string.Empty; } File.WriteAllBytes(str + text, wWW.bytes); } else { WWW wWW2 = new WWW("jar:file://" + Application.dataPath + "!/assets/" + text); while (!wWW2.isDone) { } if (!string.IsNullOrEmpty(wWW2.error)) { UnityEngine.Debug.Log(string.Concat(new string[] { "Error unpacking 'jar:file://", Application.dataPath, "!/assets/", text, "'" })); str = string.Empty; } if (wWW2.bytes.Length != File.ReadAllBytes(str + text).Length) { File.WriteAllBytes(str + text, wWW2.bytes); } } } else { str = Application.dataPath + "/StreamingAssets/"; } if (!TsPlatform.IsEditor) { string path = str + text; NmMainFrameWork.PlayMovieURL(path, false, true, true); } }