Ejemplo n.º 1
0
 private void Update()
 {
     if (m_scribbler != null && m_scribbler.ScribblingComplete())
     {
         Destroy(gameObject);
     }
 }
Ejemplo n.º 2
0
    private void Update()
    {
        if (IsInvincible())
        {
            m_iFramesRemaining -= Time.deltaTime;
        }

        if (m_scribbler.ScribblingComplete())
        {
            m_gameOverScreen.SetActive(true);

            if (Input.GetKeyDown(KeyCode.Space))
            {
                SceneManager.LoadScene(1, LoadSceneMode.Single);
            }
        }
    }