if gameobject is seen run NoiseEffect.cs
else
if NoiseEffect.cs is runnig turn it off
if NoiseEffect.cs is NOT running do Nothing.
thnax for the help
if gameobject is seen run NoiseEffect.cs
else
if NoiseEffect.cs is runnig turn it off
if NoiseEffect.cs is NOT running do Nothing.
thnax for the help
So you want the noise effect to happen when a certain gameobject is in view, then if the object is in view again it gets turned off? You could try a raycast towards the object with a ‘has seen the object’ counter, so if the object is seen again noise effect is turned off. Sorry if I misunderstood what you mean.
no… when gameobject is not in view then turn off
Check out:
and
and enabling/disabling the NoiseEffect component.