Finished Map Tab

This commit is contained in:
Reinier Vens 2020-12-18 13:48:03 +00:00
commit 615cc4e936
43 changed files with 8383 additions and 920 deletions

View file

@ -13,6 +13,8 @@ public class MenuPanel : MonoBehaviour
private Dictionary<MenuTab, MenuTabButton> _tabs = new Dictionary<MenuTab, MenuTabButton>();
private MenuTabButton _current;
public MenuTab CurrentTab { get; private set; }
public void ShowTab(MenuTab tab)
{
@ -25,7 +27,8 @@ public class MenuPanel : MonoBehaviour
_current.TabContents.SetActive(false);
_current.Text.color = InactiveTabColor;
}
CurrentTab = tab;
_current = _tabs[tab];
_current.TabContents.SetActive(true);