public void ProcessGameOver(NetworkResponse response) { ResponseMatchOver args = response as ResponseMatchOver; int statusResponse = args.status; Debug.Log("MatchOver status: " + statusResponse); }
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); }