For your example we'd have by linearity of expectation that
$$\Bbb E(X+Y+T_X+T_Y) = \Bbb E(X) + \Bbb E(Y) + \Bbb E(T_X) + \Bbb E(T_Y).$$
Because $\Bbb E(X) = \Bbb E(Y) = 1/2$ and $\Bbb E(T_X) = \Bbb E(T_Y)$, the result would hence be $1 + 2\,\Bbb E(T_X)$.
Let's calculate $\Bbb E(T_X)$.
We use the law of total expectation.
\begin{align}
\Bbb E(T_X)
&=
\Bbb E(\Bbb E(T_X|X))
\\&= \int_{0}^1 \Bbb E(T_X|X = t)\, dt
\\&= \int_{0}^1 \Bbb E\big(\text{Unif}(0,1-t)\big)\, dt
\\&= \int_{0}^1 \frac {1-t}2\, dt
= \frac14,
\end{align}
which agrees with your simulated result of $1.5$.
In the general case, we may actually apply the law of total expectation multiple times.
Let $T_X$ be the random variable for the $t_x$ and $T_x \sim \text{Unif}(0,1-x)$ be a particular realization of $T_X$ for $X=x$, and similarly for $T_Y$ and $T_y$.
Let's see:
\begin{align}
\Bbb E\Big(f(X,Y,T_X,T_Y)\Big)
&=
\Bbb E\Big(\Bbb E\big(f(X,Y,T_X,T_Y)|X\big)\Big)
\\&= \int_{0}^1 \Bbb E\big(f(X,Y,T_X,T_Y)|X = x\big)\, dx
\\&= \int_{0}^1 \Bbb E\big(f(x,Y,T_x,T_Y)\big)\, dx
\\&= \int_{0}^1 \Bbb E\Big( \Bbb E\big(f(x,Y,T_x,T_Y)|Y\big)\Big)\, dx
\\&= \int_0^1\int_{0}^1 \Bbb E\big(f(x,Y,T_x,T_Y)|Y = y\big)\, dydx
\\&= \int_0^1\int_{0}^1 \Bbb E\big(f(x,y,T_x,T_y)\big)\, dydx
\\&= \int_0^1\int_{0}^1 \Bbb E\Big( \Bbb E\big(f(x,y,T_x,T_y)|T_x\big)\Big)\, dydx
\end{align}
Now, we remind you that the probability density function for $\text{Unif}(0,1-x)$ is $1/(1-x)$.
We continue our derivation.
\begin{align}
\Bbb E\Big(f(X,Y,T_X,T_Y)\Big)
&=
\int_0^1\int_{0}^1\int_0^{1-x} \Bbb E\big(f(x,y,T_x,T_y)|T_x = t_x\big)\frac1{1-x}\, dt_xdydx
\\&=
\int_0^1\int_{0}^1\int_0^{1-x} \Bbb E\big(f(x,y,t_x,T_y)\big)\frac1{1-x}\, dt_xdydx
\\&=
\int_0^1\int_{0}^1\int_0^{1-x}\int_0^{1-y} f(x,y,t_x,t_y)\frac1{1-x}\frac1{1-y}\, dt_ydt_xdydx.
\end{align}
Hence:
$$
\bbox[5px,border:2px solid red]{\Bbb E\Big(f(X,Y,T_X,T_Y)\Big)
=
\int_0^1\int_{0}^1\int_0^{1-x}\int_0^{1-y} \frac{f(x,y,t_x,t_y)}{(1-x)(1-y)}\, dt_ydt_xdydx}
$$
As a sanity check, we have that
$$\int_0^1\int_{0}^1\int_0^{1-x}\int_0^{1-y} \frac{x+y+t_x+t_y}{(1-x)(1-y)}\, dt_ydt_xdydx
= 1.5$$
as you had found.
As a bonus, I calculated the probability density function for $T_X$, but I ended up not using it in the approach above.
Here it is; we start with the cumulative distribution function $F_{T_X}(t)$.
\begin{align}
\Bbb P(T_X\leqslant t)
&=
\int_0^1 \Bbb P(T_X\leqslant t|X=x)\, dx\tag{$*$}
\\&= \int_0^1 \Bbb P(\text{Unif}(0,1-x)\leqslant t)\, dx
\\&= \int_0^{1-t} \Bbb P(\text{Unif}(0,1-x)\leqslant t)\, dx
+ \int_{1-t}^1 \underbrace{\Bbb P(\text{Unif}(0,1-x)\leqslant t)}_1\, dx
\\&= \int_0^{1-t}\frac t{1-x} \,dx + t
= t -t\log(t),
\end{align}
where in $(*)$ we used the law of total probability for continuous distributions.
It follows that probability density function is $f_{T_X}(t) = \frac d {dt}F_{T_X}(t) = -\log(t)$.
simulate
. – Varun Vejalla Jan 08 '20 at 07:33