- Home /
 
              This post has been wikified, any user with enough reputation can edit it. 
            
 
             
               Question by 
               SS2095 · Mar 14, 2015 at 09:47 AM · 
                multiplayermobilegoogle play gamesrealtime  
              
 
              Google Play games Services Multiplayer
Logging in and Game initialization and room initialization is up and working,but.. The transfer of data between the players seems to be broken and after trying to find the reason this is what i came up with Spawned two prefabs on level start(enemy and player) Player -
 void Update(
 \\handle movement
 MultiplayerController.Instance.SendMyUpdate (transform.position.x, transform.position.y);
 }
 
               Here is my MultiplayerController.cs (segment)
 public void SendMyUpdate(float posx,float posy) {
         _updateMessage.Clear ();
         _updateMessage.AddRange (System.BitConverter.GetBytes (posX));  
         _updateMessage.AddRange (System.BitConverter.GetBytes (posY));  
         byte[] messageToSend = _updateMessage.ToArray(); 
         Debug.Log ("Sending my update message  " + messageToSend + " to all players in the room");
         PlayGamesPlatform.Instance.RealTime.SendMessageToAll (false, messageToSend);
         Debug.Log (messageToSend);
     }
     
 
               The logcat output tells me that in myController.cs the SendMyUpdate() isn't set to a reference of an object. How do i solve this?
               Comment
              
 
               
              can anybody tell me, do I need run my own server or is this included as a service by google?
Your answer