Ejemplo n.º 1
0
 public bool DisplayView(DrawMode mode)
 {
     if (mode.Equals(DrawMode.Standart))
     {
         if (biomeLayer != null)
         {
             DisplayImage.texture = biomeLayer;
         }
         return(true);
     }
     if (mode.Equals(DrawMode.TempMap))
     {
         if (temperatureMap != null)
         {
             DisplayImage.texture = temperatureMap;
         }
         return(true);
     }
     if (mode.Equals(DrawMode.MoistureMap))
     {
         if (moistureMap != null)
         {
             DisplayImage.texture = moistureMap;
         }
         return(true);
     }
     if (mode.Equals(DrawMode.Noisemap))
     {
         if (noiseLayer != null)
         {
             DisplayImage.texture = noiseLayer;
         }
         return(true);
     }
     return(false);
 }