protected override void Update(GameTime gameTime) { base.Update(gameTime); if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { this.Exit(); } Globals.kbs = Keyboard.GetState(); TouchInput.Update(); if (Globals.kbs.IsKeyDown(Keys.Space) && !cameraMove.IsActive) { World.cam_Main.Transform.PosY = 0; cameraMove.StartPosition = new Vector2(World.cam_Main.Transform.PosX, 0); cameraMove.Target = World.cam_Main.Transform.Position + new Vector2(0, -350); Globals.GameScene.BuildNextLevel(); Globals.GameScene.StartCurrentLevel(); Globals.GameScene.StartIntro(); //cameraZoom.Start(); //cameraMove.Start(); //Coin.SpawnCoin(COIN_TYPE.GOLD, Vector2.Zero); } cameraMove.Update(); cameraZoom.Update(); Globals.GameScene.Update(); World.Update(); }
public override void Update() { m_breathing.Update(); m_actionManager.Update(); }
public override void Update() { m_animation.Update(); m_physics.Update(); m_moveTo.Update(); }