Пример #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        RoomGenerator generator = (RoomGenerator)target;

        GUILayout.BeginHorizontal();

        if (GUILayout.Button("Generate Room"))
        {
            generator.DrawRoom();
        }

        if (GUILayout.Button("Clean Room"))
        {
            generator.EraseRoom();
        }

        GUILayout.EndHorizontal();
    }