cleanup and refactor C# lexer classes

This commit is contained in:
sinaioutlander
2020-11-11 00:16:01 +11:00
parent 9c077b3aa3
commit 70a1570441
13 changed files with 308 additions and 506 deletions

View File

@ -78,18 +78,15 @@ namespace UnityExplorer.UI
if (selectable is Button button)
{
#if CPP
button.onClick.AddListener(new Action(() =>
{
button.OnDeselect(null);
}));
button.onClick.AddListener(new Action(Deselect));
#else
button.onClick.AddListener(Deselect);
#endif
void Deselect()
{
button.OnDeselect(null);
}
#endif
}
selectable.colors = colors;