/// <summary> /// 初期化関数 /// </summary> void InitPause() { //フラグ初期化 m_bPause = false; //キャンバス非表示に m_PauseScreen.enabled = false; //拡大縮小OFF PauseText.enabled = false; //ポーズ設定 //難易度表示 LevelText.text = "Level:"; switch (LevelCon.GetCurLevel()) { case 0: LevelText.text += "Easy"; break; case 1: LevelText.text += "Normal"; break; case 2: LevelText.text += "Hard"; break; case 3: LevelText.text += "Nightmare"; break; } //最高記録セット if (GameModeController.Instance.GetGameMode() == (int)GameModeController._GameMode.TIME_ATTACK) { RecordTime.text = "最高記録:" + TimerConverter.Convert(LevelCon.GetRecord(LevelCon.GetCurLevel())); } else { RecordTime.enabled = false; } }
public void CreateTimerFromXml() { IEntityConverter<Timer> converter = new TimerConverter(); string data = @"<?xml version=""1.0"" encoding=""UTF-8""?> <tracker> <tracking-time-entry> <since type=""datetime"">2009-06-30T21:01:51+02:00</since> <minutes type=""integer"">0</minutes> <id type=""integer"">1895567</id> </tracking-time-entry> <stopped-time-entry> <minutes type=""integer"">1</minutes> <id type=""integer"">1895560</id> </stopped-time-entry> </tracker>"; Timer timer = converter.Convert(data); Assert.That(timer.StoppedTimer.Minutes, Is.EqualTo(1)); }