예제 #1
0
    protected override void Execute()
    {
        string actionResultText = geAnswer.Execute();

        if (actionResultText != null)
        {
            Description.GetInstance().AddDescriptionText(actionResultText);
        }
        if (bundleInstance == null)
        {
            bundleInstance = MenuItemBundleFactroy.CreateConversationLineBundle(LabelUtility.Instance.GetLabel(LabelNames.CONVERSATIONWITH) + geAnswer.ParentLine.ParentConv.ParentNpc.NameText.GetText(), parentBundle, geAnswer.NextLine, answerTo);
        }
        bundleInstance.ExecuteSideEffects();
        menuController.CurrentBundle = bundleInstance;
    }
    protected override void Execute()
    {
        Description descriptionPanel = Description.GetInstance();

        descriptionPanel.ClearDescription();
        if (bundleInstance == null || (actualConv == null || actualConv != npc.ActiveConversation))
        {
            if (actualConv != null)
            {
                actualConv.OnActivationChange -= parentBundle.RefreshOnEvent;
            }
            actualConv     = npc.ActiveConversation;
            bundleInstance = MenuItemBundleFactroy.CreateConversationLineBundle(LabelUtility.Instance.GetLabel(LabelNames.CONVERSATIONWITH) + npc.NameText.GetText(), parentBundle, actualConv.FirstLine, npc.NameText.GetText());

            actualConv.OnActivationChange += parentBundle.RefreshOnEvent;
        }
        bundleInstance.ExecuteSideEffects();
        menuController.CurrentBundle = bundleInstance;
    }