public void Update(GameTime gameTime) { motion.Update(gameTime); metoronome.Update(gameTime); map.Update(gameTime); sound.PlayBGM("Title"); gameObjectManager.Update(gameTime); float delta = (float)gameTime.ElapsedGameTime.TotalSeconds; particleManager.Update(delta); if (particleManager.IsCount(30)) { particleManager.TitleParticle("title", new Vector2(Screen.Width / 2, 200)); } if (player3.IsHit()) { if (!player3.IsStop()) { player3.SetPosition2(player4.GetPosition()); //if (player3.IsPush()) //{ // stop4 = false; // player4.stop = stop4; //} } else { player3.SetPosition2(player4.GetPosition()); } } if (player4.IsHit()) { if (!player4.IsStop()) { player4.SetPosition2(player3.GetPosition()); //if (player4.IsPush()) //{ // stop3 = false; // player3.stop = stop3; //} } else { player4.SetPosition2(player3.GetPosition()); } } if (!player3.IsStop() && !player4.IsStop()) { player3.SetPosition(new Vector2(128 * 6 + 15, 128 * 5 + 15)); player4.SetPosition(new Vector2(128 * 7 + 18, 128 * 5 + 18)); player4.stop = true; player3.stop = false; } if (Input.GetKeyState(Keys.Right)) { camera.Move(1, 0); } if (Input.GetKeyState(Keys.Left)) { camera.Move(-1, 0); } if (Input.GetKeyState(Keys.Up)) { camera.Move(0, -1); } if (Input.GetKeyState(Keys.Down)) { camera.Move(0, 1); } if (player3.IsDead() || player4.IsDead()) { isEndFlag = true; } }