Exemple #1
0
        public void ProcessGameOver(NetworkResponse response)
        {
            ResponseMatchOver args = response as ResponseMatchOver;
            int statusResponse     = args.status;

            Debug.Log("MatchOver status: " + statusResponse);
        }
Exemple #2
0
        public void ProcessGameOver(NetworkResponse response)
        {
            ResponseMatchOver args           = response as ResponseMatchOver;
            short             statusResponse = args.status;
            int creditsWon = args.creditsWon;

            Debug.Log("MatchOver creditsWon: " + args.creditsWon);
        }
 public static NetworkResponse Parse(MemoryStream dataStream)
 {
     ResponseMatchOver response = new ResponseMatchOver();
     // TODO: update Constants to set server status messages
     response.status = DataReader.ReadShort(dataStream);
     response.creditsWon = DataReader.ReadInt (dataStream);
     return response;
 }
        public static NetworkResponse Parse(MemoryStream dataStream)
        {
            ResponseMatchOver response = new ResponseMatchOver();

            // TODO: update Constants to set server status messages
            response.status     = DataReader.ReadShort(dataStream);
            response.creditsWon = DataReader.ReadInt(dataStream);
            return(response);
        }