ajout Destroy sur trigger

This commit is contained in:
karakune 2016-06-25 16:21:03 -04:00
parent 0259352313
commit 6c53ecf703

View File

@ -55,4 +55,12 @@ public class TileController : MonoBehaviour
}
}
void OnTriggerEnter (Collider other)
{
if (other.tag == "DestroyTrigger")
{
Destroy(this.gameObject);
}
}
}