Hello,
I am new to multiplayer in unity and i have one problem i want to make function witch will swap positions of two players, but i dont know how.
Any Ideas?
I am using Photon multiplayer in 2D.
Hello,
I am new to multiplayer in unity and i have one problem i want to make function witch will swap positions of two players, but i dont know how.
Any Ideas?
I am using Photon multiplayer in 2D.
Make a Vector3 temp; temp=player1.transform.position; player1.transform.position=player2.transform.position;
player2.transform.position=temp;