public void sendMsgToClient(int clientID, ICD.HEADER obj) { byte[] buf = obj.Serialize(); NetworkMgr.GetInst().WriteToClient(clientID, buf); }
public void sendMsgToServer(ICD.HEADER obj) { byte[] buf = obj.Serialize(); NetworkMgr.GetInst().WriteToClient(0, buf); }