示例#1
0
 public void Show(DialogueUIData data)
 {
     bubbleText.text = data.Dialogue;
     ShowTime        = data.Time;
     showedTime      = 0;
     gameObject.SetActive(true);
     this.roleObj = World.Instance.GetAutoLoadRole(data.Id);
 }
示例#2
0
    public void ShowBubble(DialogueUIData data)
    {
        SingleBubble bubble;

        if (bubblePools.Count <= 0)
        {
            bubble = Clone();
        }
        else
        {
            bubble = bubblePools[0];
            bubblePools.RemoveAt(0);
        }
        bubbles.Add(bubble);
        bubble.Show(data);
    }