Dossier complet
This commit is contained in:
13
Droid 2/Assets/Rocket.cs
Normal file
13
Droid 2/Assets/Rocket.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user