Ejemplo n.º 1
0
    private void GameLose()
    {
        endScreenController.OpenEndScreen(false);
        endScreenController.handleGreyIcons(madeTeddy, madeFaint, madeTime);
        joystick.SetActive(false);
        pauseButton.SetActive(false);
        foreach (GameObject ep in enemiesPointer)
        {
            ep.SetActive(false);
        }
        invHolder.SetActive(false);
        doorPointer.SetActive(false);
        bearsPickedup = 0;
        float timeTaken = timer.GetComponent <EngagedTimerController>().truetime;
        int   minute    = (int)(timeTaken / 60f);
        int   seconds   = (int)(timeTaken % 60f);

        endScreenController.timeTakenText.text = minute.ToString("00") + ":" + seconds.ToString("00");
    }