BenchMarkScore.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using UnityEngine;
  3. using wf;
  4. public class BenchMarkScore : PartsMgrBase
  5. {
  6. public static int BenchScore { get; private set; }
  7. protected override void Start()
  8. {
  9. base.Start();
  10. base.gameObject.SetActive(base.IsActive);
  11. }
  12. private void Update()
  13. {
  14. if (this.m_CountStart)
  15. {
  16. this.m_BenchScore++;
  17. }
  18. this.m_ScoreLabel.text = Utility.ConvertMoneyText(this.m_BenchScore);
  19. }
  20. public override void StartAction()
  21. {
  22. this.m_CountStart = true;
  23. }
  24. public override void EndAction()
  25. {
  26. BenchMarkScore.BenchScore = this.m_BenchScore;
  27. Func<bool, string> func = (bool condition) => (!condition) ? "Off" : "On";
  28. Result_Display.SetResultData("BenchScore", Utility.ConvertMoneyText(this.m_BenchScore), Result_Display.ResultType.String);
  29. string str = (!BenchSetting.Setting.IsFullScreen) ? "Window" : "FullScreen";
  30. Result_Display.SetResultData("Screen", "スクリーンモード:" + str, Result_Display.ResultType.String);
  31. Result_Display.SetResultData("Resolution", string.Concat(new object[]
  32. {
  33. "画面解像度:",
  34. BenchSetting.Setting.ResolutionX,
  35. "x",
  36. BenchSetting.Setting.ResolutionY
  37. }), Result_Display.ResultType.String);
  38. Result_Display.SetResultData("Antialiasing", "アンチエイリアス:" + BenchSetting.Setting.Antialiasing.ToString(), Result_Display.ResultType.String);
  39. Result_Display.SetResultData("ShadowQuality", "影のクオリティ:" + BenchSetting.Setting.ShadowQuality.ToString(), Result_Display.ResultType.String);
  40. Result_Display.SetResultData("TextureQuality", "テクスチャクオリティ:" + BenchSetting.Setting.TextureQuality.ToString(), Result_Display.ResultType.String);
  41. Result_Display.SetResultData("Bloom", "ブルーム:" + BenchSetting.Setting.BloomValue.ToString(), Result_Display.ResultType.String);
  42. Result_Display.SetResultData("DepthofField", "被写界深度:" + func(BenchSetting.Setting.DepthFieldOn), Result_Display.ResultType.String);
  43. Result_Display.SetResultData("CutinProduct", "カットイン演出:" + Appeal_Mgr.GradeTostring(BenchSetting.Setting.CutInGrade), Result_Display.ResultType.String);
  44. Result_Display.SetResultData("NoteSePlay", "ノートSE再生:" + func(BenchSetting.Setting.NoteSePlay), Result_Display.ResultType.String);
  45. }
  46. [SerializeField]
  47. private UILabel m_ScoreLabel;
  48. private bool m_CountStart;
  49. private int m_BenchScore;
  50. }