public void Update(GameTime gameTime) { tilePartition.Update(gameTime); cellSpacePartition.Update(gameTime); entityParticle.Update(); bulletManager.Update(); }
public override void Update(GameTime gameTime) { keyboardState = Keyboard.GetState(); mouseState = Mouse.GetState(); Movement(); playerParticleSystem.Update(); if (weapon1 != null) { weapon1.Update(gameTime, rightHand.position, rotation - MathHelper.ToRadians(90)); } HandUpdate(); if (Game1.planet.bulletManager.CheckCollision(rect)) { TakeDamage(10); } oldMState = mouseState; oldKbState = keyboardState; }