Example #1
0
 private void ExecuteInpute(ClientInput inputData)
 {
     if (inputData.ClinetID == clientInstance.LocalPort)
     {
         Debug.Log("[YOU]  inputed>" + inputData.ToString());
     }
     else
     {
         Debug.Log("[OTHER]  inputed>" + inputData.ToString());
     }
 }
Example #2
0
 public static byte[] Serialize(ClientInput input)
 {
     byte[] buf = System.Text.Encoding.ASCII.GetBytes(input.ToString());
     return(buf);
 }