コード例 #1
0
    // Use this for initialization
    void Start()
    {
        restfulapi = gameObject.AddComponent <RESTed> ();

        SetupHeaders();

        StartCoroutine(SetupScores());
    }
コード例 #2
0
    IEnumerator postit(Score newscore)
    {
        RESTed api = gameObject.AddComponent <RESTed> ();

        yield return(StartCoroutine(api.POSTScore(newscore)));

        SceneManager.LoadScene("Menu");
    }