Spaces:
Runtime error
Runtime error
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SpawnFX : MonoBehaviour | |
{ | |
public Transform VFXPrefab; | |
private void OnDestroy() | |
{ | |
Instantiate(VFXPrefab, transform.position, Quaternion.identity); | |
} | |
} |