14 lines
301 B
C#
14 lines
301 B
C#
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
|
|
}
|
|
}
|