示例#1
0
 public void RemoveService(BubbleService serviceToDelete)
 {
     if (serviceToDelete.RigidInService != null)
     {
         serviceToDelete.RigidInService.SetAwake(true);
     }
     this.ListOfServices.Remove(serviceToDelete);
 }
示例#2
0
        public void Update(GameTime gameTime)
        {
            BubbleService serviceToDie = null;

            foreach (var bubbleService in ListOfServices)
            {
                if (!bubbleService.ShouldDie)
                {
                    bubbleService.Update(gameTime);
                }
                else
                {
                    serviceToDie = bubbleService;
                }
            }
            if (serviceToDie != null)
            {
                this.RemoveService(serviceToDie);
            }
        }
示例#3
0
 public void AddNewService(BubbleService bubbleService)
 {
     this.ListOfServices.Add(bubbleService);
 }