You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user