skripti 2

using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Loader : MonoBehaviour {

    IEnumerator Start() {
        string url = "http://hoover.koudata.fi/query";

        WWW www = new WWW(url);
        yield return www;

        Text txt = gameObject.GetComponent<Text>();
        txt.text = "Highscore\n\n" + www.text;

    }
    
    // Update is called once per frame
    void Update () {
    
    }
}