Exemplo n.º 1
0
 private void Update()
 {
     meshgen.AddOffset(new Vector2(0, Time.deltaTime * 0.2f));
     time_elapsed += Time.deltaTime;
     if (time_elapsed >= 50.0f)
     {
         time_elapsed -= 50.0f;
     }
     meshmountain.GetComponent <Renderer>().sharedMaterial.SetFloat("_WireframeVal", anim_curve.Evaluate(time_elapsed / 50));
 }