/// <summary> /// Show context menu /// </summary> /// <param name="userId"> user id</param> /// <param name="configFlags">set buttons to enable in menu</param> public void Show(string userId, MenuConfigFlags configFlags) { this.userId = userId; ProcessActiveElements(configFlags); Setup(userId, configFlags); if (currentConfirmationDialog == null && confirmationDialog != null) { SetConfirmationDialog(confirmationDialog); } gameObject.SetActive(true); OnShowMenu?.Invoke(); }
private void OptionAction(int index) { switch (index) { case 1: { OnShowMenu.Invoke(); } break; default: { throw new System.NotImplementedException("OptionAction: " + index); } } }
/// <summary> /// Shows the context menu. /// </summary> public void Show() { gameObject.SetActive(true); UpdateBlockButton(); OnShowMenu?.Invoke(); }