mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
remove unused code
This commit is contained in:
parent
6597c53735
commit
8cf1c143df
1 changed files with 0 additions and 22 deletions
|
@ -21,8 +21,6 @@ namespace SanAndreasUnity.UI
|
|||
|
||||
static MenuEntry s_rootMenuEntry = new MenuEntry();
|
||||
|
||||
static bool s_hasMenuEntriesToAdd = false;
|
||||
|
||||
public RectTransform buttonsContainer;
|
||||
public GameObject buttonPrefab;
|
||||
|
||||
|
@ -66,26 +64,6 @@ namespace SanAndreasUnity.UI
|
|||
|
||||
buttonGo.GetComponent<Button>().onClick.AddListener(() => menuEntry.clickAction());
|
||||
|
||||
//Instance.buttonsContainer.GetComponent<HorizontalLayoutGroup>();
|
||||
|
||||
//MenuEntriesChanged();
|
||||
}
|
||||
|
||||
static void MenuEntriesChanged()
|
||||
{
|
||||
if (s_hasMenuEntriesToAdd)
|
||||
return;
|
||||
|
||||
s_hasMenuEntriesToAdd = true;
|
||||
|
||||
Instance.Invoke(nameof(UpdateMenuEntries), 0.0001f);
|
||||
}
|
||||
|
||||
void UpdateMenuEntries()
|
||||
{
|
||||
s_hasMenuEntriesToAdd = false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue