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");
     }
 }
Esempio n. 2
0
 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();
     }
     }
 }
Esempio n. 4
0
 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;
        }
Esempio n. 6
0
        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);
        }