Ejemplo n.º 1
0
    // 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();
    }
Ejemplo n.º 2
0
    // 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();
    }