Thursday, 26 February 2015

Interactivity - Boundary

So when you shoot bolts at the minute the just stay in the hierarchy so to stop that we are creating a boundary that destroys them
  • create a cube, scale it to the size of the game area then delete the mesh renderer , select is trigger on the box collider 



  • create a new script called destroy by boundary and add it to the boundary cube 
  • write this code 


No comments:

Post a Comment