Пример #1
0
    public void ShowDescription(Shard shardData, string forcedDescription = "")
    {
        shardTitle.text = shardData.FriendlyName;

        string description = string.IsNullOrEmpty(forcedDescription) ? shardData.Description : forcedDescription;

        if (isPauseMenuVersion)
        {
            pauseMenuUI.ShowDescription(description);
        }
        else
        {
            shardDescription.text = description;
        }
    }
Пример #2
0
    public override void Open()
    {
        if (group.menuElements.Count == 0)
        {
            pauseMenuUI.ShowDescription("I don't have any items right now...", CharacterExpression.sweat);
        }
        else
        {
            group.FocusElement(group.currentMenuElementIndex);
        }

        base.Open();
    }
Пример #3
0
 public override void Focus()
 {
     text.color = Color.white;
     pauseMenuUI.ShowDescription(itemData.ItemDescription);
 }