Пример #1
0
        public void CountDown_Callback_Is_Call_When_Timer_Reach_Goal(float _amount)
        {
            bool countDownIsFinished = false;

            Countdown countDown = new Countdown(new Timer(), _amount);

            countDown.OnCountDownFinished = () => countDownIsFinished = true;

            countDown.Add(_amount);

            Assert.IsTrue(countDownIsFinished);
        }
Пример #2
0
 private void Update()
 {
     countdown.Add(Time.deltaTime);
 }