public override void SetLoaderObject(LoaderObject loader) { this.filePath = loader.GetFilePath(); oggLoader = loader as OggLoaderObject; if (oggLoader == null) { Debug.LogError("Loader for " + this.filePath + " is not an OggLoaderObject"); } }
protected override void DoUpdate() { if (oggLoader != null) { if (oggLoader.IsLoaded()) { this.SetTexture2D(oggLoader.GetTexture()); oggLoader = null; LocalMediaReady(); } } }
public icOggMaterial CreateOggMaterial(string filePath, GameObject go) { icOggMaterial mat = go.GetComponent<icOggMaterial>(); if (mat == null) mat = go.AddComponent<icOggMaterial>(); OggLoaderObject lo = new OggLoaderObject(filePath, this.threadedLoader); mat.SetLoaderObject(lo); this.threadedLoader.AddLoaderInfo(lo); return mat; }
public icOggMaterial CreateOggMaterial(string filePath, GameObject go) { icOggMaterial mat = go.GetComponent <icOggMaterial>(); if (mat == null) { mat = go.AddComponent <icOggMaterial>(); } OggLoaderObject lo = new OggLoaderObject(filePath, this.threadedLoader); mat.SetLoaderObject(lo); this.threadedLoader.AddLoaderInfo(lo); return(mat); }