Beispiel #1
0
    public void Show(OverlayMenuType type)
    {
        _isDisplayed = true;
        fill.gameObject.SetActive(true);
        SetMenuToShow(type);
        menus[type].OnShow();

        //rectTransform.DOMoveX(Screen.width / 2, tweenInOutTime).SetEase(Ease.OutCubic).Pause();
    }
Beispiel #2
0
 private void SetMenuToShow(OverlayMenuType type)
 {
     foreach (KeyValuePair <OverlayMenuType, UIOverlayMenu> menu in menus)
     {
         if (menu.Value.menuType != type)
         {
             menu.Value.gameObject.SetActive(false);
         }
         else
         {
             menu.Value.gameObject.SetActive(true);
         }
     }
 }