public void Show(DialogueUIData data) { bubbleText.text = data.Dialogue; ShowTime = data.Time; showedTime = 0; gameObject.SetActive(true); this.roleObj = World.Instance.GetAutoLoadRole(data.Id); }
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); }