Ejemplo n.º 1
0
    /// <summary>
    /// Re-displays the command text with the specified message. Only use this if the text will not need to be localized
    /// </summary>
    /// <param name="command"></param>
    public void displayCommand(string command)
    {
        if (!commandDisplay.gameObject.activeInHierarchy)
        {
            commandDisplay.gameObject.SetActive(true);
        }

        commandDisplay.play(command);
    }
Ejemplo n.º 2
0
    /// <summary>
    /// Re-displays the command text with the specified message. Only use this if the text will not need to be localized
    /// </summary>
    /// <param name="command"></param>
    public void displayCommand(string command, AnimatorOverrideController commandAnimatorOverride = null)
    {
        if (!commandDisplay.gameObject.activeInHierarchy)
        {
            commandDisplay.gameObject.SetActive(true);
        }


        commandDisplay.play(command, commandAnimatorOverride);
    }