Question by
cengizt95 · Sep 20, 2015 at 07:20 PM ·
gameobjectmousewithchoose
How can i choose object with mouse ?
OnMouseDown()
{
obj = this.gameObject;
}
with this code i can choose objects with mouse but if i do this i should write different scripts for different objects. This mean there ll be too many script can i do same thing with a few scripts ?
Comment
Your answer
Follow this Question
Related Questions
One script with multiple Gameobject only one Works 0 Answers
Creating a grid that holds objects of different sizes? 0 Answers
I am having problems completing Tutorial Create with Code Lesson 3.3 Don't Just Stand There 0 Answers
Making GameObject move in the direction of my mouse (3d) 0 Answers
Enabling and Disabling a Canvas 1 Answer