Ejemplo n.º 1
0
    private IEnumerator FireAlarm()
    {
        playerMovement.enabled = false;

        yield return(new WaitForSeconds(1.5f));

        messagePanel.SetMessage("zgłoszono podpalenie ściany");
        messagePanel.Visible(true);

        yield return(new WaitForSeconds(4f));

        messagePanel.SetMessage("Założ helm, i ubrania klikając na przedmioty żeby ugasić pożar");

        fire.Activation();

        currentTime = timeOnMission;

        missionStarted = true;


        yield return(new WaitForSeconds(4f));

        messagePanel.SetMessage("Poruszanie wsad lub strzałkami, użycie gasnicy spacją");

        yield return(new WaitForSeconds(4f));

        messagePanel.Visible(false);
        fire.firePanel.gameObject.SetActive(true);
        playerMovement.enabled = true;

        StartCoroutine(ShowItems());
    }