prefab not destroying code example
Example: prefab not destroying
public void OnCollisionEnter(Collision nameOfObject)
{
Destroy(nameOfObject.gameObject);
}
public void OnCollisionEnter(Collision nameOfObject)
{
Destroy(nameOfObject.gameObject);
}