|
|
@@ -9,8 +9,8 @@ public class DatabaseController : MonoBehaviour
|
|
|
{
|
|
|
|
|
|
private string secretKey = "TheNarKampenSecretKey";
|
|
|
- public string questionURL = "http://nordh.xyz:8088/narKampen/Questions.php?";
|
|
|
- public string categoriesURL = "http://nordh.xyz:8088/narKampen/Categories.php";
|
|
|
+ public string questionURL = "http://nordh.xyz:8088/Questions.php?";
|
|
|
+ public string categoriesURL = "http://nordh.xyz:8088/Categories.php";
|
|
|
|
|
|
public Text statusText;
|
|
|
|
|
|
@@ -27,7 +27,7 @@ public class DatabaseController : MonoBehaviour
|
|
|
|
|
|
yield return request.SendWebRequest();
|
|
|
|
|
|
- if (request.isDone)
|
|
|
+ if (request.result == UnityWebRequest.Result.Success)
|
|
|
{
|
|
|
Debug.Log(request.downloadHandler.text);
|
|
|
}
|