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