/ / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 / /   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   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 ; 
 u s i n g   S y s t e m ; 
 
 n a m e s p a c e   U t a g e 
 { 
 
 	 / / /   < s u m m a r y > 
 	 / / /   0000R0fH0_jd0M0n000000h:y
 	 / / /   < / s u m m a r y > 
 	 [ R e q u i r e C o m p o n e n t ( t y p e o f ( F a d e I n O u t ) ) ] 
 	 [ 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 / I n t e r n a l / L i v e 2 D O b j e c t " ) ] 
 	 p u b l i c   c l a s s   L i v e 2 D O b j e c t   :   M o n o B e h a v i o u r 
 	 { 
 	 	 p u b l i c   s t r i n g   C h a r c t e r L a b e l   {   g e t ;   p r i v a t e   s e t ;   } 
 	 	 p u b l i c   L i v e 2 D M o d e l D a t a   M o d e l D a t a   {   g e t ;   p r i v a t e   s e t ;   } 
 	 	 p u b l i c   L i v e 2 D M o d e l U n i t y   L i v e 2 D M o d e l   {   g e t   {   r e t u r n   M o d e l D a t a . L i v e 2 D M o d e l ;   }   } 
 
 	 	 p u b l i c   L 2 D E y e B l i n k   E y e B l i n k   {   g e t ;   p r i v a t e   s e t ;   } 	 	 	 / / Rv00
 	 	 p u b l i c   L i v e 2 D M o d e l L i p S y n c   L i p S y n c   {   g e t ;   p r i v a t e   s e t ;   } 	 	 / / RS00
 	 	 p u b l i c   L i v e 2 D M o d e l B r e a t h   B r e a t h   {   g e t ;   p r i v a t e   s e t ;   } 	 	 / / R000
 	 	 p u b l i c   T r a n s f o r m   C a c h e d T r a n s f o r m   {   g e t ;   p r i v a t e   s e t ;   } 	 	 / / U n i t y n0000000n0T r a n s f o r m 
 
 	 	 p u b l i c   F a d e I n O u t   F a d e I n O u t   {   g e t   {   r e t u r n   f a d e I n O u t   ? ?   ( f a d e I n O u t   =   G e t C o m p o n e n t < F a d e I n O u t > ( ) ) ;   }   } 
 	 	 F a d e I n O u t   f a d e I n O u t ; 
 
 	 	 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   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 ( ) . S e t t i n g s ;   }   } 
 
 	 	 / / |T8T0Rg0LF0K0
 	 	 p u b l i c   A d v E n g i n e   E n g i n e   {   g e t ;   p r i v a t e   s e t ;   } 
 
 	 	 v o i d   S t a r t ( ) 
 	 	 { 
 	 	 	 F a d e I n O u t . O n V a l u e C h a n g e d . A d d L i s t e n e r ( O n U p d a t e F a d e I n O u t ) ; 
 	 	 } 
 
 	 	 / / c;u
 	 	 i n t e r n a l   v o i d   L o a d (   s t r i n g   c h a r c t e r L a b e l ,   A d v E n g i n e   e n g i n e ,   G r a p h i c I n f o L i s t   g r a p h i c ,   f l o a t   p i x e l s T o U n i t s ) 
 	 	 { 
 	 	 	 t h i s . C h a r c t e r L a b e l   =   c h a r c t e r L a b e l ; 
 	 	 	 t h i s . E n g i n e   =   e n g i n e ; 
 	 	 	 t h i s . E n g i n e . O n P a g e T e x t C h a n g e . A d d L i s t e n e r ( O n P a g e T e x t C h a n g e d ) ; 
 	 	 	 M o d e l D a t a   =   n e w   L i v e 2 D M o d e l D a t a ( g r a p h i c ,   t h i s . g a m e O b j e c t . l a y e r ,   p i x e l s T o U n i t s ) ; 
 	 	 	 M o d e l D a t a . C a l l b a c k P l a y S o u n d   =   O n P l a y M o t i o n S o u n d ; 
 	 	 	 E y e B l i n k   =   n e w   L 2 D E y e B l i n k ( ) ; 
 	 	 	 L i p S y n c   =   n e w   L i v e 2 D M o d e l L i p S y n c ( ) ; 
 	 	 	 B r e a t h   =   n e w   L i v e 2 D M o d e l B r e a t h ( ) ; 
 	 	 	 C a c h e d T r a n s f o r m   =   t r a n s f o r m ; 
 	 	 	 / / 0000000000-[W0f0J0O0
 	 	 	 M o d e l D a t a . C h a n g e R a n d o m M o t i o n ( M o d e l D a t a . M o t i o n G r o u p N a m e I d l e ) ; 
 	 	 } 
 
 	 	 / / 000000
 	 	 i n t e r n a l   v o i d   F a d e I n ( f l o a t   f a d e T i m e ) 
 	 	 { 
 	 	 	 F a d e I n O u t . F a d e I n ( f a d e T i m e ) ; 
 	 	 } 
 
 	 	 / / 0000000
 	 	 i n t e r n a l   v o i d   F a d e O u t ( f l o a t   f a d e T i m e ) 
 	 	 { 
 	 	 	 F a d e I n O u t . F a d e O u t ( f a d e T i m e , f a l s e ) ; 
 	 	 } 
 
 	 	 / / 0000000000g0fe-N
 	 	 v o i d   O n U p d a t e F a d e I n O u t ( f l o a t   a l p h a ) 
 	 	 { 
 	 	 	 D e b u g . L o g E r r o r ( " N o t   S u p p o r t " ) ; 
 	 	 } 
 
 	 	 / / 00000k000000
 	 	 i n t e r n a l   v o i d   S e t E f f e c t C o l o r ( C o l o r   c o l o r ) 
 	 	 { 
 	 	 	 i f   ( M o d e l D a t a ! = n u l l )   M o d e l D a t a . S e t C o l o r ( c o l o r ) ; 
 	 	 } 
 
 	 	 / / /   < s u m m a r y > 
 	 	 / / /   feQt
 	 	 / / /   < / s u m m a r y > 
 	 	 v o i d   U p d a t e ( ) 
 	 	 { 
 	 	 	 i f   ( M o d e l D a t a   = =   n u l l )   r e t u r n ; 
 
 	 	 	 L i v e 2 D M o d e l . s e t M a t r i x ( C a c h e d T r a n s f o r m . l o c a l T o W o r l d M a t r i x   *   M o d e l D a t a . M o d e l M a t r i x ) ; 
 	 	 	 / /   000L0B}NW0f0D0_04XT
 	 	 	 i f   ( ! A p p l i c a t i o n . i s P l a y i n g ) 
 	 	 	 { 
 	 	 	 	 L i v e 2 D M o d e l . u p d a t e ( ) ; 
 	 	 	 	 L i v e 2 D M o d e l . d r a w ( ) ; 
 	 	 	 	 r e t u r n ; 
 	 	 	 } 
 
 	 	 	 / /   00000B}NBfn0fe
 	 	 	 M o d e l D a t a . U p d a t e M o t i o n F i n i s h e d ( ) ; 
 
 	 	 	 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 	 	 	 i f   ( M o d e l D a t a . I s I n i t ) 
 	 	 	 { 
 	 	 	 	 / /   MRV000U00_0rKa0000
 	 	 	 	 L i v e 2 D M o d e l . l o a d P a r a m ( ) ; 
 	 	 	 } 
 	 	 	 / /   000n0-[
 	 	 	 i f   ( M o d e l D a t a . P o s e   ! =   n u l l   & &   ! M o d e l D a t a . I s I n i t ) 
 	 	 	 { 
 	 	 	 	 M o d e l D a t a . P o s e . i n i t M o d e l ( L i v e 2 D M o d e l ) ; 
 	 	 	 } 
 	 	 	 M o d e l D a t a . M a i n M o t i o n M a n a g e r . u p d a t e P a r a m ( L i v e 2 D M o d e l ) ; / /   000000fe
 
 	 	 	 b o o l   i s F i n i s h e d   =   M o d e l D a t a . M a i n M o t i o n M a n a g e r . i s F i n i s h e d ( ) ; 
 	 	 	 b o o l   i s I d l e M o t i o n   =   M o d e l D a t a . I s C u r r e n t M o t i o n I d l e ; 
 
 	 	 	 / /   v00
 	 	 	 U p d a t e E y e B l i n k ( i s F i n i s h e d ,   i s I d l e M o t i o n ) ; 
 
 	 	 	 L i v e 2 D M o d e l . s a v e P a r a m ( ) ; / /   rKa0OX[
 	 	 	 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 	 M o d e l D a t a . E x p r e s s i o n M a n a g e r . u p d a t e P a r a m ( L i v e 2 D M o d e l ) ; / /     h`g000000fev[	YS	
 
 	 	 	 / / |T8T
 	 	 	 B r e a t h . U p d a t e ( L i v e 2 D M o d e l ,   S e t t i n g s ,   i s F i n i s h e d ,   i s I d l e M o t i o n ) ; 
 
 
 
 	 	 	 / / 000000
 
 	 	 	 U p d a t e L y p S y n c ( i s F i n i s h e d ,   i s I d l e M o t i o n ) ; 
 
 
 
 	 	 	 / /   000n0-[
 	 	 	 i f   ( M o d e l D a t a . P o s e   ! =   n u l l ) 
 	 	 	 { 
 	 	 	 	 i f   ( ! M o d e l D a t a . I s I n i t ) 
 	 	 	 	 { 
 	 	 	 	 	 M o d e l D a t a . P o s e . u p d a t e P a r a m N o F a d e ( L i v e 2 D M o d e l ) ; 
 	 	 	 	 } 
 	 	 	 	 e l s e 
 	 	 	 	 { 
 	 	 	 	 	 M o d e l D a t a . P o s e . u p d a t e P a r a m C u s t o m ( L i v e 2 D M o d e l ) ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 / /   irto{n0-[
 	 	 	 i f   ( M o d e l D a t a . P h y s i c s   ! =   n u l l )   M o d e l D a t a . P h y s i c s . u p d a t e P a r a m ( L i v e 2 D M o d e l ) ; 
 
 
 
 	 	 	 / / [n0000000h0n0#R
 
 	 	 	 L i n k U t a g e P a r a m e t a r ( ) ; 
 
 	 	 	 / /   pn0fe
 	 	 	 L i v e 2 D M o d e l . u p d a t e ( ) ; 
 	 	 	 / /   000n0c;u
 	 	 	 L i v e 2 D M o d e l . d r a w ( ) ; 
 
 	 	 	 M o d e l D a t a . I s I n i t   =   t r u e ; 
 	 	 } 
 
 	 	 / / v00Qt
 	 	 v o i d   U p d a t e E y e B l i n k (   b o o l   i s M o t i o n F i n i s h e d ,   b o o l   i s I d e l e M o t i o n   ) 
 	 	 { 
 	 	 	 s w i t c h   ( S e t t i n g s . E y e B l i n k T y p e ) 
 	 	 	 { 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . E y e B l i n k . A l w a y s : 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . E y e B l i n k . N o n e : 
 	 	 	 	 	 r e t u r n ; 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . E y e B l i n k . I d l e O r M o t i o n F i n i s h e d : 
 	 	 	 	 	 i f   ( ! ( i s M o t i o n F i n i s h e d   | |   i s I d e l e M o t i o n ) )   r e t u r n ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 } 
 	 	 	 E y e B l i n k . u p d a t e P a r a m ( L i v e 2 D M o d e l ) ; / /   v00
 	 	 } 
 
 	 	 / / 000000
 	 	 v o i d   U p d a t e L y p S y n c ( b o o l   i s M o t i o n F i n i s h e d ,   b o o l   i s I d e l e M o t i o n ) 
 	 	 { 
 	 	 	 / / 0000000W0j0D0-[j00B}N
 	 	 	 i f (   S e t t i n g s . L i p S y n c T y p e   = =   L i v e 2 D S e t t i n g s . L i p S y n c . N o n e ) 
 	 	 	 { 
 	 	 	 	 r e t u r n ; 
 	 	 	 } 
 
 	 	 	 b o o l   i s L i p S y n c T i m i n g   =   f a l s e ; 
 	 	 	 s w i t c h   ( S e t t i n g s . L i p S y n c T y p e ) 
 	 	 	 { 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . L i p S y n c . A l w a y s : 
 	 	 	 	 	 i s L i p S y n c T i m i n g   =   t r u e ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . L i p S y n c . I d l e O r M o t i o n F i n i s h e d : 
 	 	 	 	 	 i f   ( i s M o t i o n F i n i s h e d   | |   i s I d e l e M o t i o n )   i s L i p S y n c T i m i n g   =   t r u e ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . L i p S y n c . O n l y M o t i o n F i n i s h e d : 
 	 	 	 	 	 i f   ( i s M o t i o n F i n i s h e d )   i s L i p S y n c T i m i n g   =   t r u e ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 } 
 	 	 	 i f   ( i s L i p S y n c T i m i n g ) 
 	 	 	 { 
 	 	 	 	 / / 000n00000000Y00
 	 	 	 	 i f   ( ! T r y U p d a t e V o i c e L y p S y n c ( ) ) 
 	 	 	 	 { 
 	 	 	 	 	 / / 0000n00000000Y00
 	 	 	 	 	 i s L i p S y n c T i m i n g   =   T r y U p d a t e T e x t L y p S y n c ( ) ; 
 	 	 	 	 } 
 	 	 	 } 
 
 	 	 	 i f   ( ! i s L i p S y n c T i m i n g ) 
 	 	 	 { 
 	 	 	 	 L i p S y n c . S t o p L i p S y n c ( L i v e 2 D M o d e l ) ; 
 	 	 	 } 
 	 	 } 
 
 	 	 b o o l   T r y U p d a t e V o i c e L y p S y n c ( ) 
 	 	 { 
 	 	 	 i f   ( ! S o u n d M a n a g e r . G e t I n s t a n c e ( ) . I s P l a y i n g V o i c e ( C h a r c t e r L a b e l ) )   r e t u r n   f a l s e ; 
 
 	 	 	 s w i t c h   ( S e t t i n g s . V o i c e L i p S y n c T y p e ) 
 	 	 	 { 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . V o i c e L i p S y n c . N o n e : 
 	 	 	 	 	 r e t u r n   f a l s e ; 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . V o i c e L i p S y n c . O n l y I n P a g e : 
 	 	 	 	 	 i f ( E n g i n e . P a g e . C h a r a c t e r L a b e l   ! =   C h a r c t e r L a b e l )   r e t u r n   f a l s e ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 } 
 
 	 	 	 i s V o i c e L y p S y n c e d   =   t r u e ; 
 	 	 	 f l o a t   v o l u m e   =   S o u n d M a n a g e r . G e t I n s t a n c e ( ) . G e t V o i c e C u r r e n t S a m p l e s V o l u m e ( )   *   S e t t i n g s . V o i c e L i p S y n c S c a l e V o l u m e ; 
 	 	 	 L i p S y n c . U p d a t e V o i c e L i p S y n c P a r a m ( L i v e 2 D M o d e l ,   v o l u m e ,   S e t t i n g s . V o i c e L i p S y n c S m o o t h i n g ) ; 
 	 	 	 r e t u r n   t r u e ; 
 	 	 } 
 
 	 	 b o o l   i s V o i c e L y p S y n c e d   =   f a l s e ; 
 
 	 	 b o o l   T r y U p d a t e T e x t L y p S y n c ( ) 
 	 	 { 
 	 	 	 / / Y0g0k0000k0000000000W0f0D00
 	 	 	 i f   ( i s V o i c e L y p S y n c e d )   r e t u r n   f a l s e ; 
 
 	 	 	 i f ( ( E n g i n e . P a g e . C h a r a c t e r L a b e l   = =   C h a r c t e r L a b e l )   & &   E n g i n e . P a g e . I s S e n d C h a r ) 
 	 	 	 { 
 	 	 	 	 C u s t o m L i p S y n c I n f o   l i p S y n c I n f o   =   S e t t i n g s . F i n d C u s t o m L i p S y n c D a t a ( C h a r c t e r L a b e l ) ; 
 	 	 	 	 i f   ( l i p S y n c I n f o ! = n u l l ) 
 	 	 	 	 { 
 	 	 	 	 	 L i p S y n c . U p d a t e T e x t C u s t o m L y p S y n c P a r a m ( L i v e 2 D M o d e l ,   E n g i n e . P a g e . C u r r e n L i p i S y n c W o r d ,   l i p S y n c I n f o ,   S e t t i n g s . T e x t L i p S y n c S p e e d ) ; 
 	 	 	 	 } 
 	 	 	 	 e l s e 
 	 	 	 	 { 
 	 	 	 	 	 L i p S y n c . U p d a t e T e x t L y p S y n c P a r a m ( L i v e 2 D M o d e l ,   S e t t i n g s . T e x t L i p S y n c S p e e d ) ; 
 	 	 	 	 } 
 	 	 	 	 r e t u r n   t r u e ; 
 	 	 	 } 
 	 	 	 e l s e 
 	 	 	 { 
 	 	 	 	 r e t u r n   f a l s e ; 
 	 	 	 } 
 	 	 } 
 
 	 	 v o i d   O n P l a y M o t i o n S o u n d (   A s s e t F i l e   s o u n d   ) 
 	 	 { 
 	 	 	 i f   ( s o u n d   = =   n u l l )   r e t u r n ; 
 
 	 	 	 s w i t c h ( S e t t i n g s . S o u n d T y p e ) 
 	 	 	 { 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . S o u n d . V o i c e : 
 	 	 	 	 	 S o u n d M a n a g e r . G e t I n s t a n c e ( ) . P l a y V o i c e ( C h a r c t e r L a b e l ,   s o u n d ) ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . S o u n d . S e : 
 	 	 	 	 	 S o u n d M a n a g e r . G e t I n s t a n c e ( ) . P l a y S e ( s o u n d ) ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 c a s e   L i v e 2 D S e t t i n g s . S o u n d . I g n o r e : 
 	 	 	 	 	 b r e a k ; 
 	 	 	 } 
 	 	 } 
 
 	 	 v o i d   O n P a g e T e x t C h a n g e d ( A d v E n g i n e   e n g i n e ) 
 	 	 { 
 	 	 	 t h i s . i s V o i c e L y p S y n c e d   =   f a l s e ; 
 	 	 } 
 
 	 	 v o i d   O n D r a w G i z m o s ( ) 
 	 	 { 
 	 	 	 i f   ( M o d e l D a t a   = =   n u l l )   r e t u r n ; 
 
 
 	 	 	 G i z m o s . c o l o r   =   C o l o r . b l u e ; 
 	 	 	 f l o a t   w   =   M o d e l D a t a . W i d t h   *   C a c h e d T r a n s f o r m . l o s s y S c a l e . x ; 
 	 	 	 f l o a t   h   =   M o d e l D a t a . H e i g h t   *   C a c h e d T r a n s f o r m . l o s s y S c a l e . y ; 
 	 	 	 G i z m o s . D r a w W i r e C u b e (   C a c h e d T r a n s f o r m . p o s i t i o n ,   n e w   V e c t o r 3 ( w ,   h ,   1 . 0 f ) ) ; 
 
 	 	 	 L i s t < R e c t >   r e c t s   =   M o d e l D a t a . G e t A l l H i t R e c t s ( C a c h e d T r a n s f o r m . l o c a l T o W o r l d M a t r i x ) ; 
 	 	 	 f o r e a c h   ( R e c t   r e c t   i n   r e c t s ) 
 	 	 	 { 
 	 	 	 	 G i z m o s . c o l o r   =   C o l o r . y e l l o w ; 
 	 	 	 	 V e c t o r 3   c e n t e r   =   n e w   V e c t o r 3 ( r e c t . c e n t e r . x ,   r e c t . c e n t e r . y ,   t h i s . t r a n s f o r m . p o s i t i o n . z ) ; 
 	 	 	 	 V e c t o r 3   s i z e   =   n e w   V e c t o r 3 ( r e c t . w i d t h ,   r e c t . h e i g h t ,   0 . 1 f ) ; 
 	 	 	 	 G i z m o s . D r a w W i r e C u b e ( c e n t e r ,   s i z e ) ; 
 	 	 	 } 
 	 	 } 
 
 	 	 p u b l i c   b o o l   T r y G e t T o t a l H i t R e c t ( o u t   R e c t   r e c t ) 
 	 	 { 
 	 	 	 r e t u r n   M o d e l D a t a . T r y G e t T o t a l H i t R e c t ( C a c h e d T r a n s f o r m . l o c a l T o W o r l d M a t r i x ,   o u t   r e c t ) ; 
 	 	 } 
 
 	 	 i n t e r n a l   b o o l   H i t T e s t ( s t r i n g   p a r t s N a m e ,   V e c t o r 3   p o i n t ) 
 	 	 { 
 	 	 	 r e t u r n   M o d e l D a t a . H i t T e s t ( p a r t s N a m e ,   p o i n t ,   C a c h e d T r a n s f o r m . l o c a l T o W o r l d M a t r i x   ) ; 
 	 	 } 
 
 	 	 i n t e r n a l   v o i d   S e t R e n d e r T e x t u r e ( ) 
 	 	 { 
 	 	 	 t h r o w   n e w   N o t I m p l e m e n t e d E x c e p t i o n ( ) ; 
 	 	 } 
 
 
 	 	 / / [n0000000h0n0#R
 
 	 	 v o i d   L i n k U t a g e P a r a m e t a r ( ) 
 
 	 	 { 
 
 	 	 	 i f   ( s t r i n g . I s N u l l O r E m p t y ( S e t t i n g s . P a r a m S h e e t N a m e ) )   r e t u r n ; 
 
 
 
 	 	 	 A d v P a r a m S t r u c t T b l   t b l ; 
 
 	 	 	 i f   ( ! E n g i n e . P a r a m . S t r u c t T b l . T r y G e t V a l u e ( S e t t i n g s . P a r a m S h e e t N a m e ,   o u t   t b l ) )   r e t u r n ; 
 
 
 
 	 	 	 f o r e a c h (   v a r   i t e m   i n   t b l . T b l   ) 
 
 	 	 	 { 
 
 	 	 	 	 i f   ( i t e m . K e y   = =   C h a r c t e r L a b e l ) 
 
 	 	 	 	 { 
 
 	 	 	 	 	 f o r e a c h (   v a r   v   i n   i t e m . V a l u e . T b l   ) 
 
 	 	 	 	 	 { 
 
 	 	 	 	 	 	 s w i t c h ( v . V a l u e . T y p e ) 
 
 	 	 	 	 	 	 { 
 
 	 	 	 	 	 	 	 c a s e   A d v P a r a m D a t a . P a r a m T y p e . F l o a t : 
 
 	 	 	 	 	 	 	 	 M o d e l D a t a . S e t P a r a m F l o a t ( v . K e y ,   ( f l o a t ) v . V a l u e . P a r a m e t e r   ) ; 
 
 	 	 	 	 	 	 	 	 b r e a k ; 
 
 	 	 	 	 	 	 	 d e f a u l t : 
 
 	 	 	 	 	 	 	 	 D e b u g . L o g E r r o r ( " N o t   S u p p o r t T y p e : "   +   v . V a l u e . T y p e   +   "   o f   "   +   v . K e y ) ; 
 
 	 	 	 	 	 	 	 	 b r e a k ; 
 
 	 	 	 	 	 	 } 
 
 	 	 	 	 	 } 
 
 	 	 	 	 } 
 
 	 	 	 } 
 
 	 	 } 
 	 } 
 } 
 