/// <summary> /// /// </summary> public static void RemoveMobileButton(bl_MobileButton button) { if (!mobileButtons.ContainsKey(button.ButtonName)) { return; } mobileButtons.Remove(button.ButtonName); }
/// <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); }