Exemplo n.º 1
0
    private void interactTV(TempPlayer player)
    {
        var living = GameObject.Find("Living");

        AudioManager.Instance.PlayFX("Susto");
        living.GetComponent <RandomizeColor>().TurnOff();
        player.AlowInteracting();
    }
Exemplo n.º 2
0
    private void activeLevel(string levelName, TempPlayer player)
    {
        var currentLvl = levels.Select(x => x).FirstOrDefault(x => x.Active == true);

        currentLvl.Active = false;
        currentLvl.LevelObject.SetActive(false);

        var newLvl = levels.Select(x => x).FirstOrDefault(x => x.Key == levelName);

        newLvl.Active = true;
        newLvl.LevelObject.SetActive(true);

        player?.AlowInteracting();
    }
Exemplo n.º 3
0
    private void interactDog(TempPlayer player)
    {
        if (interactuoConAlfombra)
        {
            var living = GameObject.Find("Portico");

            living.GetComponent <PorticoGameplay>().PararPerro();
            //player.AlowInteracting();
        }
        else
        {
            TextManager.Instance.LoadSequence(player, Constants.TextSequences.POE_DIALOGO);
            AudioManager.Instance.PlayFX("Dog");
        }
        player.AlowInteracting();
    }