Question by
MSachs · Jan 23, 2018 at 12:08 PM ·
scripting problemvector3movetowards
how can I "play" the whole MoveTowards sequence after one click?
Hi
I have 4 gameobjects and a camera with a target. I want that clicking on one of the gameobjects triggers a move towards function so the target centers on the clicked gameobject. It basically works but after clicking it doesn't "play" the whole movetowards sequence . It only does that if I stay with the cursor over the object and hold the mousebutton. What causes this? I already tried GetMouseButton and GetMouseButtonDown with the same effect....
thanks in advance
Comment