This commit is contained in:
2024-10-16 00:03:41 +08:00
commit 897058435c
5033 changed files with 1009728 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using UnityEngine;
using System.Collections;
public class ImpactEffect : MonoBehaviour {
private ParticleSystem ps;
// Use this for initialization
void Start () {
ps = GetComponent<ParticleSystem>();
}
// Update is called once per frame
void Update () {
if (!ps.IsAlive()){
Destroy(gameObject);
}
}
}