|
Hello everyone, I'm quite new with Unity and am starting to build a tower defense. I've set up a few things but now I wonder how I might select something. I need, during the game, to be able to select something and make it do something (ex: select a tower and make it aim at a certain place). But i've yet to figure out what to do and how to do it. I fugure I'd need to use MonoBehaviour (already using this), but that's as far as I got. Anyone can give me any info on that? Thanks!
(comments are locked)
|
|
The OnMouseDown event call of the MonoBehaviour class is your friend ;) Simply attach a collider and a script to your tower object and implement the OnMouseDown function. Thanks, I've just read a few things following your suggestion. Problem is, now, that I can't fathom how to use it. Any ideas?
Feb 27 '12 at 03:28 PM
Herve_Simard
(comments are locked)
|
