public void PopHp(int tag, Transform trans, int hpType, int hp) { BubbleInfo info = new BubbleInfo(hp.ToString(), 0f, textColor[hpType]); InfoQueue iqueue = PushBubbleInfo(tag, 2, info); iqueue.Follow(trans); }
public void Bubble(int tag, int kindIdx, Transform trans, string txt, float duration) { if (kindIdx < 0 || kindIdx >= kindItems.Count) { return; } BubbleInfo info = new BubbleInfo(txt, duration); InfoQueue iqueue = PushBubbleInfo(tag, kindIdx, info); iqueue.Follow(trans); }