void Update() { if (d > 0) { d -= Time.deltaTime; if (d <= 0) { this.particleSystem.Stop(true); CFX_Demo_Translate translation = this.gameObject.GetComponent <CFX_Demo_Translate>(); if (translation != null) { translation.enabled = false; } } } }
void Update() { if (d > 0) { d -= Time.deltaTime * GameManager.TimeMultipler; if (d <= 0) { this.GetComponent <ParticleSystem>().Stop(true); CFX_Demo_Translate translation = this.gameObject.GetComponent <CFX_Demo_Translate>(); if (translation != null) { translation.enabled = false; } } } }