Пример #1
0
    private void UpdateTimerCount()
    {
        timerCount -= Time.fixedDeltaTime;

        if (timerCount <= endTimerCount)
        {
            canvas.SetTimerCount("");
            enabledTimerCount = !enabledTimerCount;
            enabledTimerLeft  = !enabledTimerLeft;
            inputDetector.SetActiveInputDetector(true);
        }
        else if (timerCount <= 0)
        {
            canvas.SetTimerCount(goText);
        }
        else
        {
            canvas.SetTimerCount(Mathf.CeilToInt(timerCount).ToString());
        }
    }