Beispiel #1
0
        protected override void OnStart()
        {
            var arg      = this.GetArgments();
            var distance = float.Parse(arg.args[1]);

            this.Distance.text = $"走行距離:{RaceArea.FormatDistance(distance)}";
            this.Star.text     = $"獲得スター数:{float.Parse(arg.args[2])}個";
            this.Score.text    = $"{arg.args[4]}pt";
            Map.AreaName.Get(arg.args[5], (text) => { this.AreaName.text = text; });
            StartCoroutine(setScoreResultCoroutine());
            BgmManager.Instance.Play(Sound.BgmKind.result, 0.0f, 0.0f, false, 1.0f);
        }
Beispiel #2
0
 public Ratio(RaceArea area, float ratio, float endTime) : base(endTime)
 {
     this.area  = area;
     this.ratio = ratio;
 }