// Update is called once per frame void Update() { if (Explosive.IsEnabled) { FuseTimer -= Time.deltaTime; if (FuseTimer <= 0) { Explosive.TriggerExplosion(); } GetComponent <TrailRenderer>().time = 1.5f; } }
// Update is called once per frame void Update() { if (Explosive.IsEnabled) { FuseTimer -= Time.deltaTime; if (FuseTimer <= 0) { Explosive.TriggerExplosion(); } GetComponent <TrailRenderer>().time = 1.5f; } }