u s i n g   U n i t y E n g i n e ; 
 
 u s i n g   U n i t y E n g i n e . U I ; 
 
 # i f   L o c a l i z a t i o n _ y g 
 
 u s i n g   Y G . U t i l s . L a n g ; 
 
 # e n d i f 
 
 # i f   T M P _ Y G 2 
 
 u s i n g   T M P r o ; 
 
 # e n d i f 
 
 
 
 n a m e s p a c e   Y G 
 
 { 
 
         p u b l i c   c l a s s   G e t P l a y e r Y G   :   M o n o B e h a v i o u r 
 
         { 
 
                 p u b l i c   T e x t   p l a y e r N a m e T e x t ; 
 
                 p u b l i c   I m a g e L o a d Y G   p h o t o I m a g e L o a d ; 
 
 # i f   T M P _ Y G 2 
 
                 p u b l i c   T M P _ T e x t   p l a y e r N a m e T M P ; 
 
 # e n d i f 
 
                 p u b l i c   T e x t u r e 2 D   u n a u t h o r i z e d T e x t u r e ; 
 
 
 
                 p r i v a t e   v o i d   O n E n a b l e ( ) 
 
                 { 
 
                         Y G 2 . o n G e t S D K D a t a   + =   D r a w P l a y e r D a t a ; 
 
 # i f   L o c a l i z a t i o n _ y g 
 
                         Y G 2 . o n S w i t c h L a n g   + =   D r a w N a m e ; 
 
 # e n d i f 
 
                         i f   ( Y G 2 . i s S D K E n a b l e d ) 
 
                                 D r a w P l a y e r D a t a ( ) ; 
 
                 } 
 
 
 
                 p r i v a t e   v o i d   O n D i s a b l e ( ) 
 
                 { 
 
                         Y G 2 . o n G e t S D K D a t a   - =   D r a w P l a y e r D a t a ; 
 
 # i f   L o c a l i z a t i o n _ y g 
 
                         Y G 2 . o n S w i t c h L a n g   - =   D r a w N a m e ; 
 
 # e n d i f 
 
                 } 
 
 
 
                 p r i v a t e   v o i d   D r a w P l a y e r D a t a ( ) 
 
                 { 
 
                         D r a w P h o t o ( ) ; 
 
 # i f   L o c a l i z a t i o n _ y g 
 
                         D r a w N a m e ( Y G 2 . l a n g ) ; 
 
 # e l s e 
 
                         D r a w N a m e ( s t r i n g . E m p t y ) ; 
 
 # e n d i f 
 
                 } 
 
 
 
                 p r i v a t e   v o i d   D r a w P h o t o ( ) 
 
                 { 
 
                         i f   ( p h o t o I m a g e L o a d   ! =   n u l l   & &   Y G 2 . p l a y e r . a u t h ) 
 
                         { 
 
                                 p h o t o I m a g e L o a d . L o a d ( Y G 2 . p l a y e r . p h o t o ) ; 
 
                         } 
 
                         e l s e   i f   ( u n a u t h o r i z e d T e x t u r e ) 
 
                         { 
 
                                 p h o t o I m a g e L o a d . S e t T e x t u r e ( u n a u t h o r i z e d T e x t u r e ) ; 
 
                         } 
 
                 } 
 
 
 
                 p u b l i c   v o i d   D r a w N a m e ( s t r i n g   l a n g ) 
 
                 { 
 
                         i f   ( p l a y e r N a m e T e x t   ! =   n u l l ) 
 
                         { 
 
 # i f   L o c a l i z a t i o n _ y g 
 
                                 i f   ( Y G 2 . p l a y e r . n a m e   = =   " u n a u t h o r i z e d " ) 
 
                                         p l a y e r N a m e T e x t . t e x t   =   U t i l s L a n g . U n a u t h o r i z e d T e x t T r a n s l a t e ( l a n g ) ; 
 
                                 e l s e   i f   ( Y G 2 . p l a y e r . n a m e   = =   I n f o Y G . A N O N Y M O U S ) 
 
                                         p l a y e r N a m e T e x t . t e x t   =   U t i l s L a n g . I s H i d d e n T e x t T r a n s l a t e ( l a n g ) ; 
 
                                 e l s e 
 
                                         p l a y e r N a m e T e x t . t e x t   =   Y G 2 . p l a y e r . n a m e ; 
 
 # e l s e 
 
                                         p l a y e r N a m e T e x t . t e x t   =   Y G 2 . p l a y e r . n a m e ; 
 
 # e n d i f 
 
                         } 
 
 # i f   T M P _ Y G 2 
 
                         i f   ( p l a y e r N a m e T M P   ! =   n u l l ) 
 
                         { 
 
 # i f   L o c a l i z a t i o n _ y g 
 
                                 i f   ( Y G 2 . p l a y e r . n a m e   = =   " u n a u t h o r i z e d " ) 
 
                                         p l a y e r N a m e T M P . t e x t   =   U t i l s L a n g . U n a u t h o r i z e d T e x t T r a n s l a t e ( l a n g ) ; 
 
                                 e l s e   i f   ( Y G 2 . p l a y e r . n a m e   = =   I n f o Y G . A N O N Y M O U S ) 
 
                                         p l a y e r N a m e T M P . t e x t   =   U t i l s L a n g . I s H i d d e n T e x t T r a n s l a t e ( l a n g ) ; 
 
                                 e l s e 
 
                                         p l a y e r N a m e T M P . t e x t   =   Y G 2 . p l a y e r . n a m e ; 
 
 # e l s e 
 
                                         p l a y e r N a m e T M P . t e x t   =   Y G 2 . p l a y e r . n a m e ; 
 
 # e n d i f 
 
                         } 
 
 # e n d i f 
 
                 } 
 
         } 
 
 } 
 
 