This is a sample data class we want to store in a tree. All members to be stored, must be serializable.
|
| | MenuInfo () |
| | Default Constructor a MenuInfo. No submitHandler, no levelObject, "default" for text.
|
| |
| override string | ToString () |
| | display the makeup of this MenuInfo as a string. Useful for debugging.
|
| |
|
| GameObject | levelObject |
| | Object in the scene that represents this MenuInfo
|
| |
| System.Action | submitHandler |
| | reference to a function that should be called when the user clicks "submit" on a menu item.
|
| |
| string | text |
| | Text to be displayed for this MenuInfo
|
| |