public void Update(GameTime gameTime) { float delta = (float)gameTime.ElapsedGameTime.TotalSeconds; particleManager.Update(delta); Tmotion.Update(gameTime); Smotion.Update(gameTime); Rmotion.Update(gameTime); MotionUpdate(); if (Input.GetKeyState(Keys.Space)) { cnt++; if (cnt >= 10) { if (particleManager.IsCount(20)) { switch (sentakucnt) { case 0: particleManager.Circle2("star", new Vector2(475, 525), 0, 360, 1, 0.1f, 1, 1, 0.1f, 100, 200, Color.Yellow); break; case 1: particleManager.Circle2("star", new Vector2(960, 525), 0, 360, 1, 0.1f, 1, 1, 0.1f, 100, 200, Color.Yellow); break; case 2: particleManager.Circle2("star", new Vector2(1445, 525), 0, 360, 1, 0.1f, 1, 1, 0.1f, 100, 200, Color.Yellow); break; } } } if (cnt >= 60) { switch (sentakucnt) { case 0: if (StageState.isClear) { if (StageState.stageStage == 5) { if (StageState.worldsStage == 3) { StageState.isClear = false; nextscene = Scene.Select1; } else { StageState.stageStage = 1; StageState.worldsStage += 1; } } else { StageState.stageStage += 1; } } nextscene = Scene.GamePlay; sound.PlaySE("kettei"); isEndFlag = true; break; case 1: nextscene = Scene.Select1; sound.PlaySE("kettei"); isEndFlag = true; break; case 2: nextscene = Scene.Title; sound.PlaySE("kettei"); isEndFlag = true; break; } cnt = 0; } } if (Input.IsKeyUp(Keys.Space)) { sound.PlaySE("sentaku"); sentakucnt += 1; cnt = 0; } if (sentakucnt > 2) { sentakucnt = 0; } if (Input.GetKeyState(Keys.Space)) { } }