public TitleScene(ContentManager content) { this.content = content; backgroundTexture = content.Load<Texture2D>("Scene/Title/title"); startgame1Texture = content.Load<Texture2D>("Scene/Title/gamestart1"); startgame2Texture = content.Load<Texture2D>("Scene/Title/gamestart2"); se = content.Load<SoundEffect>("SE/ok"); bgm = content.Load<Song>("BGM/op"); fadeout = new FadeOut(content); MediaPlayer.IsRepeating = true; MediaPlayer.Play(bgm); //ストップウォッチの初期化 stopwatch.Reset(); }
public ResultScene(ContentManager content,ManagerSet managerSet) { this.content = content; this.managerSet = managerSet; resultDrawer = new ResultDrawer(managerSet.PlayerManager, content); // カメラセッティング camera.FieldOfViewRadian = MathHelper.PiOver4; camera.Target = new Vector3(0.0f, 0.0f, 0.0f); camera.Position = new Vector3(0.0f, 0.0f, 5.0f); LoadContent(content); SetPos(); // 時間測定開始 timer.Start(); fadeout = new FadeOut(content); se = content.Load<SoundEffect>("SE/fanfare"); se.Play(); se = content.Load<SoundEffect>("SE/ok"); }