コード例 #1
0
 public void CountDownTick()
 {
     countDownTimer += Time.deltaTime;
     if (countDownTimer >= countdown_NumberTime)
     {
         countDownTimer = 0f;
         countDownCurrNumber--;
         countdownText.text = countDownCurrNumber.ToString();
         //Trigger Animation of countdownText
         if (countDownCurrNumber == 1)
         {
             //StartGame for spawning Animation
             myLumberJack.StartGame();
         }
         if (countDownCurrNumber <= 0)
         {
             StartLvl();
         }
     }
 }