Skip to content

Instantly share code, notes, and snippets.

@JoseMiguelPizarro
Created August 31, 2019 13:09
Show Gist options
  • Save JoseMiguelPizarro/ed86906c3d43f7768729e8d4e4452e0b to your computer and use it in GitHub Desktop.
Save JoseMiguelPizarro/ed86906c3d43f7768729e8d4e4452e0b to your computer and use it in GitHub Desktop.
DoAction method
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