public void Create() { if (string.IsNullOrEmpty(newNameText.text) || !Profile.CanCreateProfile(newNameText.text)) { return; } InputHelper.InvokeCancel(); foreach (KMSelectable selectable in selectablesOnCreate) { selectable.InvokeSelect(false, true); } InputInvoker.Instance.Enqueue(delegate() { profileSettingsPage.profile = Profile.CreateProfile(newNameText.text); profileSettingsPage.OnEnable(); }); }