Exemplo n.º 1
0
        private void GetBubble()
        {
            Bubble b = BubbleList.Find(x => x._CurrentState == Sprite.SpriteState.kStateInActive);

            if (b != null)
            {
                b.Activate(new Vector2(ran.Next(0, 800), ran.Next(500, 600)));
            }
            else
            {
                b = new Bubble();
                b.LoadContent(@"Art/Bubble", Content);
                b._Position.X = ran.Next(0, 800);
                b._Position.Y = ran.Next(500, 600);
                BubbleList.Add(b);
            }
        }