Example #1
0
        void CreateDimBubble(Vector3 position)
        {
            BubbleAgent bubble = _dimBubbleAgentPool.GetObj();

            float height = bubble.GetComponent <RectTransform>().rect.height;

            position = position - new Vector3(0, height, 0);

            bubble.Init(this, _manager, BubbleType.Dim, position);
            bubble.GetComponent <RectTransform>().SetAsFirstSibling();
            _bubbleAgents.Add(bubble);
        }
Example #2
0
        void CreateClearBubble(Vector3 position)
        {
            BubbleAgent bubble = _clearBubbleAgentPool.GetObj();

            float height = bubble.GetComponent <RectTransform>().rect.height;

            position = position - new Vector3(0, height, 0);

            bubble.Init(this, _manager, BubbleType.Clear, position);


            _bubbleAgents.Add(bubble);
        }