예제 #1
0
 public CountUpModeScreen(CountUp countUp)
     : base(countUp)
 {
     GuiComponents.Add(new PointsPerDartComponent(countUp));
     GuiComponents.Add(new BigScoreComponent(countUp));
     GuiComponents.Add(new RoundScoresComponent(countUp));
 }
예제 #2
0
 private void button1_Click(object sender, EventArgs e) // button1 = restart button
 {
     restart();
     CountUp.Stop();
     Seconds_count = 0;
     CountUp.Start();
 }
예제 #3
0
    // 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();
    }
예제 #4
0
        public Form1()
        {
            InitializeComponent();

            SetImagesArray();

            CountUp.Start();
        }
예제 #5
0
        private void CountUp_Tick(object sender, EventArgs e)
        {
            ShowSeconds.Text = Seconds_count.ToString() + " Seconds";
            Seconds_count++;

            if (m_Count == 8)
            {
                CountUp.Stop();
            }
        }
예제 #6
0
    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);
    }
예제 #7
0
        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);
        }
예제 #8
0
 public override string ToString()
 {
     sb.Clear();
     sb.Append("Networks (").Append(CountUp.ToString()).Append("/").Append(Count.ToString()).Append(")");
     return(sb.ToString());
 }