示例#1
0
    void Awake()
    {
        // Start by hiding the container, line and option buttons
        if (dialogueContainer != null)
        {
            dialogueContainer.SetActive(false);
        }

        lineText.gameObject.SetActive(false);

        foreach (var button in optionButtons)
        {
            button.gameObject.SetActive(false);
        }

        // Hide the continue prompt if it exists
        if (continuePrompt != null)
        {
            continuePrompt.SetActive(false);
        }

        inlineStyleRegex = new Regex("{{([^{}]*)}}");
        tagOpenRegex     = new Regex("<([^/>]*)>");
        tagCloseRegex    = new Regex("<(/[^>]*)>");

        dr = MHC.FindGameObjectComponentWithTag <DialogueRunner>(FSTokens.TagDialogueSystemManager);
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        anim = GetComponentInChildren <Animator>();
        dr   = MHC.FindGameObjectComponentWithTag <DialogueRunnerFS>(FSTokens.TagDialogueSystemManager);

        if (scriptToLoad != null)
        {
            dr.AddScript(scriptToLoad);
        }
    }