// Update is called once per frame void Update() { if (isRunning) { lifeTime -= Time.deltaTime; if (lifeTime <= 0) { isRunning = false; parent.kill(); } } }
// Update is called once per frame void Update() { if (isRunning) { lifeTime -= Time.deltaTime; if (lifeTime <= 0) { isRunning = false; parent.kill(); } } }