MenuTree.cs
using UnityEngine;
using EyE.Unity.Collections;//.Utility;
{
[System.Serializable]
public class MenuInfo
{
public System.Action submitHandler;
public GameObject levelObject;
public string text;
public override string ToString()
{
string submitstr = "null";
if (submitHandler != null)
submitstr = submitHandler.ToString();
string levelstr = "null";
if (levelObject != null)
levelstr = levelObject.name;
return "\n submit:" + submitstr + "\n obj:" + levelstr + "\n txt:" + text;
}
public MenuInfo()
{ text = "default"; }
}
[System.Serializable]
public class MenuTree : STree<MenuInfo> { }
}
EyE.Unity.Examples.MenuInfo.submitHandler
System.Action submitHandler
reference to a function that should be called when the user clicks "submit" on a menu item.
Definition: MenuTree.cs:18
EyE.Unity.Examples.MenuInfo.MenuInfo
MenuInfo()
Default Constructor a MenuInfo. No submitHandler, no levelObject, "default" for text.
Definition: MenuTree.cs:46
EyE.Unity.Collections
Definition: SerializableDictionary.cs:5
EyE
This namespace contains classes that provide various tools for use in the Unity Editor.
Definition: EmbededXMLTooltip.cs:5
EyE.Unity.Examples
Definition: CatDebugExample.cs:7
EyE.Unity
This namespace holds classes that extended or inherit from various Unity defined classes....
Definition: EmbededXMLTooltip.cs:5
EyE.Unity.Examples.MenuInfo.levelObject
GameObject levelObject
Object in the scene that represents this MenuInfo
Definition: MenuTree.cs:22
EyE.Unity.Examples.MenuInfo.ToString
override string ToString()
display the makeup of this MenuInfo as a string. Useful for debugging.
Definition: MenuTree.cs:32
EyE.Unity.Examples.MenuInfo.text
string text
Text to be displayed for this MenuInfo
Definition: MenuTree.cs:26