Abdul Mukheem Shaik 35fcbc1e24 initial commit
2024-11-06 18:38:19 +01:00

13 lines
250 B
C#

using UnityEngine;
public class Fracture : MonoBehaviour
{
public GameObject fracturedObject;
public void Destroy()
{
Instantiate(fracturedObject, transform.position, transform.rotation);
Destroy(gameObject);
}
}