Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

GameObject jump to other clients position at drag

$
0
0
Hi,
I am playing around with UNET and i spawn a "Orange" GameObject, with the correct Collider2D etc.

I have two Clients, #1 and #2. Each client have a GameObject,GO1 and GO2.

After spawning i drag one of the GO's away from the other, all works. If i then, as #1, click and drag from GO2 (#2) the GO1 jumps to that position and drags from there. This is the problem as i want the GO1 only to be dragged when i click and drag on that object.

Here is the code i use, script attached to...

GameObject jump to other clients position at drag

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>