public void AddSettingsMenuItem(ISettingsMenuItemProvider provider) { var instance = m_MainMenuUI.CreateCustomButton(provider.settingsMenuItemPrefab, k_SettingsMenuSectionName); m_SettingsMenuItems[provider] = instance; provider.settingsMenuItemInstance = instance; }
public void RemoveSettingsMenuItem(ISettingsMenuItemProvider provider) { GameObject instance; if (m_SettingsMenuItems.TryGetValue(provider, out instance)) { if (instance) { ObjectUtils.Destroy(instance); } m_SettingsMenuItems.Remove(provider); } provider.settingsMenuItemInstance = null; }
public void RemoveSettingsMenuItem(ISettingsMenuItemProvider menuProvider) { }
public void AddSettingsMenuItem(ISettingsMenuItemProvider menuProvider) { }