- Home /
Objectives/Goals
Hey Unity-Goers,
Im making a horror game, and im attempting to have objectives. Like when your walking to your house the objective would read, " Goal/Objective : Walk home safely" Then when i get to the house it can either change the text or dissapear completely. Im sure this has something to do with collisons and trigger boxes. But im totally stumped, any help is gratefully appreciated!
Answer by flokkienathur · Aug 25, 2012 at 05:20 PM
Well just make a cube, remove mesh renderer and click on the "is trigger" in the mesh tab. Than attach a script and use the OnTriggerEnter function. Read the documentation for more help on that.
Hope it helps.
I'm not a very good 'script writer' could anyone show me an example script so i can edit it to help me out?
Your answer
![](https://koobas.hobune.stream/wayback/20220613080146im_/https://answers.unity.com/themes/thub/images/avi.jpg)