- Home /
Question by
anilsadio · Sep 30, 2019 at 01:34 PM ·
2dmultiplayerphoton
Photon master problem on object
Hi,
I'm making a 2d soccer game. Only master can shoot and push the ball, so I've tried the master transfer but ball looks laggy and who touches, its pulling the ball to itself. How can I fix this?
Comment
Hey can you please be a bit more detailed in your description? What is your current status? how do you solve it at the moment code wise?
Please put in some effort and write more than just 2 line about your problem...
I wrote master but its my mistake. I'm doing ownership transfer. Let me share the code with you.
I'm doing this in ontriggerenter2d:
target = collision.gameObject.GetComponent(); target.GetComponent().RequestOwnership(); target.GetComponent().Owner);
I've tried to fix with this its not worked properly. Only owner can moves the ball.