Example #1
0
    void FixedUpdate()
    {
        timeElapsed.text = "TIME ELAPSED: " + (int)(Time.time - selector.startTime);
        float theTimeLeft = selector.MinTowerTime();

        if (theTimeLeft > 1000)
        {
            timeLeft.text = "NO TOWER";
        }
        else
        {
            timeLeft.text = "TIME LEFT: " + (int)(theTimeLeft);
        }
    }