Exemplo n.º 1
0
    /// <summary>
    ///
    /// </summary>
    public static void RemoveMobileButton(bl_MobileButton button)
    {
        if (!mobileButtons.ContainsKey(button.ButtonName))
        {
            return;
        }

        mobileButtons.Remove(button.ButtonName);
    }
Exemplo n.º 2
0
    /// <summary>
    ///
    /// </summary>
    public static void AddMobileButton(bl_MobileButton button)
    {
        if (mobileButtons.ContainsKey(button.ButtonName))
        {
            Debug.LogWarning($"A button with the name '{button.ButtonName}' is already registered, buttons with the same name are not allowed."); return;
        }

        mobileButtons.Add(button.ButtonName, button);
    }