Lesson03
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Broken : MonoBehaviour
{
void OnCollisionEnter(Collision other)
{
if (other.gameObject.tag == "Ball")
{
Destroy(gameObject, 0.2f);
}
}
}