/ / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 / /   U T A G E :   U n i t y   T e x t   A d v e n t u r e   G a m e   E n g i n e 
 / /   C o p y r i g h t   2 0 1 4   R y o h e i   T o k i m u r a 
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 u s i n g   S y s t e m . I O ; 
 u s i n g   S y s t e m . C o l l e c t i o n s ; 
 u s i n g   S y s t e m . C o l l e c t i o n s . G e n e r i c ; 
 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 . E v e n t s ; 
 u s i n g   U n i t y E n g i n e . E v e n t S y s t e m s ; 
 u s i n g   S y s t e m ; 
 u s i n g   S y s t e m . T e x t . R e g u l a r E x p r e s s i o n s ; 
 u s i n g   l i v e 2 d ; 
 u s i n g   l i v e 2 d . f r a m e w o r k ; 
 
 n a m e s p a c e   U t a g e 
 { 
 	 [ A d d C o m p o n e n t M e n u ( " U t a g e / L i v e 2 D / L i v e 2 D F o r U t a g e " ) ] 
 	 p u b l i c   c l a s s   L i v e 2 D F o r U t a g e   :   M o n o B e h a v i o u r 
 	 { 
 	 	 p u b l i c   L i v e 2 D S e t t i n g s   S e t t i n g s   {   g e t   {   r e t u r n   s e t t i n g s ;   }   } 
 	 	 [ S e r i a l i z e F i e l d ] 
 	 	 L i v e 2 D S e t t i n g s   s e t t i n g s ; 
 
 	 	 c o n s t   s t r i n g   F i l e T y p e   =   " L i v e 2 D " ; 
 	 	 c o n s t   s t r i n g   F i l e T y p e S c r a t c h   =   " L i v e 2 D S c r a t c h " ; 
 	 	 p u b l i c   s t r i n g   r o o t D i r   =   " L i v e 2 D " ; 
 
 	 	 s t a t i c   p u b l i c   L i v e 2 D F o r U t a g e   G e t I n s t a n c e ( ) 
 	 	 { 
 	 	 	 i f   ( i n s t a n c e   = =   n u l l ) 
 	 	 	 { 
 	 	 	 	 i n s t a n c e   =   F i n d O b j e c t O f T y p e < L i v e 2 D F o r U t a g e > ( ) ; 
 	 	 	 } 
 	 	 	 r e t u r n   i n s t a n c e ; 
 	 	 } 
 	 	 s t a t i c   L i v e 2 D F o r U t a g e   i n s t a n c e ; 
 
 	 	 v o i d   A w a k e ( ) 
 	 	 { 
 	 	 	 L i v e 2 D . i n i t ( ) ; 
 
 	 	 	 A s s e t F i l e M a n a g e r . A d d A s s e t F i l e T y p e E x t e n s i o n s (   A s s e t F i l e T y p e . T e x t ,   n e w   s t r i n g [ ]   { " . j s o n " }   ) ; 
 	 	 	 A s s e t F i l e M a n a g e r . A d d A s s e t F i l e T y p e E x t e n s i o n s ( A s s e t F i l e T y p e . B y t e s ,   n e w   s t r i n g [ ]   {   " . b y t e s "   } ) ; 
 	 	 	 A s s e t F i l e M a n a g e r . A d d A s s e t F i l e T y p e E x t e n s i o n s ( A s s e t F i l e T y p e . B y t e s ,   n e w   s t r i n g [ ]   {   " . m o c "   } ) ; 
 	 	 	 A s s e t F i l e M a n a g e r . A d d A s s e t F i l e T y p e E x t e n s i o n s ( A s s e t F i l e T y p e . B y t e s ,   n e w   s t r i n g [ ]   {   " . m t n "   } ) ; 
 	 	 	 A d v G r a p h i c O b j e c t F a c t o r y . C a l l b a c k C r e a t e C u s t o m   + =   O n C r e a t e C u s t o m G r a p h i c O b j e c t ; 
 
 	 	 	 A d v C h a r a c t e r S e t t i n g D a t a . C a l l b a c k P a r s e C u s t o m F i l e T y p e R o o t D i r   + =   O n P a r s e R o o t D i r ; 
 	 	 	 A d v T e x t u r e S e t t i n g D a t a . C a l l b a c k P a r s e C u s t o m F i l e T y p e R o o t D i r   + =   O n P a r s e R o o t D i r ; 
 	 	 	 G r a p h i c I n f o L i s t . C a l l b a c k P a r s e C u s t o m F i l e T y p e L o a d S u b f i l e s   + =   O n P a r s e C u s t o m F i l e T y p e L o a d S u b f i l e s ; 
 	 	 } 
 
 	 	 / / rꁪ0000000\ObY00_00n0000000
 	 	 / / rk00000W0_0D000000000n0000000n0W`0Q0\ObY00p0D0D0
 	 	 v o i d   O n C r e a t e C u s t o m G r a p h i c O b j e c t ( s t r i n g   f i l e T y p e ,   r e f   T y p e   t y p e ) 
 	 	 { 
 	 	 	 i f   ( f i l e T y p e   = =   F i l e T y p e )   t y p e   =   t y p e o f ( A d v G r a p h i c O b j e c t L i v e 2 D ) ; 
 	 	 	 i f   ( f i l e T y p e   = =   F i l e T y p e S c r a t c h )   t y p e   =   t y p e o f ( A d v G r a p h i c O b j e c t L i v e 2 D ) ; 
 	 	 } 
 
 	 	 / / rk00000W0_0D00000000n000000000000c[
 	 	 v o i d   O n P a r s e R o o t D i r ( s t r i n g   f i l e T y p e ,   r e f   s t r i n g   r o o t D i r ) 
 	 	 { 
 	 	 	 i f   ( f i l e T y p e   = =   F i l e T y p e )   r o o t D i r   =   t h i s . r o o t D i r ; 
 	 	 	 i f   ( f i l e T y p e   = =   F i l e T y p e S c r a t c h )   r o o t D i r   =   t h i s . r o o t D i r ; 
 	 	 } 
 
 	 	 / / rk00000W0_0D00000000n00000B}NQt0{v2
 	 	 v o i d   O n P a r s e C u s t o m F i l e T y p e L o a d S u b f i l e s ( s t r i n g   f i l e T y p e ,   r e f   A s s e t F i l e E v e n t   o n L o a d S u b f i l e s ) 
 	 	 { 
 	 	 	 i f   ( f i l e T y p e   = =   F i l e T y p e )   o n L o a d S u b f i l e s   =   O n L o a d S u b f i l e s ; 
 	 	 } 
 
 	 	 / / /   < s u m m a r y > 
 	 	 / / /   m o d e l . j s o n n0000v_k00_j00000k0Rg0000Qt0K0Q00
 	 	 / / /   < / s u m m a r y > 
 	 	 v o i d   O n L o a d S u b f i l e s ( A s s e t F i l e   f i l e ) 
 	 	 { 
 	 	 	 L i v e 2 D M o d e l D a t a . A d d S u b F i l e s ( t h i s . S e t t i n g s ,   f i l e ) ; 
 	 	 } 
 
 	 } 
 } 
 