Esempio n. 1
0
    IEnumerator Mostrar_Falas()
    {
        List <string> aux;

        if (ExplorerManager.Get_Explorer_Manager().cleared_rooms.Count == 3)
        {
            aux = falasVitoria;
        }
        else if (PlayerItemManager.Get_Player_Item_Manager().trapCount == 0)
        {
            aux = falasSemTrap;
        }
        else
        {
            aux = falasIniciais;
        }

        foreach (string s in aux)
        {
            yield return(display_text(s));

            yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.E)));
        }

        dialogCanvas.SetActive(false);
        dialog_active = false;
    }
Esempio n. 2
0
    void Update_Player_New_Room(Vector2 new_pos)
    {
        player.transform.position = new Vector2(
            new_pos.x * player.transform.position.x,
            new_pos.y * player.transform.position.y
            );

        PlayerItemManager.Get_Player_Item_Manager().Reset_Arrows();
    }