public void UseCell(Cell cell) { if (Program.lobby.mainPlayer.shoot && shipChance == 0) { byte[] shot = CommandConverter.ShotToBytes(2, new int[] { cell.Position.X, cell.Position.Y }); Program.lobby.Send(shot); Program.lobby.mainPlayer.shoot = false; } }
public void UseChat(InputField field) { Program.lobby.Send(CommandConverter.StringToBytes($"{Program.lobby.mainPlayer.nikName}: {field.Text}")); }