Ejemplo n.º 1
0
    private IEnumerator Die()
    {
        im.ClearInventory();
        im.enabled = false;
        pm.enabled = false;
        rs.SetUnits(4);
        Screen.SetResolution(800, 800, false);
        anim.Play("Death");
        yield return(new WaitForSeconds(1.5f));

        DiedPanel.SetActive(true);
        canRestart = true;
    }