mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-03 12:02:28 +08:00
cleanup and refactor C# lexer classes
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user