BombLengthCube.cs 260 B

12345678910111213141516171819202122
  1. using UnityEngine;
  2. using System.Collections;
  3. public class BombLengthCube : MonoBehaviour {
  4. void Start () {
  5. }
  6. void Update () {
  7. }
  8. void OnTriggerEnter(Collider other) {
  9. if (other.CompareTag ("Player")) {
  10. Destroy (gameObject);
  11. }
  12. }
  13. }