Created
August 31, 2019 14:17
-
-
Save JoseMiguelPizarro/f76f6575016dfa05383598f4ed4eca0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private GUIContent[] toolsButton; | |
private List<LevelMeshTool> tools; | |
private LevelMeshTool activeTool; | |
int m_selectedTool; | |
int selectedTool | |
{ | |
get => m_selectedTool; | |
set | |
{ | |
m_selectedTool = value; | |
activeTool = tools[m_selectedTool]; | |
} | |
} | |
private void OnEnable() | |
{ | |
tools = LevelMeshToolProvider.tools; | |
toolsButton = tools.Select(t => t.Content).ToArray(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment