In this video I'm showing you the process of making any game object or 3D model have destroyed or shattered effect in Unity.
Game Download Link: https://battlesphere.itch.io/battlesp...
Code:
using UnityEngine;
using System.Collections;
using System;
public class TargetDestroyed : MonoBehaviour {
public GameObject destroyedObjectPrefab;
void DestroyTarget(){
Instantiate (destroyedObjectPrefab, transform.position,
transform.rotation);
}
}