Hey,
when player picks up an object, i want to enable image effect (glow) and fade it out in few seconds. I made the script, it changes intensity (with deltaTime) when picking up, but in game glow stays on. Have any ideas?
Thanks for help
function Update() {
if(glow) {
player.GetComponent("GlowEffect").glowIntensity -= Time.deltaTime;
}
}
In component options glow intensity reduces to 0, but in-game it stays on