Game Development Reference
In-Depth Information
Note
Alternatively, you could have just created one of the children, added the box collider, du-
plicated it (by navigating to Edit | Duplicate or by pressing Ctrl + D ), and moved it. If
you have to create multiples of the same thing, this is a handy tip to remember.
If you run the project now, then our hero can no longer escape this town on his own.
However, as we want to let him leave, we can add a script to the new Boundary game
object so that when the hero reaches the end of the town, he can leave.
Search WWH ::




Custom Search