using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rocket : MonoBehaviour { private void OnTriggerEnter(Collider other) { if(other.tag != "Player" && other.tag != "Floor") Destroy(other.gameObject); // Détruit l'obstacle } }