public void RemoveBubbleDialogue(long uuid, Transform actorRoot) { for (int i = 0; i < this.BubbleDialogues.get_Count(); i++) { BubbleDialogueUnit bubbleDialogueUnit = this.BubbleDialogues.get_Item(i); if (bubbleDialogueUnit.uuid == uuid && bubbleDialogueUnit.get_transform() == actorRoot) { if (bubbleDialogueUnit != null && bubbleDialogueUnit.GetBillboardTransform() != null) { BubbleDialogueManager.BubbleDialoguePool.ReUse(bubbleDialogueUnit.GetBillboardTransform().get_gameObject()); bubbleDialogueUnit.ResetAll(); } this.BubbleDialogues.RemoveAt(i); return; } } }