Class SubMenu
Class used for each menu
Inheritance
System.Object
SubMenu
Namespace: Tetris
Assembly: cs.temp.dll.dll
Syntax
public class SubMenu
Properties
Canvas
Gets the Canvas's parent GameObject
Declaration
public GameObject Canvas { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
CanvasCanvas
Gets the Canvas
Declaration
public Canvas CanvasCanvas { get; set; }
Property Value
Type | Description |
---|---|
Canvas |
IsPaused
Gets menu's pause state
Declaration
public bool IsPaused { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Menu
Gets the GameObject of a menu item
Declaration
public GameObject[] Menu { get; set; }
Property Value
Type | Description |
---|---|
GameObject[] |
MenuItem
Gets the Text of a menu item
Declaration
public Text[] MenuItem { get; set; }
Property Value
Type | Description |
---|---|
Text[] |
MenuItemCount
Gets the number of MenuItems in the submenu
Declaration
public int MenuItemCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MenuItemSelected
Gets the Text of a currently selected MenuItem
Declaration
public Text MenuItemSelected { get; set; }
Property Value
Type | Description |
---|---|
Text |
SelectedIndex
Gets index of a currently selected MenuItem
Declaration
public int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |