Exemplo n.º 1
0
 private void Simulate()
 {
     if (Application.isPlaying == false)
     {
         UltimateToonWater UTW = (UltimateToonWater)target;
         if (UTW != null)
         {
             if (UTW.previewMode == true)
             {
                 EditorUtility.SetSelectedWireframeHidden(UTW.GetComponent <Renderer>(), true);
                 UTW.now = (float)EditorApplication.timeSinceStartup;
                 UTW.HandleWaves();
                 UTW.HandleTexture();
             }
             else
             {
                 EditorUtility.SetSelectedWireframeHidden(UTW.GetComponent <Renderer>(), false);
             }
         }
     }
 }