private void interactTV(TempPlayer player) { var living = GameObject.Find("Living"); AudioManager.Instance.PlayFX("Susto"); living.GetComponent <RandomizeColor>().TurnOff(); player.AlowInteracting(); }
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(); }
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(); }