Question by
marcosvfariass · Sep 28, 2020 at 10:47 AM ·
move an objectobject referenceobject movement
I want to create an object that only moves if i click in others 4 objects that i have in the scene
so, i have this main object that i want to move but only if i click in another object, and it moves towards the object that i am clicking. i have four objects and the main object,I don't want the object to move if click in any place of the scene, only if i click in the objects but i dont know how to do it
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613012426im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I make text move up? 1 Answer
Object Manipulation and a foreign object 0 Answers
How to Move Healthbar with Player after Spawning with NetworkManager 0 Answers
(yet another) error CS0120: An object reference is required to access non-static member 2 Answers
prefab lose script reference when is instantiated at run time 0 Answers