internal void PlayDead(dead k) { sourceNarrator.clip = clipsNar[(int)k]; sourceNarrator.Play(); sourcePlayer.clip = clipsPlayer[(int)k]; sourcePlayer.Play(); }
//0 Defib OK //1 Poison OK //2 Rayon X OK //3 Perf OK //4 Cape OK //5 Ascenseur //6 Lit OK public void Dead(dead k) { Debug.Log(k); show.AddScore(); anim.SetTrigger("Death"); soundPlayer.PlayDead(k); }
// Use this for initialization void Start() { enemy = GameObject.Find("enemy"); d = enemy.GetComponent <dead>(); }
void Start() { dd = GameObject.FindGameObjectWithTag("Player").GetComponent <dead>(); }
//public playerdead pd; // Use this for initialization void Start() { //enemy = GameObject.Find("enemy"); //Debug.Log("www"); d = enemy.GetComponent <dead>(); }