// Use this for initialization void Start() { controller = GetComponent <GameController>(); countDownTimerItem = GetComponentInChildren <CountDownTimer>(); mainTimer = GetComponentInChildren <MainTimerText>(); isPaused = false; roundTimeLeft = roundTime; actionTimeLeft = actionTime; roundTimeHasStarted = false; timerIsOver = false; startCountDownTimer(); }
// Use this for initialization void Start() { controller = GetComponent <SurvivalModeController>(); countDownTimerItem = GetComponentInChildren <CountDownTimer>(); mainTimerText = GetComponentInChildren <MainTimerText>(); survivalModeTotalTimerText = GetComponentInChildren <SurvivalModeTotalTimerText>(); isPaused = false; roundTimeLeft = roundTime; roundTimeHasStarted = false; timerIsOver = false; longestSurvivalGame = PlayerPrefs.GetFloat("LongestSurvivalGame"); startCountDownTimer(); }