Created
August 31, 2019 13:09
-
-
Save JoseMiguelPizarro/ed86906c3d43f7768729e8d4e4452e0b to your computer and use it in GitHub Desktop.
DoAction method
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 void OnSceneGUI() | |
{ | |
DrawToolBar(SceneView.lastActiveSceneView); | |
DoAction(); | |
} | |
private void DoAction() | |
{ | |
switch (selectedTool) | |
{ | |
case 0: | |
Select(); | |
break; | |
default: | |
break; | |
} | |
} | |
private void Select() { Debug.Log("I'm selecting something ;"); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment