Example #1
0
 private void Update()
 {
     if (Input.GetKeyDown(randomizeKey))
     {
         graph.RandomizeSeed();
         graph.QueueForRender();
     }
     if (Input.GetKeyDown(outputSizeKey))
     {
         graph.SetOutputSize(SubstanceOutputSize._1024);
         graph.QueueForRender();
     }
 }
 private void Update()
 {
     if (Input.GetKeyDown(randomizeKey))
     {
         graph.RandomizeSeed();
         graph.QueueForRender();
     }
     if (Input.GetKeyDown(outputSizeKey))
     {
         graph.SetOutputSize(size);
         graph.QueueForRender();
     }
     if (Input.GetKeyDown(renderKey))
     {
         Substance.Game.Substance.RenderSubstancesAsync();
     }
 }