public void OpenPanels(SelectPanelType type) { SelectPnl.SetActive(true); switch (type) { case SelectPanelType.CakeSize: CakeSizePnl.SetActive(true); break; case SelectPanelType.BrushShape: BrushShapePnl.SetActive(true); break; case SelectPanelType.CakeShape: CakeShapePnl.SetActive(true); break; case SelectPanelType.CakeFlavor: CakeFlavorPnl.SetActive(true); break; default: Debug.Log("Invalid type!"); break; } }
public void ClosePnls() { SelectPnl.SetActive(false); CakeSizePnl.SetActive(false); BrushShapePnl.SetActive(false); CakeShapePnl.SetActive(false); CakeFlavorPnl.SetActive(false); }