Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (curRes != resolution)
        {
            Debug.Log("New resolution: " + resolution.ToString());

            tex.fillByTile();
            curRes = resolution;
        }

        if (tex.finished)
        {
            Debug.Log("finished tiing: ");
            GetComponent <MeshRenderer> ().material.mainTexture = tex.Tex;
            tex.finished = false;
        }
    }