public void Cutscene() { Player_Mouvement player = Player.GetComponent <Player_Mouvement>(); if (player) { player.Go_again(); } Shoot gun = Gun.GetComponent <Shoot>(); if (gun) { gun.enabled = true; } Boss_Alpha boss = Boss.GetComponent <Boss_Alpha>(); if (boss) { boss.enabled = true; } }
private void OnTriggerEnter2D() { Player_Mouvement player = Player.GetComponent <Player_Mouvement>(); if (player) { player.Go_again(); } Shoot gun = Gun.GetComponent <Shoot>(); if (gun) { gun.enabled = true; } Boss_Omega boss = Boss.GetComponent <Boss_Omega>(); if (boss) { boss.enabled = true; } }