Exemplo n.º 1
0
    void IUsersAroundListHUDListView.SetVisibility(bool visible)
    {
        if (visible)
        {
            if (!gameObject.activeSelf)
            {
                gameObject.SetActive(true);
            }

            showHideAnimator.Show();
        }
        else
        {
            showHideAnimator.Hide();
            contextMenu.Hide();
            confirmationDialog.Hide();
        }
    }
Exemplo n.º 2
0
 protected virtual void OnDisable()
 {
     confirmationDialog.Hide();
     contextMenuPanel.Hide();
 }
Exemplo n.º 3
0
    public void HideContextMenuProperly()
    {
        contextMenu.Hide();

        Assert.IsFalse(contextMenu.gameObject.activeSelf, "The context menu should not be visible.");
    }