public virtual bool OnConfirm(float value)
    {
        if (decorator != null)
        {
            decorator.OnConfirm(value);
        }

        return(false);
    }
示例#2
0
    protected virtual bool OnConfirm(float value)
    {
        if (menuItems.Length > 0 && selectedItem != null && selectedItem.HandleConfirmInput(value, this))
        {
            return(true);
        }

        if (decorator != null)
        {
            decorator.OnConfirm(value);
        }
        return(false);
    }