public void SwitchToTilesTab() { currentTab = PaletteTab.Tiles; paletteRect.content = tilesContent; tilesContent.gameObject.SetActive(true); entitiesContent.gameObject.SetActive(false); }
public void SwitchTab(PaletteTab tab) { currentTab = tab; switch (tab) { case PaletteTab.Entities: tilesContent.gameObject.SetActive(false); entitiesContent.gameObject.SetActive(true); break; case PaletteTab.Tiles: tilesContent.gameObject.SetActive(true); entitiesContent.gameObject.SetActive(false); break; default: break; } }