C# Class SelectElementOnEditorMenu, PuzzleGameProject

Manage the selection of items in the Map Editor menu.
Inheritance: MonoBehaviour
显示文件 Open project: Cedric-Paris/PuzzleGameProject

Public Properties

Property Type Description
currentButton Button
enableTileSet bool
selectedObject GameObject

Public Methods

Method Description
OnButtonPressOnMenuEditor ( Button buttonOnMenu ) : void

Called when an element is selected on the Map Editor menu. Update the selected object and the current button.

Method Details

OnButtonPressOnMenuEditor() public method

Called when an element is selected on the Map Editor menu. Update the selected object and the current button.
public OnButtonPressOnMenuEditor ( Button buttonOnMenu ) : void
buttonOnMenu Button Button clicked.
return void

Property Details

currentButton public_oe static_oe property

Reference to the last button clicked.
public static Button currentButton
return Button

enableTileSet public_oe static_oe property

Indicates whether the positioning of elements in the scene is enable. false = disable / true = enable
public static bool enableTileSet
return bool

selectedObject public_oe static_oe property

GameObject associated to the last button clicked.
public static GameObject selectedObject
return GameObject