public CountUpModeScreen(CountUp countUp) : base(countUp) { GuiComponents.Add(new PointsPerDartComponent(countUp)); GuiComponents.Add(new BigScoreComponent(countUp)); GuiComponents.Add(new RoundScoresComponent(countUp)); }
private void button1_Click(object sender, EventArgs e) // button1 = restart button { restart(); CountUp.Stop(); Seconds_count = 0; CountUp.Start(); }
// Start is called before the first frame update void Start() { FadeManager.FadeIn(); InHouse = false; Warn.enabled = false; KeyGetted = false; //変数の初期化 Key = false; //イベント1確認bool MissionComprete = false; //イベント2確認bool KeyGetted = false; //イベント2テキスト非表示 Event2Text.gameObject.SetActive(false); Mission1inti(); Mission2inti(); //カメラのコンポーネントを取得 camScript = freelookCam.GetComponent <Axis>(); StringTime = StopWatch.GetComponent <CountUp>(); //debugのCanvasを取得 DebugLog = DebugCanvas.GetComponent <Canvas>(); if (isDebugMode == true) { DebugLog.enabled = true; } else { DebugLog.enabled = false; } audiosource.Play(); }
public Form1() { InitializeComponent(); SetImagesArray(); CountUp.Start(); }
private void CountUp_Tick(object sender, EventArgs e) { ShowSeconds.Text = Seconds_count.ToString() + " Seconds"; Seconds_count++; if (m_Count == 8) { CountUp.Stop(); } }
static void Main() { CountDown cd = new CountDown(10); CountUp cu = new CountUp(8); int i; do { i = cd.Count(); Console.Write(i + " "); } while (i > 0); Console.WriteLine(); do { i = cu.Count(); Console.Write(i + " "); } while (i < cu.Target); }
public void TestNextPlayer() { var countUp = new CountUp(3); Assert.AreEqual(0, countUp.CurrentPlayerIndex); Assert.AreEqual(0, countUp.CurrentRoundIndex); countUp.NextPlayer(); Assert.AreEqual(1, countUp.CurrentPlayerIndex); Assert.AreEqual(0, countUp.CurrentRoundIndex); countUp.NextPlayer(); Assert.AreEqual(2, countUp.CurrentPlayerIndex); Assert.AreEqual(0, countUp.CurrentRoundIndex); countUp.NextPlayer(); Assert.AreEqual(0, countUp.CurrentPlayerIndex); Assert.AreEqual(1, countUp.CurrentRoundIndex); countUp.NextPlayer(); Assert.AreEqual(1, countUp.CurrentPlayerIndex); Assert.AreEqual(1, countUp.CurrentRoundIndex); }
public override string ToString() { sb.Clear(); sb.Append("Networks (").Append(CountUp.ToString()).Append("/").Append(Count.ToString()).Append(")"); return(sb.ToString()); }