diff --git a/MoCha/Assets/EmptyClass.cs b/MoCha/Assets/EmptyClass.cs deleted file mode 100644 index 4b9bdfe..0000000 --- a/MoCha/Assets/EmptyClass.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace AssemblyCSharp -{ - public class EmptyClass - { - public EmptyClass () - { - } - } -} - diff --git a/MoCha/Assets/Scenes/Testing.unity b/MoCha/Assets/Scenes/Testing.unity index c11dac8..3577974 100644 Binary files a/MoCha/Assets/Scenes/Testing.unity and b/MoCha/Assets/Scenes/Testing.unity differ diff --git a/MoCha/Assets/Scripts/GetData.cs b/MoCha/Assets/Scripts/GetData.cs index 8f96f2f..f0b58a2 100644 --- a/MoCha/Assets/Scripts/GetData.cs +++ b/MoCha/Assets/Scripts/GetData.cs @@ -1,126 +1,29 @@ using UnityEngine; -using UnityEngine.Networking; using System.Collections; -using System.Collections.Generic; using UnityEngine.UI; -/* - * USAGE - * - * Just put this script into a button that needs - * to execute the HTTP request, and in the text field - * write the exact URL needed for the request. - * - * */ - - public class GetData : MonoBehaviour { - Text objectText; + public Button thisbutton; + public Text objectText; - void Start() - { - objectText = GetComponentInParent (); - } + public string request = "http://corder.tech/mocha/users/*"; - public void DisplayStuff(string request) + void Start() { - StartCoroutine (MakeRequest (request)); + thisbutton = GetComponent