- Home /
Question by
Gamer98898 · Oct 09, 2019 at 08:51 AM ·
photonmultiplayer-networking
In multiplayer game using Photon in Unity ?
In Multiplayer Cricket Game , A Gameobject Named "Bowlerthrowposition" Moving with the help of joystic (up,down,right,left) as well Syncing in other device too. Once Ist Inning is over then there is button on which i have implemented Swapping Batting or Balling controls Function . I dont know what is going on After clicking On button Then Bowlerthrowposition is not moving . Here it is my code...Guys any help would be appriciated
void UpdateSelectedSpot()
{
int xVal = Mathf.RoundToInt(joyStick.InputDirection.x);
int yVal = Mathf.RoundToInt(joyStick.InputDirection.y);
selectedSpotTransform = GameObject.Find("SP" + xVal + yVal).transform;
}
Void Update ()
{
UpdateSelectedSpot();
}
Comment
Your answer
