Exemplo n.º 1
0
    // Start is called before the first frame update
    public override void OnInspectorGUI()
    {
        NoiseGen noiseGen = (NoiseGen)target;

        if (GUILayout.Button("Blend") || (DrawDefaultInspector() && noiseGen.autoUpdate))
        {
            noiseGen.Blend();
        }
        if (GUILayout.Button("GenerateWorely"))
        {
            noiseGen.GenWorelyNoise();
        }
        if (GUILayout.Button("GeneratePerlin"))
        {
            noiseGen.GenPerlinNoise();
        }
    }