5 lines
451 B
Plaintext
5 lines
451 B
Plaintext
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
|
|
\PYG{n}{GameObject}\PYG{+w}{ }\PYG{n}{targ}\PYG{p}{;}\PYG{+w}{ }\PYG{c+c1}{// assumed not to be null}
|
|
\PYG{n}{Vector3}\PYG{+w}{ }\PYG{n}{screenPos}\PYG{+w}{ }\PYG{o}{=}\PYG{+w}{ }\PYG{n}{Camera}\PYG{p}{.}\PYG{n}{main}\PYG{p}{.}\PYG{n}{WorldToScreenPoint}\PYG{p}{(}\PYG{n}{targ}\PYG{p}{.}\PYG{n}{transform}\PYG{p}{.}\PYG{n}{position}\PYG{p}{);}
|
|
\end{Verbatim}
|