Ejemplo n.º 1
0
        private void PopBubble(EBubbleType type)
        {
            if (this.bubbles.Exists(b => b.BubbleType == type))
            {
                Bubble bubble = this.bubbles.Find(b => b.BubbleType == type);
                bubble.Pop();

                // remove to bubbles
                this.bubbles.Remove(bubble);
            }
        }
Ejemplo n.º 2
0
        private void OnEnable()
        {
            this.bubbleType  = (EBubbleType)(0x1 << URandom.Range(0, 6));
            this.bubbleColor = (EBubbleColor)(0x1 << URandom.Range(0, 8));

            // add to pool
            Signal signal = GameSignals.ON_BUBBLE_ADDED_TO_POOL;

            signal.AddParameter(GameParams.BUBBLE, this.gameObject);
            signal.Dispatch();
        }