Exemplo n.º 1
0
    private void FixedUpdate()
    {
        if (isFallen == true)
        {
            respawn.GoBackToRespawn();
            isFallen = false;
            //Debug.Log("Game lost due to falling out of bounds");
        }

        if (isFound == true)
        {
            respawn.GoBackToRespawn();
            Debug.Log("Game lost due to being in contact with an enemy");
        }

        if (timeLeft.timer <= 0)
        {
            Time.timeScale = 0;
            Debug.Log("Game lost due to no time left");
        }
    }