Exemple #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        RoomBuilder myScript = (RoomBuilder)target;

        if (GUILayout.Button("Build Room"))
        {
            myScript.buildRoom();
        }
        if (GUILayout.Button("Save Room"))
        {
            myScript.SaveRoom();
        }
    }