示例#1
0
    public static void Show(TiledNoise noise)
    {
        var window = CreateInstance <TiledNoiseEditor>();

        window.noise = noise;

        window.titleContent = new GUIContent("Edit noise");
        window.maxSize      = new Vector2(360f, 155f);
        window.minSize      = window.maxSize;
        window.ShowAuxWindow();
    }
示例#2
0
 public static void Draw(TiledNoise noise)
 {
     if (noise is PinkTiledNoise)
     {
         DrawPinkNoise(noise as PinkTiledNoise);
     }
     else
     {
         throw new Exception("Unknown type of TiledNoise: " + noise.GetType());
     }
 }