Exemplo n.º 1
0
    void OnPlayerScored(string optional)
    {
        //Debug.Log("Entering OnPlayerScored");

        if (gameOver)
        {
            return;
        }
        //int timeNow = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;
        //int elapsed = timeNow - startTime;

        score++;
        scoreText.text = score.ToString();
        audioController.AudioOnScore();
        health.UpdateHealth(5f, null);
        //Debug.Log("Exiting OnPlayerScored");
    }