Ejemplo n.º 1
0
    public void ResetValues()
    {
        PlayerScore.text  = PlayerOriginalScore.ToString();
        GameCountdownTime = GameCountdownReset;

        GameCountDown.text  = GameCountdownTime.ToString("0.00");
        GameCountDown.color = BlueColor;
    }
Ejemplo n.º 2
0
    private void Update()
    {
        if (GameController.IsStartGame)
        {
            GameCountdownTime -= Time.deltaTime;
            GameCountDown.text = GameCountdownTime.ToString("0.00");

            if (GameCountdownTime <= GameCountdownReset / 2)
            {
                GameCountDown.color = RedColor;
            }
        }
    }