12345678910111213141516171819202122 |
- using UnityEngine;
- using System.Collections;
- public class CubeArea : MonoBehaviour {
- // Use this for initialization
- void Start () {
-
- }
-
- // Update is called once per frame
- void Update () {
-
- }
- void OnTriggerEnter(Collider other) {
- if (other.CompareTag("Explosion")) {
- Destroy (gameObject);
- }}
- }
|