예제 #1
0
    //hide menu
    public void HideMenu(EnumUIMenuID menuID)
    {
        if (!_uiMenus.ContainsKey(menuID))
        {
            LoggingManager.AddErrorToLog("Try hide, but Didnt found menu " + menuID.ToString());
            return;
        }

        _uiMenus[menuID].HideAnimation();
    }
예제 #2
0
    /* Logic
     * */
    // show menu animation
    public void ShowMenu(EnumUIMenuID menuID, object data = null)
    {
        if (!_uiMenus.ContainsKey(menuID))
        {
            LoggingManager.AddErrorToLog("Try show, but Didnt found menu " + menuID.ToString());
            return;
        }
        if (data != null)
        {
            _uiMenus[menuID].Data = data;
        }

        _uiMenus[menuID].ShowAnimation();
    }