Hey I know we haven't talked about this butu i thought a possible effect could be once you pick up a plant the beacon component will appear with an invisible collider and using this code:
function OnTriggerEnter(otherObj: Collider){
if (otherObj.tag == "Player"){
audio.Play();
}
}
function OnTriggerExit(otherObj: Collider){
if (otherObj.tag == "Player"){
audio.Stop();
}
}
we could have a sketchy noise pollution type track play whenever you enter the invisble collider I'm trying to work out if i can make it fade in and out kind of thing so i will update if i do. Found this whilst looking for effects stuff
No comments:
Post a Comment