void Update() { if (Input.GetKeyDown(KeyCode.R)) { levelCompleteJSON woo = new levelCompleteJSON("Level name", 10.00f, 5, 10); StartCoroutine(PostJSON("http://data.scopecreepstudios.com/", "bugdrop/completed", JsonUtility.ToJson(woo))); } }
// Start is called before the first frame update void Start() { levelCompleteJSON woo = new levelCompleteJSON("Level name", 10.50f, 5, 10); StartCoroutine(PostJSON("http://data.scopecreepstudios.com/", "bugdrop/completed", JsonUtility.ToJson(woo))); }