Exemple #1
0
 /// <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();
 }
Exemple #2
0
        private void OptionAction(int index)
        {
            switch (index)
            {
            case 1:
            {
                OnShowMenu.Invoke();
            }
            break;

            default:
            {
                throw new System.NotImplementedException("OptionAction: " + index);
            }
            }
        }
Exemple #3
0
 /// <summary>
 /// Shows the context menu.
 /// </summary>
 public void Show()
 {
     gameObject.SetActive(true);
     UpdateBlockButton();
     OnShowMenu?.Invoke();
 }