private IEnumerator PlayDelayed(string filename, StreamingMovie.OnFinished callback) { // ISSUE: object of a compiler-generated type is created return((IEnumerator) new FlowNode_StreamingMovie.\u003CPlayDelayed\u003Ec__Iterator92() { filename = filename, callback = callback, \u003C\u0024\u003Efilename = filename, \u003C\u0024\u003Ecallback = callback }); }
public bool Play(string fileName, StreamingMovie.OnFinished callback = null, string prefabPath = null) { if (StreamingMovie.IsPlaying) { return(false); } this.onFinished = callback; string url = this.MakePlatformMoviePath(fileName); DebugUtility.Log("Play streaming movie " + url); this.StartCoroutine(this.PlayInternal(url, prefabPath)); return(true); }
public void Play(string fileName, StreamingMovie.OnFinished callback = null, string prefabPath = null) { this.onFinished = callback; this.StartCoroutine(this._Play(Path.Combine(this.URL, fileName) + this.Extention, prefabPath)); }