Пример #1
0
    // Update is called once per frame
    void Update()
    {
        if (m_timer != null)
        {
            m_timerText.text = m_timer.GetTimeLeftString();
        }

        CheckEndGame();

        if (m_isGameOver)
        {
            Debug.Log("Targets hit: " + m_numHits);
            Debug.Log("Fire shots: " + m_numFireShots);
            m_isGameOver        = false;
            m_timerText.enabled = false;
            LoadScene("GameOver_scene");
        }
    }