public override void Update(GameTime gameTime)
 {
     if (InputHandler.LeftMousePressed())
     {
         BubbleManager.Create(new Vector2(InputHandler.MouseState.X, InputHandler.MouseState.Y));
     }
     ControlManager.Update(gameTime);
     base.Update(gameTime);
     BubbleManager.Update(gameTime);
 }
예제 #2
0
 public override void Update(GameTime gameTime)
 {
     if (InputHandler.LeftMousePressed())
     {
         BubbleManager.Create(new Vector2(InputHandler.MouseState.X, InputHandler.MouseState.Y));
     }
     ControlManager.Update(gameTime);
     base.Update(gameTime);
     BubbleManager.Update(gameTime);
     player.Update();
     EnemyManager.Update(player, StateManager, GameRef);
     if (player.Size > 3.05f)    //  if player is the largest fish (fish size = (1-2)+(0-1)+0.5f
     {
         StateManager.ChangeState(GameRef.WinnerScreen);
     }
 }