Commit 0b1a994c by Naliwe GS

Fixed scores ?

parent 91430032
......@@ -7,7 +7,7 @@ using System.Linq;
namespace Assets.Scripts.API
{
public class Server: MonoBehaviour
public class Server : MonoBehaviour
{
public static string HOST_PROD = "https://quantifly.plnech.fr";
public static string HOST = "http://localhost:8990";
......@@ -16,6 +16,11 @@ namespace Assets.Scripts.API
{
}
public void Start()
{
GetScores();
}
public void GetScores ()
{
StartCoroutine(GetScoresAsync());
......@@ -23,7 +28,7 @@ namespace Assets.Scripts.API
}
IEnumerator GetScoresAsync() {
UnityWebRequest www = UnityWebRequest.Get(HOST + "/scores/");
UnityWebRequest www = UnityWebRequest.Get(HOST_PROD + "/scores/");
yield return www.Send();
if (www.isError) {
......
using UnityEngine;
using Assets.Scripts.API;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Assets.Scripts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment