Beispiel #1
0
 public void LoadResource(Action <string> callback)
 {
     #if !UNITY_2017_1_OR_NEWER
     texture = new Texture2D(this.Width, this.Height);
     #endif
     StartCoroutine(store.Get(
                        URL,
                        t => {
         texture = t;
         callback(null);
     },
                        callback));
 }