Proof (morphism between projective varieties descends to morphism between affine patches)

Let $f: X\to Y$ be a morphism between irreducible projective varieties. The affine patches $X_0$ and $Y_0$ are also irreducible. Because for any $P\in X_0$, $f$ induces a map $O_{Y,f(P)}\to O_{X,P}$ between local rings and $O_{X,P}\isom O_{X_0,P}$, $O_{Y,f(P)}\isom O_{Y_0,f(P)}$, the restriction $f: X_0\to Y_0$ still preserves local rings. Therefore $f$ is a morphism of affine varieties.