Ejemplo n.º 1
0
    private void Update()
    {
        scroller.SetTexture(ObjectType.Cell, gameObject, CellType, Humidity);

        //Mesh mesh = GetComponent<MeshFilter>().mesh;
        //Vector3[] vertices = mesh.vertices;
        //Vector3[] normals = mesh.normals;
        //
        //List<Vector2> uvs = new List<Vector2>();
        //
        //mesh.GetUVs(0, uvs);
        //
        //for (var i = 0; i < uvs.Count; i++)
        //{
        //    uvs[i] += new Vector2(0, Time.deltaTime * 1f);
        //}
        //
        //mesh.SetUVs(0, uvs);
        //mesh.vertices = vertices;
    }