Ejemplo n.º 1
0
    public void ShowUI()
    {
        if (effectFSM != null)
        {
            effectFSM.SendEvent("Show");
        }

        positioner.SetPositionImmediately();
        SoundEffector.Singleton.Play("HintUI", transform, 0.2f);
        on = true;
    }
Ejemplo n.º 2
0
    public void ShowUI(string title, string content)
    {
        if (effectFSM != null)
        {
            effectFSM.SendEvent("Show");
        }
        if (titleText != null)
        {
            titleText.text = title;
        }
        if (contentText != null)
        {
            contentText.text = content;
        }

        positioner.SetPositionImmediately();
        SoundEffector.Singleton.Play("HintUI", transform, 0.2f);
    }