예제 #1
0
    void NoRoom()
    {
        GUILayout.Label("Currently no room, create a new room or load an existing room.");
        GUILayout.FlexibleSpace();
        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("New room", GUILayout.Height(50)))
        {
            RM.RegularRoom();
            NewRoom();
        }

        /*if (GUILayout.Button("New tall room", GUILayout.Height(50)))
         * {
         *  RM.TallRoom();
         *  NewRoom();
         * }*/
        EditorGUILayout.EndHorizontal();
        GUILayout.FlexibleSpace();

        if (GUILayout.Button("Load room", GUILayout.Height(50)))
        {
            states = States.Loading;
        }
        GUILayout.FlexibleSpace();
    }