// Use this for initialization void Start() { restfulapi = gameObject.AddComponent <RESTed> (); SetupHeaders(); StartCoroutine(SetupScores()); }
IEnumerator postit(Score newscore) { RESTed api = gameObject.AddComponent <RESTed> (); yield return(StartCoroutine(api.POSTScore(newscore))); SceneManager.LoadScene("Menu"); }