コード例 #1
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");
     }
 }
コード例 #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");
     }
 }
コード例 #3
0
 protected override void DoUpdate()
 {
     if (oggLoader != null) {
     if (oggLoader.IsLoaded()) {
         this.SetTexture2D(oggLoader.GetTexture());
         oggLoader = null;
         LocalMediaReady();
     }
     }
 }
コード例 #4
0
 protected override void DoUpdate()
 {
     if (oggLoader != null)
     {
         if (oggLoader.IsLoaded())
         {
             this.SetTexture2D(oggLoader.GetTexture());
             oggLoader = null;
             LocalMediaReady();
         }
     }
 }
コード例 #5
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;
        }
コード例 #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);
        }