Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
|
||||
public class DataNetworkGet : DataNetwork {
|
||||
public DataNetworkGet(string url) : base(url) { }
|
||||
|
||||
public override IEnumerator IWebRequest() {
|
||||
using (UnityWebRequest web = UnityWebRequest.Get(url)) {
|
||||
yield return web.SendWebRequest();
|
||||
RequestResultHandle(web);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user