FantasyAsset/Assets/SpawnHitVFX.cs
TG9six bb58f5ed86 Visual Changes
Added NPCs for wave, added animations, added impact vfx for fireball
2025-09-02 20:39:37 +04:00

16 lines
403 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpawnHitVFX : MonoBehaviour
{
public GameObject ImpactPrefab;
public GameObject go;
// Start is called before the first frame update
public void Impact()
{
var impact = Instantiate(ImpactPrefab, go.transform.position, Quaternion.Euler(0, 0, 0));
Destroy(impact, 2);
}
}