MultipleMaids.Update.cs 434 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using ExIni;
  7. using UnityEngine;
  8. using UnityEngine.Rendering;
  9. using Object = UnityEngine.Object;
  10. namespace CM3D2.MultipleMaids.Plugin
  11. {
  12. public partial class MultipleMaids
  13. {
  14. public void Update()
  15. {
  16. if (!isInit)
  17. return;
  18. if (allowUpdate)
  19. {
  20. this.MaidUpdate();
  21. if (isFadeOut)
  22. {
  23. bool flag = false;
  24. for (int index = 0; index < maxMaidCnt; ++index)
  25. {
  26. if ((bool) ((Object) maidArray[index]) && maidArray[index].Visible && maidArray[index].IsAllProcPropBusy)
  27. flag = true;
  28. }
  29. if (!flag)
  30. {
  31. if (!isBusyInit)
  32. {
  33. isBusyInit = true;
  34. }
  35. else
  36. {
  37. for (int index1 = 0; index1 < maxMaidCnt; ++index1)
  38. {
  39. if (!isLock[index1] && (Object) maidArray[index1] != (Object) null)
  40. {
  41. maidArray[index1].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  42. maidArray[index1].SetAutoTwistAll(true);
  43. }
  44. poseCount[index1] = 30;
  45. if ((bool) ((Object) maidArray[index1]) && maidArray[index1].Visible)
  46. {
  47. maidArray[index1].body0.BoneHitHeightY = -10f;
  48. if (selectList.Count > index1 && goSlot[(int) selectList[index1]] == null)
  49. {
  50. maidArray[index1].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  51. maidArray[index1].SetAutoTwistAll(true);
  52. goSlot[(int) selectList[index1]] =
  53. new List<TBodySkin>((IEnumerable<TBodySkin>) maidArray[index1].body0.goSlot);
  54. bodyHit[(int) selectList[index1]] = new List<TBodyHit>();
  55. for (int index2 = 0; index2 < goSlot[(int) selectList[index1]].Count; ++index2)
  56. {
  57. TBodyHit tbodyHit = new TBodyHit();
  58. TBodyHit bodyhit = maidArray[index1].body0.goSlot[index2].bonehair.bodyhit;
  59. if (bodyhit != null)
  60. {
  61. tbodyHit.spherelist = new List<THitSphere>((IEnumerable<THitSphere>) bodyhit.spherelist);
  62. tbodyHit.m_listHandHitL =
  63. new List<THitSphere>((IEnumerable<THitSphere>) bodyhit.m_listHandHitL);
  64. tbodyHit.m_listHandHitR =
  65. new List<THitSphere>((IEnumerable<THitSphere>) bodyhit.m_listHandHitR);
  66. tbodyHit.RotOffset = bodyhit.RotOffset;
  67. tbodyHit.tRoot = bodyhit.tRoot;
  68. tbodyHit.skrt_R1 = bodyhit.skrt_R1;
  69. tbodyHit.skrt_R2 = bodyhit.skrt_R2;
  70. tbodyHit.skrt_R3 = bodyhit.skrt_R3;
  71. tbodyHit.skrt_L1 = bodyhit.skrt_L1;
  72. tbodyHit.skrt_L2 = bodyhit.skrt_L2;
  73. tbodyHit.skrt_L3 = bodyhit.skrt_L3;
  74. tbodyHit.MOMO_FUTO = bodyhit.MOMO_FUTO;
  75. tbodyHit.HARA_FUTO = bodyhit.HARA_FUTO;
  76. tbodyHit.KOSHI_SCL = bodyhit.KOSHI_SCL;
  77. tbodyHit.KOSHI_SVAL = bodyhit.KOSHI_SVAL;
  78. tbodyHit.BodySkinTAG = bodyhit.BodySkinTAG;
  79. tbodyHit.SkirtFT = bodyhit.SkirtFT;
  80. tbodyHit.MST = bodyhit.MST;
  81. tbodyHit.MST_v = bodyhit.MST_v;
  82. }
  83. bodyHit[(int) selectList[index1]].Add(tbodyHit);
  84. }
  85. if (!isVR)
  86. {
  87. try
  88. {
  89. shodaiFlg[(int) selectList[index1]] = false;
  90. TMorph morph = maidArray[index1].body0.Face.morph;
  91. float num =
  92. GetFieldValue<TMorph, float[]>(morph, "BlendValues")
  93. [(int) morph.hash[(object) "tangopen"]];
  94. }
  95. catch
  96. {
  97. shodaiFlg[(int) selectList[index1]] = true;
  98. }
  99. if (!isVR)
  100. {
  101. eyeL[(int) selectList[index1]] = maidArray[index1].body0.quaDefEyeL.eulerAngles;
  102. eyeR[(int) selectList[index1]] = maidArray[index1].body0.quaDefEyeR.eulerAngles;
  103. }
  104. }
  105. if (isKamiyure)
  106. {
  107. for (int index2 = 0; index2 < maidArray[index1].body0.goSlot.Count; ++index2)
  108. {
  109. if (index2 >= 3 && index2 <= 6
  110. && (Object) maidArray[index1].body0.goSlot[index2].obj != (Object) null)
  111. {
  112. DynamicBone component = maidArray[index1]
  113. .body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  114. if ((Object) component != (Object) null)
  115. {
  116. component.m_Damping = kamiyure2;
  117. component.m_Elasticity = kamiyure3;
  118. if (index2 == 5)
  119. component.m_Elasticity = kamiyure3 / 20f;
  120. component.m_Radius = kamiyure4;
  121. component.UpdateParameters();
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }
  128. }
  129. isBusyInit = false;
  130. GameMain.Instance.MainCamera.FadeIn(1f, false, (CameraMain.dgOnCompleteFade) null, true, true, new Color());
  131. isFadeOut = false;
  132. bGui = true;
  133. }
  134. }
  135. }
  136. }
  137. if (isVR && isVRScroll && (!this.getModKeyPressing(modKey.Ctrl) && !this.getModKeyPressing(modKey.Alt)
  138. && (!Input.GetKey(KeyCode.Space) && !Input.GetKey(KeyCode.Z))
  139. && (!Input.GetKey(KeyCode.X) && !Input.GetKey(KeyCode.W)
  140. && (!Input.GetKey(KeyCode.Q)
  141. && !Input.GetKey(KeyCode.R)))
  142. && (!Input.GetKey(KeyCode.E) && !Input.GetKey(KeyCode.Y)
  143. && (!Input.GetKey(KeyCode.V)
  144. && !Input.GetKey(KeyCode.C))
  145. && !Input.GetKey(KeyCode.D))
  146. && !Input.GetKey(KeyCode.S)))
  147. {
  148. Vector3 maid = GetFieldValue<OvrCamera, Vector3>(GameMain.Instance.OvrMgr.OvrCamera, "v")
  149. + UTY.GetChildObject(mainCamera.gameObject, "TrackingSpace/CenterEyeAnchor", false).transform.rotation
  150. * Vector3.forward
  151. * (Input.GetAxis("Mouse ScrollWheel") * (float) (5.0 * (double) Time.deltaTime * 2.0 * 5.0));
  152. SetFieldValue3<OvrCamera, Vector3>(GameMain.Instance.OvrMgr.OvrCamera, "v", maid);
  153. Transform fieldValue = GetFieldValue<OvrCamera, Transform>(GameMain.Instance.OvrMgr.OvrCamera, "m_trBaseHead");
  154. fieldValue.position = maid;
  155. SetFieldValue4<OvrCamera, Transform>(GameMain.Instance.OvrMgr.OvrCamera, "m_trBaseHead", fieldValue);
  156. }
  157. if (isMekure1a || isMekure2a || isZurasia)
  158. {
  159. mekureCount = 10;
  160. for (int index = 0; index < maidCnt; ++index)
  161. {
  162. if ((bool) ((Object) maidArray[index]) && maidArray[index].Visible)
  163. {
  164. if (isMekure1a)
  165. {
  166. if (isMekure1)
  167. {
  168. maidArray[index].ItemChangeTemp("skirt", "めくれスカート");
  169. maidArray[index].ItemChangeTemp("onepiece", "めくれスカート");
  170. }
  171. else
  172. {
  173. this.ResetProp(maidArray[index], MPN.skirt);
  174. this.ResetProp(maidArray[index], MPN.onepiece);
  175. }
  176. maidArray[index].AllProcPropSeqStart();
  177. }
  178. if (isMekure2a)
  179. {
  180. if (isMekure2)
  181. {
  182. maidArray[index].ItemChangeTemp("skirt", "めくれスカート後ろ");
  183. maidArray[index].ItemChangeTemp("onepiece", "めくれスカート後ろ");
  184. }
  185. else
  186. {
  187. this.ResetProp(maidArray[index], MPN.skirt);
  188. this.ResetProp(maidArray[index], MPN.onepiece);
  189. }
  190. maidArray[index].AllProcPropSeqStart();
  191. }
  192. if (isZurasia)
  193. {
  194. if (isZurasi)
  195. {
  196. maidArray[index].ItemChangeTemp("panz", "パンツずらし");
  197. maidArray[index].ItemChangeTemp("mizugi", "パンツずらし");
  198. }
  199. else
  200. {
  201. this.ResetProp(maidArray[index], MPN.panz);
  202. this.ResetProp(maidArray[index], MPN.mizugi);
  203. }
  204. maidArray[index].AllProcPropSeqStart();
  205. }
  206. }
  207. }
  208. isMekure1a = false;
  209. isMekure2a = false;
  210. isZurasia = false;
  211. }
  212. if (mekureCount > 0)
  213. {
  214. --mekureCount;
  215. for (int index1 = 0; index1 < maidCnt; ++index1)
  216. {
  217. if ((bool) ((Object) maidArray[index1]) && maidArray[index1].Visible && goSlot[(int) selectList[index1]] != null)
  218. {
  219. maidArray[index1].body0.goSlot = new List<TBodySkin>((IEnumerable<TBodySkin>) goSlot[(int) selectList[index1]]);
  220. for (int index2 = 0; index2 < bodyHit[(int) selectList[index1]].Count; ++index2)
  221. maidArray[index1].body0.goSlot[index2].bonehair.bodyhit = bodyHit[(int) selectList[index1]][index2];
  222. }
  223. }
  224. }
  225. if (isKamiyure)
  226. {
  227. int num = maidCnt;
  228. if (num == 0)
  229. num = 3;
  230. for (int index1 = 0; index1 < num; ++index1)
  231. {
  232. if ((bool) ((Object) maidArray[index1]) && maidArray[index1].Visible)
  233. {
  234. Maid maid = maidArray[index1];
  235. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  236. {
  237. if (index2 >= 3 && index2 <= 6 && (Object) maid.body0.goSlot[index2].obj != (Object) null)
  238. {
  239. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  240. if ((Object) component != (Object) null
  241. && ((double) component.m_Damping != (double) kamiyure2
  242. || (double) component.m_Elasticity != (double) kamiyure3
  243. || (double) component.m_Radius != (double) kamiyure4)
  244. && (index2 != 5 || ((double) component.m_Damping != (double) kamiyure2
  245. || (double) component.m_Elasticity != (double) kamiyure3 / 20.0
  246. || (double) component.m_Radius != (double) kamiyure4)))
  247. {
  248. component.m_Damping = kamiyure2;
  249. component.m_Elasticity = kamiyure3;
  250. if (index2 == 5)
  251. component.m_Elasticity = kamiyure3 / 20f;
  252. component.m_Radius = kamiyure4;
  253. component.UpdateParameters();
  254. }
  255. }
  256. }
  257. }
  258. }
  259. }
  260. if (isSkirtyure)
  261. {
  262. int num = maidCnt;
  263. if (num == 0)
  264. num = 3;
  265. for (int index1 = 0; index1 < num; ++index1)
  266. {
  267. if ((bool) ((Object) maidArray[index1]) && maidArray[index1].Visible)
  268. {
  269. for (int index2 = 0; index2 < maidArray[index1].body0.goSlot.Count; ++index2)
  270. {
  271. if ((Object) maidArray[index1].body0.goSlot[index2].obj != (Object) null)
  272. {
  273. DynamicSkirtBone fieldValue =
  274. GetFieldValue<BoneHair3, DynamicSkirtBone>(maidArray[index1].body0.goSlot[index2].bonehair3,
  275. "m_SkirtBone");
  276. if ((Object) fieldValue != (Object) null)
  277. {
  278. fieldValue.m_vGravity = new Vector3(0.5f, 0.5f, 0.5f);
  279. if ((double) fieldValue.m_fPanierForce != (double) skirtyure3
  280. || (double) fieldValue.m_fPanierForceDistanceThreshold != (double) skirtyure2
  281. || (double) fieldValue.m_fRegDefaultRadius != (double) skirtyure4)
  282. {
  283. fieldValue.m_fPanierForce = skirtyure3;
  284. fieldValue.m_fPanierForceDistanceThreshold = skirtyure2;
  285. fieldValue.m_fRegDefaultRadius = skirtyure4;
  286. }
  287. }
  288. }
  289. }
  290. }
  291. }
  292. }
  293. if ((!Input.GetKey(KeyCode.KeypadEnter) && Input.GetKeyDown(KeyCode.Keypad1)
  294. || (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Keypad3))
  295. || (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.Keypad5)
  296. || (Input.GetKeyDown(KeyCode.Keypad6) || Input.GetKeyDown(KeyCode.Keypad7)))
  297. || (Input.GetKeyDown(KeyCode.Keypad8) || Input.GetKeyDown(KeyCode.Keypad9)
  298. || (Input.GetKeyDown(KeyCode.Keypad0) || Input.GetKeyDown(KeyCode.KeypadDivide))
  299. || Input.GetKeyDown(KeyCode.KeypadMultiply))
  300. || Input.GetKeyDown(KeyCode.KeypadMinus)) && (Input.GetKey(KeyCode.H) || isVR))
  301. {
  302. if (Input.GetKeyDown(KeyCode.Keypad1))
  303. isWear = !isWear;
  304. if (Input.GetKeyDown(KeyCode.Keypad2))
  305. isSkirt = !isSkirt;
  306. if (Input.GetKeyDown(KeyCode.Keypad3))
  307. isBra = !isBra;
  308. if (Input.GetKeyDown(KeyCode.Keypad4))
  309. isPanz = !isPanz;
  310. if (Input.GetKeyDown(KeyCode.Keypad5))
  311. isHeadset = !isHeadset;
  312. if (Input.GetKeyDown(KeyCode.Keypad6))
  313. isAccUde = !isAccUde;
  314. if (Input.GetKeyDown(KeyCode.Keypad7))
  315. isGlove = !isGlove;
  316. if (Input.GetKeyDown(KeyCode.Keypad8))
  317. isStkg = !isStkg;
  318. if (Input.GetKeyDown(KeyCode.Keypad9))
  319. isShoes = !isShoes;
  320. if (Input.GetKeyDown(KeyCode.Keypad0))
  321. isAccSenaka = !isAccSenaka;
  322. if (Input.GetKeyDown(KeyCode.KeypadDivide))
  323. isMekure1 = !isMekure1;
  324. if (Input.GetKeyDown(KeyCode.KeypadMultiply))
  325. isMekure2 = !isMekure2;
  326. if (Input.GetKeyDown(KeyCode.KeypadMinus))
  327. isZurasi = !isZurasi;
  328. h2Flg = true;
  329. if (sceneLevel != 3 && sceneLevel != 5)
  330. {
  331. maidArray[0] = GameMain.Instance.CharacterMgr.GetMaid(0);
  332. maidArray[1] = GameMain.Instance.CharacterMgr.GetMaid(1);
  333. maidArray[2] = GameMain.Instance.CharacterMgr.GetMaid(2);
  334. maidArray[3] = GameMain.Instance.CharacterMgr.GetMaid(3);
  335. maidCnt = 4;
  336. }
  337. for (int index1 = 0; index1 < maidCnt; ++index1)
  338. {
  339. if ((bool) ((Object) maidArray[index1]) && maidArray[index1].Visible)
  340. {
  341. if (Input.GetKeyDown(KeyCode.KeypadDivide) || Input.GetKeyDown(KeyCode.KeypadMultiply)
  342. || Input.GetKeyDown(KeyCode.KeypadMinus))
  343. {
  344. if (sceneLevel == 3 || sceneLevel == 5)
  345. {
  346. if (!isVR && goSlot[(int) selectList[index1]] != null)
  347. {
  348. maidArray[index1].body0.goSlot =
  349. new List<TBodySkin>((IEnumerable<TBodySkin>) goSlot[(int) selectList[index1]]);
  350. for (int index2 = 0; index2 < bodyHit[(int) selectList[index1]].Count; ++index2)
  351. maidArray[index1].body0.goSlot[index2].bonehair.bodyhit = bodyHit[(int) selectList[index1]][index2];
  352. }
  353. if (Input.GetKeyDown(KeyCode.KeypadDivide))
  354. isMekure1a = true;
  355. if (Input.GetKeyDown(KeyCode.KeypadMultiply))
  356. isMekure2a = true;
  357. if (Input.GetKeyDown(KeyCode.KeypadMinus))
  358. isZurasia = true;
  359. }
  360. else
  361. {
  362. if (Input.GetKeyDown(KeyCode.KeypadDivide))
  363. {
  364. if (isMekure1)
  365. {
  366. maidArray[index1].ItemChangeTemp("skirt", "めくれスカート");
  367. maidArray[index1].ItemChangeTemp("onepiece", "めくれスカート");
  368. }
  369. else
  370. {
  371. this.ResetProp(maidArray[index1], MPN.skirt);
  372. this.ResetProp(maidArray[index1], MPN.onepiece);
  373. }
  374. maidArray[index1].AllProcPropSeqStart();
  375. }
  376. if (Input.GetKeyDown(KeyCode.KeypadMultiply))
  377. {
  378. if (isMekure2)
  379. {
  380. maidArray[index1].ItemChangeTemp("skirt", "めくれスカート後ろ");
  381. maidArray[index1].ItemChangeTemp("onepiece", "めくれスカート後ろ");
  382. }
  383. else
  384. {
  385. this.ResetProp(maidArray[index1], MPN.skirt);
  386. this.ResetProp(maidArray[index1], MPN.onepiece);
  387. }
  388. maidArray[index1].AllProcPropSeqStart();
  389. }
  390. if (Input.GetKeyDown(KeyCode.KeypadMinus))
  391. {
  392. if (isZurasi)
  393. {
  394. maidArray[index1].ItemChangeTemp("panz", "パンツずらし");
  395. maidArray[index1].ItemChangeTemp("mizugi", "パンツずらし");
  396. }
  397. else
  398. {
  399. this.ResetProp(maidArray[index1], MPN.panz);
  400. this.ResetProp(maidArray[index1], MPN.mizugi);
  401. }
  402. maidArray[index1].AllProcPropSeqStart();
  403. }
  404. }
  405. }
  406. else
  407. {
  408. Hashtable fieldValue = GetFieldValue<TBody, Hashtable>(maidArray[index1].body0, "m_hFoceHide");
  409. if (Input.GetKeyDown(KeyCode.Keypad1))
  410. {
  411. fieldValue[(object) TBody.SlotID.wear] = (object) isWear;
  412. fieldValue[(object) TBody.SlotID.onepiece] = (object) isWear;
  413. fieldValue[(object) TBody.SlotID.mizugi] = (object) isWear;
  414. }
  415. if (Input.GetKeyDown(KeyCode.Keypad2))
  416. fieldValue[(object) TBody.SlotID.skirt] = (object) isSkirt;
  417. if (Input.GetKeyDown(KeyCode.Keypad3))
  418. fieldValue[(object) TBody.SlotID.bra] = (object) isBra;
  419. if (Input.GetKeyDown(KeyCode.Keypad4))
  420. fieldValue[(object) TBody.SlotID.panz] = (object) isPanz;
  421. if (Input.GetKeyDown(KeyCode.Keypad5))
  422. {
  423. fieldValue[(object) TBody.SlotID.headset] = (object) isHeadset;
  424. fieldValue[(object) TBody.SlotID.accHat] = (object) isHeadset;
  425. }
  426. if (Input.GetKeyDown(KeyCode.Keypad6))
  427. fieldValue[(object) TBody.SlotID.accUde] = (object) isAccUde;
  428. if (Input.GetKeyDown(KeyCode.Keypad7))
  429. fieldValue[(object) TBody.SlotID.glove] = (object) isGlove;
  430. if (Input.GetKeyDown(KeyCode.Keypad8))
  431. fieldValue[(object) TBody.SlotID.stkg] = (object) isStkg;
  432. if (Input.GetKeyDown(KeyCode.Keypad9))
  433. fieldValue[(object) TBody.SlotID.shoes] = (object) isShoes;
  434. if (Input.GetKeyDown(KeyCode.Keypad0))
  435. fieldValue[(object) TBody.SlotID.accSenaka] = (object) isAccSenaka;
  436. SetFieldValue6<TBody, Hashtable>(maidArray[index1].body0, "m_hFoceHide", fieldValue);
  437. maidArray[index1].body0.FixMaskFlag();
  438. maidArray[index1].body0.FixVisibleFlag(false);
  439. }
  440. }
  441. }
  442. }
  443. Vector3 vector3_1;
  444. Quaternion rotation;
  445. if (!yotogiFlg && (sceneLevel == 14 || sceneLevel == 24))
  446. {
  447. Maid maid = maidArray[0];
  448. Vector3 vector3_2 = mainCameraTransform.TransformDirection(Vector3.forward);
  449. Vector3 vector3_3 = mainCameraTransform.TransformDirection(Vector3.right);
  450. vector3_1 = mainCameraTransform.TransformDirection(Vector3.up);
  451. if (Input.GetKeyDown(KeyCode.LeftBracket) || Input.GetKeyDown(KeyCode.BackQuote) && this.getModKeyPressing(modKey.Alt))
  452. {
  453. for (int index = 0; index < 10; ++index)
  454. {
  455. Transform transform1 = maid.transform;
  456. Vector3 position1 = maid.transform.position;
  457. Vector3 right = Vector3.right;
  458. rotation = maid.transform.rotation;
  459. double num1 = -(double) rotation.eulerAngles.x;
  460. transform1.RotateAround(position1, right, (float) num1);
  461. Transform transform2 = maid.transform;
  462. Vector3 position2 = maid.transform.position;
  463. Vector3 forward = Vector3.forward;
  464. rotation = maid.transform.rotation;
  465. double num2 = -(double) rotation.eulerAngles.z;
  466. transform2.RotateAround(position2, forward, (float) num2);
  467. }
  468. }
  469. else if (Input.GetKey(KeyCode.Minus) && this.getModKeyPressing(modKey.Shift)
  470. || Input.GetKey(KeyCode.I) && this.getModKeyPressing(modKey.Alt))
  471. maid.transform.RotateAround(maid.transform.position, new Vector3(vector3_3.x, 0.0f, vector3_3.z), 0.4f);
  472. else if (Input.GetKey(KeyCode.Quote) && this.getModKeyPressing(modKey.Shift)
  473. || Input.GetKey(KeyCode.K) && this.getModKeyPressing(modKey.Alt))
  474. maid.transform.RotateAround(maid.transform.position, new Vector3(vector3_3.x, 0.0f, vector3_3.z), -0.4f);
  475. else if (Input.GetKey(KeyCode.Minus) || Input.GetKey(KeyCode.J) && this.getModKeyPressing(modKey.Alt))
  476. maid.transform.RotateAround(maid.transform.position, new Vector3(vector3_2.x, 0.0f, vector3_2.z), 0.4f);
  477. else if (Input.GetKey(KeyCode.Quote) || Input.GetKey(KeyCode.L) && this.getModKeyPressing(modKey.Alt))
  478. maid.transform.RotateAround(maid.transform.position, new Vector3(vector3_2.x, 0.0f, vector3_2.z), -0.4f);
  479. if (Input.GetKeyUp(KeyCode.H) && !hFlg)
  480. {
  481. if (h2Flg)
  482. {
  483. h2Flg = false;
  484. }
  485. else
  486. {
  487. if (isVR)
  488. isF6 = true;
  489. if (!(bool) ((Object) maidArray[0]))
  490. maidArray[0] = GameMain.Instance.CharacterMgr.GetMaid(0);
  491. string str = "";
  492. if (wearIndex == 0)
  493. {
  494. str = "Underwear";
  495. wearIndex = 1;
  496. isWear = false;
  497. isSkirt = false;
  498. isBra = true;
  499. isPanz = true;
  500. isHeadset = false;
  501. isGlove = false;
  502. isStkg = true;
  503. isShoes = false;
  504. }
  505. else if (wearIndex == 1)
  506. {
  507. str = "Nude";
  508. wearIndex = 2;
  509. isWear = false;
  510. isSkirt = false;
  511. isBra = false;
  512. isPanz = false;
  513. isHeadset = false;
  514. isGlove = false;
  515. isStkg = false;
  516. isShoes = false;
  517. }
  518. else if (wearIndex == 2)
  519. {
  520. str = "None";
  521. wearIndex = 0;
  522. isWear = true;
  523. isSkirt = true;
  524. isBra = true;
  525. isPanz = true;
  526. isHeadset = true;
  527. isGlove = true;
  528. isStkg = true;
  529. isShoes = true;
  530. }
  531. TBody.MaskMode f_eMode = (TBody.MaskMode) Enum.Parse(typeof(TBody.MaskMode), str);
  532. for (int index1 = 0; index1 < maidCnt; ++index1)
  533. {
  534. if ((bool) ((Object) maidArray[index1]) && maidArray[index1].Visible)
  535. {
  536. if (!isVR && goSlot[(int) selectList[index1]] != null)
  537. {
  538. maidArray[index1].body0.goSlot =
  539. new List<TBodySkin>((IEnumerable<TBodySkin>) goSlot[(int) selectList[index1]]);
  540. for (int index2 = 0; index2 < bodyHit[(int) selectList[index1]].Count; ++index2)
  541. maidArray[index1].body0.goSlot[index2].bonehair.bodyhit = bodyHit[(int) selectList[index1]][index2];
  542. }
  543. maidArray[index1].body0.SetMaskMode(f_eMode);
  544. }
  545. }
  546. }
  547. }
  548. }
  549. if (isVR)
  550. {
  551. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha1))
  552. {
  553. string bgName = GameMain.Instance.BgMgr.GetBGName();
  554. int num = 0;
  555. foreach (string bg in bgArray)
  556. {
  557. if (bg == bgName)
  558. {
  559. bgIndex = num;
  560. bgIndex6 = num;
  561. break;
  562. }
  563. ++num;
  564. }
  565. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  566. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  567. lightX6 = lightX[0];
  568. lightY6 = lightY[0];
  569. loadScene = 10000;
  570. kankyoLoadFlg = true;
  571. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  572. }
  573. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha2))
  574. {
  575. string bgName = GameMain.Instance.BgMgr.GetBGName();
  576. int num = 0;
  577. foreach (string bg in bgArray)
  578. {
  579. if (bg == bgName)
  580. {
  581. bgIndex = num;
  582. bgIndex6 = num;
  583. break;
  584. }
  585. ++num;
  586. }
  587. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  588. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  589. lightX6 = lightX[0];
  590. lightY6 = lightY[0];
  591. loadScene = 10001;
  592. kankyoLoadFlg = true;
  593. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  594. }
  595. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha3))
  596. {
  597. string bgName = GameMain.Instance.BgMgr.GetBGName();
  598. int num = 0;
  599. foreach (string bg in bgArray)
  600. {
  601. if (bg == bgName)
  602. {
  603. bgIndex = num;
  604. bgIndex6 = num;
  605. break;
  606. }
  607. ++num;
  608. }
  609. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  610. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  611. lightX6 = lightX[0];
  612. lightY6 = lightY[0];
  613. loadScene = 10002;
  614. kankyoLoadFlg = true;
  615. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  616. }
  617. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha4))
  618. {
  619. string bgName = GameMain.Instance.BgMgr.GetBGName();
  620. int num = 0;
  621. foreach (string bg in bgArray)
  622. {
  623. if (bg == bgName)
  624. {
  625. bgIndex = num;
  626. bgIndex6 = num;
  627. break;
  628. }
  629. ++num;
  630. }
  631. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  632. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  633. lightX6 = lightX[0];
  634. lightY6 = lightY[0];
  635. loadScene = 10003;
  636. kankyoLoadFlg = true;
  637. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  638. }
  639. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha5))
  640. {
  641. string bgName = GameMain.Instance.BgMgr.GetBGName();
  642. int num = 0;
  643. foreach (string bg in bgArray)
  644. {
  645. if (bg == bgName)
  646. {
  647. bgIndex = num;
  648. bgIndex6 = num;
  649. break;
  650. }
  651. ++num;
  652. }
  653. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  654. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  655. lightX6 = lightX[0];
  656. lightY6 = lightY[0];
  657. loadScene = 10004;
  658. kankyoLoadFlg = true;
  659. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  660. }
  661. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha6))
  662. {
  663. string bgName = GameMain.Instance.BgMgr.GetBGName();
  664. int num = 0;
  665. foreach (string bg in bgArray)
  666. {
  667. if (bg == bgName)
  668. {
  669. bgIndex = num;
  670. bgIndex6 = num;
  671. break;
  672. }
  673. ++num;
  674. }
  675. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  676. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  677. lightX6 = lightX[0];
  678. lightY6 = lightY[0];
  679. loadScene = 10005;
  680. kankyoLoadFlg = true;
  681. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  682. }
  683. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha7))
  684. {
  685. string bgName = GameMain.Instance.BgMgr.GetBGName();
  686. int num = 0;
  687. foreach (string bg in bgArray)
  688. {
  689. if (bg == bgName)
  690. {
  691. bgIndex = num;
  692. bgIndex6 = num;
  693. break;
  694. }
  695. ++num;
  696. }
  697. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  698. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  699. lightX6 = lightX[0];
  700. lightY6 = lightY[0];
  701. loadScene = 10006;
  702. kankyoLoadFlg = true;
  703. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  704. }
  705. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha8))
  706. {
  707. string bgName = GameMain.Instance.BgMgr.GetBGName();
  708. int num = 0;
  709. foreach (string bg in bgArray)
  710. {
  711. if (bg == bgName)
  712. {
  713. bgIndex = num;
  714. bgIndex6 = num;
  715. break;
  716. }
  717. ++num;
  718. }
  719. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  720. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  721. lightX6 = lightX[0];
  722. lightY6 = lightY[0];
  723. loadScene = 10007;
  724. kankyoLoadFlg = true;
  725. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  726. }
  727. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha9))
  728. {
  729. string bgName = GameMain.Instance.BgMgr.GetBGName();
  730. int num = 0;
  731. foreach (string bg in bgArray)
  732. {
  733. if (bg == bgName)
  734. {
  735. bgIndex = num;
  736. bgIndex6 = num;
  737. break;
  738. }
  739. ++num;
  740. }
  741. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  742. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  743. lightX6 = lightX[0];
  744. lightY6 = lightY[0];
  745. loadScene = 10008;
  746. kankyoLoadFlg = true;
  747. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  748. }
  749. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha0))
  750. {
  751. string bgName = GameMain.Instance.BgMgr.GetBGName();
  752. int num = 0;
  753. foreach (string bg in bgArray)
  754. {
  755. if (bg == bgName)
  756. {
  757. bgIndex = num;
  758. bgIndex6 = num;
  759. break;
  760. }
  761. ++num;
  762. }
  763. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  764. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  765. lightX6 = lightX[0];
  766. lightY6 = lightY[0];
  767. loadScene = 10009;
  768. kankyoLoadFlg = true;
  769. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  770. }
  771. }
  772. if (isSavePose4)
  773. {
  774. isSavePose4 = false;
  775. Maid maid = maidArray[selectMaidIndex];
  776. Vector3 localEulerAngles = maid.transform.localEulerAngles;
  777. maid.transform.localEulerAngles = new Vector3(0.0f, 0.0f, 0.0f);
  778. Vector3 position = maid.transform.position;
  779. maid.transform.position = new Vector3(0.0f, 0.0f, 0.0f);
  780. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  781. transform.eulerAngles = bipRotation;
  782. transform.position = bipPosition;
  783. maid.transform.localEulerAngles = localEulerAngles;
  784. maid.transform.position = position;
  785. CacheBoneDataArray cacheBoneDataArray = maid.gameObject.AddComponent<CacheBoneDataArray>();
  786. cacheBoneDataArray.CreateCache(maid.body0.GetBone("Bip01"));
  787. byte[] anmBinary = cacheBoneDataArray.GetAnmBinary(true, true);
  788. string path1 = Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose\\" + inName3 + ".anm";
  789. for (int index = 0; index < 100 && File.Exists(path1); ++index)
  790. {
  791. inName3 += "_";
  792. path1 = Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose\\" + inName3 + ".anm";
  793. }
  794. File.WriteAllBytes(path1, anmBinary);
  795. strList2 = new List<string>();
  796. strListE = new List<string>();
  797. strListE2 = new List<string>();
  798. strListS = new List<string>();
  799. strListD = new List<string>();
  800. strS = "";
  801. List<string> stringList1 = new List<string>(350 + poseArray2.Length);
  802. stringList1.AddRange((IEnumerable<string>) poseArray2);
  803. List<string> stringList2 = new List<string>();
  804. for (int index = 11; index < 200; ++index)
  805. {
  806. if (index < 100)
  807. {
  808. using (AFileBase afileBase = GameUty.FileSystem.FileOpen("edit_pose_0" + (object) index + "_f.anm"))
  809. {
  810. if (afileBase.IsValid())
  811. stringList2.Add("edit_pose_0" + (object) index + "_f");
  812. }
  813. }
  814. else
  815. {
  816. using (AFileBase afileBase = GameUty.FileSystem.FileOpen("edit_pose_" + (object) index + "_f.anm"))
  817. {
  818. if (afileBase.IsValid())
  819. stringList2.Add("edit_pose_" + (object) index + "_f");
  820. }
  821. }
  822. }
  823. for (int index1 = 15; index1 < 25; ++index1)
  824. {
  825. for (int index2 = 0; index2 < 2; ++index2)
  826. {
  827. string str = "s";
  828. if (index2 == 1)
  829. str = "w";
  830. for (int index3 = 1; index3 < 20; ++index3)
  831. {
  832. if (index3 < 10)
  833. {
  834. using (AFileBase afileBase =
  835. GameUty.FileSystem.FileOpen("edit_pose_dg" + (object) index1 + str + "_00" + (object) index3
  836. + "_f.anm"))
  837. {
  838. if (afileBase.IsValid())
  839. stringList2.Add("edit_pose_dg" + (object) index1 + str + "_00" + (object) index3 + "_f");
  840. }
  841. }
  842. else
  843. {
  844. using (AFileBase afileBase =
  845. GameUty.FileSystem.FileOpen("edit_pose_dg" + (object) index1 + str + "_0" + (object) index3
  846. + "_f.anm"))
  847. {
  848. if (afileBase.IsValid())
  849. stringList2.Add("edit_pose_dg" + (object) index1 + str + "_0" + (object) index3 + "_f");
  850. }
  851. }
  852. }
  853. }
  854. }
  855. if (stringList2.Count > 0)
  856. stringList1.AddRange((IEnumerable<string>) stringList2.ToArray());
  857. stringList1.AddRange((IEnumerable<string>) poseArrayVP2);
  858. stringList1.AddRange((IEnumerable<string>) poseArrayFB);
  859. stringList1.AddRange((IEnumerable<string>) poseArray4);
  860. stringList1.AddRange((IEnumerable<string>) poseArray5);
  861. stringList1.AddRange((IEnumerable<string>) poseArray6);
  862. poseArray = stringList1.ToArray();
  863. ((Action<string, List<string>>) ((path, result_list) =>
  864. {
  865. string[] files = Directory.GetFiles(path);
  866. countS = 0;
  867. for (int index = 0; index < files.Length; ++index)
  868. {
  869. if (Path.GetExtension(files[index]) == ".anm")
  870. {
  871. strListS.Add(files[index].Split('\\')[files[index].Split('\\').Length - 1]
  872. .Split('.')[0] + "                    /"
  873. + files[index]);
  874. ++countS;
  875. }
  876. }
  877. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose", new List<string>());
  878. string[] list = GameUty.FileSystem.GetList("motion", AFileSystemBase.ListType.AllFile);
  879. int num1 = 0;
  880. List<string> stringList3 = new List<string>();
  881. foreach (string path2 in list)
  882. {
  883. string withoutExtension = Path.GetFileNameWithoutExtension(path2);
  884. string directoryName = Path.GetDirectoryName(path2);
  885. if (!withoutExtension.StartsWith("maid_motion_") && !withoutExtension.StartsWith("work_00")
  886. && (!withoutExtension.EndsWith("_3_")
  887. && !withoutExtension.EndsWith("_5_"))
  888. && (!withoutExtension.StartsWith("ck_")
  889. && !withoutExtension.StartsWith("vr_")
  890. && (!withoutExtension.StartsWith("dance_mc")
  891. && !withoutExtension.Contains("a01_")))
  892. && (!withoutExtension.StartsWith("j_")
  893. && !withoutExtension.StartsWith("k_")
  894. && (!withoutExtension.StartsWith("t_")
  895. && !withoutExtension.StartsWith("cbl_"))
  896. && (!withoutExtension.Contains("b01_")
  897. && !withoutExtension.Contains("b02_")
  898. && (!withoutExtension.Contains("_kubi_")
  899. && !withoutExtension.EndsWith("_m2"))))
  900. && (!withoutExtension.EndsWith("_m3")
  901. && !withoutExtension.Contains("_m2_once")
  902. && (!withoutExtension.Contains("_m3_once")
  903. && !withoutExtension.StartsWith("h_"))
  904. && (!withoutExtension.StartsWith("event_")
  905. && !withoutExtension.StartsWith("man_")
  906. && (!withoutExtension.EndsWith("_m")
  907. && !withoutExtension.Contains("_m_"))))
  908. && !withoutExtension.Contains("_man")
  909. && (!(withoutExtension == "dance_cm3d2_001_zoukin")
  910. && !(withoutExtension == "dance_cm3d2_001_mop")
  911. && (!(withoutExtension == "maid_motion")
  912. && !(withoutExtension == "aruki_1_idougo_f"))
  913. && (!(withoutExtension == "sleep2")
  914. && !(withoutExtension == "stand_akire2")
  915. && (!(withoutExtension == "ero_scene_001")
  916. && !(withoutExtension == "ero_scenefm_001")))
  917. && (!(withoutExtension == "training_001")
  918. && !(withoutExtension == "workff_001")
  919. && (!(withoutExtension == "workfm_001")
  920. && !(withoutExtension == "dance_cm3d21_005_moe_mset")))
  921. && !(withoutExtension == "hinpyoukai_001")))
  922. {
  923. if (!directoryName.Contains("\\sex\\"))
  924. {
  925. if (!withoutExtension.StartsWith("sex_"))
  926. {
  927. if (withoutExtension.StartsWith("dance_test"))
  928. {
  929. strListD.Add(withoutExtension);
  930. }
  931. else
  932. {
  933. bool flag = false;
  934. foreach (string str1 in strListS)
  935. {
  936. char[] chArray = new char[1] {'/'};
  937. string str2 = str1.Split(chArray)[0].Replace("                    ", "");
  938. if (withoutExtension == str2)
  939. {
  940. flag = true;
  941. break;
  942. }
  943. }
  944. if (!flag)
  945. stringList3.Add(withoutExtension);
  946. }
  947. }
  948. }
  949. else if (!withoutExtension.StartsWith("pose_"))
  950. strListE.Add(withoutExtension);
  951. }
  952. }
  953. foreach (string str in stringList3)
  954. {
  955. bool flag = false;
  956. for (int index = 0; index < poseArray.Length; ++index)
  957. {
  958. if (str == poseArray[index])
  959. flag = true;
  960. }
  961. if (!flag && str.StartsWith("edit_"))
  962. strList2.Add(str);
  963. }
  964. foreach (string str in stringList3)
  965. {
  966. bool flag = false;
  967. for (int index = 0; index < poseArray.Length; ++index)
  968. {
  969. if (str == poseArray[index])
  970. flag = true;
  971. }
  972. if (!flag && str.StartsWith("pose_"))
  973. strList2.Add(str);
  974. }
  975. foreach (string str in stringList3)
  976. {
  977. bool flag = false;
  978. for (int index = 0; index < poseArray.Length; ++index)
  979. {
  980. if (str == poseArray[index])
  981. flag = true;
  982. }
  983. if (!flag && !str.StartsWith("edit_") && !str.StartsWith("pose_"))
  984. strList2.Add(str);
  985. }
  986. foreach (string str in strListE)
  987. {
  988. bool flag = false;
  989. for (int index = 0; index < poseArray.Length; ++index)
  990. {
  991. if (str == poseArray[index])
  992. flag = true;
  993. }
  994. if (!flag)
  995. {
  996. strListE2.Add(str);
  997. ++num1;
  998. }
  999. }
  1000. stringList1.AddRange((IEnumerable<string>) strList2.ToArray());
  1001. stringList1.AddRange((IEnumerable<string>) strListE2.ToArray());
  1002. existPose = false;
  1003. poseIniStr = "";
  1004. foreach (IniKey key in this.Preferences["pose"].Keys)
  1005. {
  1006. IniKey iniKey = this.Preferences["pose"][key.Key];
  1007. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  1008. {
  1009. stringList1.AddRange((IEnumerable<string>) new string[1] {key.Key});
  1010. existPose = true;
  1011. if (poseIniStr == "")
  1012. poseIniStr = key.Key;
  1013. }
  1014. }
  1015. stringList1.AddRange((IEnumerable<string>) strListS.ToArray());
  1016. poseArray = stringList1.ToArray();
  1017. List<string> stringList4 = new List<string>(50 + poseGroupArray2.Length);
  1018. stringList4.AddRange((IEnumerable<string>) poseGroupArray2);
  1019. stringList4.AddRange((IEnumerable<string>) poseGroupArrayVP);
  1020. stringList4.AddRange((IEnumerable<string>) poseGroupArrayFB);
  1021. stringList4.AddRange((IEnumerable<string>) poseGroupArray3);
  1022. stringList4.Add(poseArray5[0]);
  1023. stringList4.Add(poseArray6[0]);
  1024. stringList4.Add(strList2[0]);
  1025. stringList4.Add(strListE2[0]);
  1026. existPose = true;
  1027. if (strListS.Count > 0 && poseIniStr == "")
  1028. stringList4.Add(strListS[0]);
  1029. if (poseIniStr != "")
  1030. stringList4.Add(poseIniStr);
  1031. poseGroupArray = stringList4.ToArray();
  1032. groupList = new ArrayList();
  1033. for (int index1 = 0; index1 < poseArray.Length; ++index1)
  1034. {
  1035. for (int index2 = 0; index2 < poseGroupArray.Length; ++index2)
  1036. {
  1037. if (poseGroupArray[index2] == poseArray[index1])
  1038. {
  1039. groupList.Add((object) index1);
  1040. if (poseGroupArray[index2] == strList2[0])
  1041. sPoseCount = index1;
  1042. }
  1043. }
  1044. }
  1045. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  1046. poseGroupComboList[0] = new GUIContent("1:通常");
  1047. for (int index = 0; index < poseGroupArray.Length; ++index)
  1048. {
  1049. if (poseGroupArray[index] == "maid_dressroom01")
  1050. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":立ち");
  1051. if (poseGroupArray[index] == "tennis_kamae_f")
  1052. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":中腰");
  1053. if (poseGroupArray[index] == "senakanagasi_f")
  1054. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":膝をつく");
  1055. if (poseGroupArray[index] == "work_hansei")
  1056. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":座り");
  1057. if (poseGroupArray[index] == "inu_taiki_f")
  1058. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":四つん這い");
  1059. if (poseGroupArray[index] == "syagami_pose_f")
  1060. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":床座り");
  1061. if (poseGroupArray[index] == "densyasuwari_taiki_f")
  1062. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":椅子座り");
  1063. if (poseGroupArray[index] == "work_kaiwa")
  1064. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ソファー座り");
  1065. if (poseGroupArray[index] == "dance_cm3d2_001_f1,14.14")
  1066. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ドキドキ☆Fallin' Love");
  1067. if (poseGroupArray[index] == "dance_cm3d_001_f1,39.25")
  1068. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":entrance to you");
  1069. if (poseGroupArray[index] == "dance_cm3d_002_end_f1,50.71")
  1070. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":scarlet leap");
  1071. if (poseGroupArray[index] == "dance_cm3d2_002_smt_f,7.76,")
  1072. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":stellar my tears");
  1073. if (poseGroupArray[index] == "dance_cm3d_003_sp2_f1,90.15")
  1074. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":rhythmix to you");
  1075. if (poseGroupArray[index] == "dance_cm3d2_003_hs_f1,0.01,")
  1076. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":happy!happy!スキャンダル!!");
  1077. if (poseGroupArray[index] == "dance_cm3d_004_kano_f1,124.93")
  1078. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":Can Know Two Close");
  1079. if (poseGroupArray[index] == "dance_cm3d2_004_sse_f1,0.01")
  1080. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":sweet sweet everyday");
  1081. if (poseGroupArray[index] == "turusi_sex_in_taiki_f")
  1082. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":拘束");
  1083. if (poseGroupArray[index] == "rosyutu_pose01_f")
  1084. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ");
  1085. if (poseGroupArray[index] == "rosyutu_aruki_f_once_,1.37")
  1086. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":歩き");
  1087. if (poseGroupArray[index] == "stand_desk1")
  1088. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":その他");
  1089. if (poseGroupArray[index] == poseArray5[0])
  1090. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンスMC");
  1091. if (poseGroupArray[index] == poseArray6[0])
  1092. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンス");
  1093. if (index == poseGroupArray.Length - 3)
  1094. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  1095. if (index == poseGroupArray.Length - 2)
  1096. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  1097. if (index == poseGroupArray.Length - 1)
  1098. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  1099. }
  1100. int index4 = -1;
  1101. for (int index1 = 0; index1 < groupList.Count; ++index1)
  1102. {
  1103. if (poseIndex[selectMaidIndex] < (int) groupList[index1])
  1104. {
  1105. index4 = index1;
  1106. break;
  1107. }
  1108. }
  1109. int length = (int) groupList[0];
  1110. int num2 = 0;
  1111. if (index4 > 0)
  1112. {
  1113. length = (int) groupList[index4] - (int) groupList[index4 - 1];
  1114. num2 = (int) groupList[index4 - 1];
  1115. }
  1116. if (index4 < 0)
  1117. {
  1118. index4 = groupList.Count;
  1119. length = poseArray.Length - (int) groupList[index4 - 1];
  1120. num2 = (int) groupList[index4 - 1];
  1121. }
  1122. poseComboList = new GUIContent[length];
  1123. int index5 = 0;
  1124. for (int index1 = num2; index1 < num2 + length; ++index1)
  1125. {
  1126. bool flag = false;
  1127. foreach (IniKey key in this.Preferences["pose"].Keys)
  1128. {
  1129. if (poseArray[index1] == key.Key)
  1130. {
  1131. IniKey iniKey = this.Preferences["pose"][key.Key];
  1132. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  1133. {
  1134. poseComboList[index5] =
  1135. new GUIContent((index5 + 1).ToString() + ":" + iniKey.Value.Split('_')[0] + "                    "
  1136. + key.Key);
  1137. flag = true;
  1138. }
  1139. }
  1140. }
  1141. if (!flag)
  1142. poseComboList[index5] = new GUIContent((index5 + 1).ToString() + ":" + poseArray[index1]);
  1143. ++index5;
  1144. }
  1145. poseGroupCombo.selectedItemIndex = index4;
  1146. poseGroupIndex = index4;
  1147. poseCombo.selectedItemIndex = 0;
  1148. for (int group = (int) groupList[groupList.Count - 1]; group < poseArray.Length; ++group)
  1149. {
  1150. if (poseArray[group].Split('/')[0].Replace("                    ", "") == inName3)
  1151. {
  1152. poseIndex[selectMaidIndex] = group;
  1153. string path2 = poseArray[group].Split('/')[1];
  1154. byte[] numArray = new byte[0];
  1155. try
  1156. {
  1157. using (FileStream fileStream = new FileStream(path2, FileMode.Open, FileAccess.Read))
  1158. {
  1159. numArray = new byte[fileStream.Length];
  1160. fileStream.Read(numArray, 0, numArray.Length);
  1161. }
  1162. }
  1163. catch { }
  1164. if (0 < numArray.Length)
  1165. {
  1166. long hashCode = (long) Path.GetFileName(path2).GetHashCode();
  1167. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  1168. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  1169. {
  1170. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  1171. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  1172. };
  1173. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  1174. maid.SetAutoTwist(f_eType, true);
  1175. break;
  1176. }
  1177. break;
  1178. }
  1179. }
  1180. isLock[selectMaidIndex] = false;
  1181. inName3 = "";
  1182. isSavePose = false;
  1183. }
  1184. if (isSavePose3)
  1185. {
  1186. Maid maid = maidArray[selectMaidIndex];
  1187. isSavePose3 = false;
  1188. isSavePose4 = true;
  1189. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  1190. transform.eulerAngles = bipRotation;
  1191. transform.position = bipPosition;
  1192. }
  1193. if (isSavePose2)
  1194. {
  1195. Maid maid = maidArray[selectMaidIndex];
  1196. isSavePose2 = false;
  1197. isSavePose3 = true;
  1198. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  1199. transform.eulerAngles = bipRotation;
  1200. transform.position = bipPosition;
  1201. }
  1202. if (isSavePose)
  1203. {
  1204. Maid maid = maidArray[selectMaidIndex];
  1205. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  1206. bipPosition = new Vector3(transform.position.x - maid.transform.position.x,
  1207. transform.position.y,
  1208. transform.position.z - maid.transform.position.z);
  1209. bipRotation = transform.eulerAngles;
  1210. maid.transform.localEulerAngles = new Vector3(0.0f, 0.0f, 0.0f);
  1211. maid.transform.position = new Vector3(maid.transform.position.x, 0.0f, maid.transform.position.z);
  1212. isSavePose = false;
  1213. isSavePose2 = true;
  1214. isStop[selectMaidIndex] = true;
  1215. }
  1216. if (saveScene > 0)
  1217. {
  1218. string str1 = "";
  1219. string str2 = "";
  1220. DateTime now = DateTime.Now;
  1221. string str3 = now.Year.ToString() + "/" + now.Month.ToString("00") + "/" + now.Day.ToString("00") + " "
  1222. + now.Hour.ToString("00") + ":" + now.Minute.ToString("00");
  1223. if (saveScene < 9999)
  1224. {
  1225. date[saveScene - 1 - page * 10] = str3;
  1226. ninzu[saveScene - 1 - page * 10] = maidCnt.ToString() + "人";
  1227. }
  1228. string[] strArray1 = new string[7]
  1229. {
  1230. str2 + str3 + "," + (object) maidCnt + "," + bgArray[bgIndex].Replace("_", " ") + ",",
  1231. bg.localEulerAngles.x.ToString("0.###"), ",", null, null, null, null
  1232. };
  1233. string[] strArray2 = strArray1;
  1234. int index1 = 3;
  1235. float num = bg.localEulerAngles.y;
  1236. string str4 = num.ToString("0.###");
  1237. strArray2[index1] = str4;
  1238. strArray1[4] = ",";
  1239. string[] strArray3 = strArray1;
  1240. int index2 = 5;
  1241. num = bg.localEulerAngles.z;
  1242. string str5 = num.ToString("0.###");
  1243. strArray3[index2] = str5;
  1244. strArray1[6] = ",";
  1245. string str6 = string.Concat(strArray1);
  1246. string[] strArray4 = new string[7];
  1247. strArray4[0] = str6;
  1248. string[] strArray5 = strArray4;
  1249. int index3 = 1;
  1250. num = bg.position.x;
  1251. string str7 = num.ToString("0.###");
  1252. strArray5[index3] = str7;
  1253. strArray4[2] = ",";
  1254. string[] strArray6 = strArray4;
  1255. int index4 = 3;
  1256. num = bg.position.y;
  1257. string str8 = num.ToString("0.###");
  1258. strArray6[index4] = str8;
  1259. strArray4[4] = ",";
  1260. string[] strArray7 = strArray4;
  1261. int index5 = 5;
  1262. num = bg.position.z;
  1263. string str9 = num.ToString("0.###");
  1264. strArray7[index5] = str9;
  1265. strArray4[6] = ",";
  1266. string str10 = string.Concat(strArray4);
  1267. string[] strArray8 = new string[7];
  1268. strArray8[0] = str10;
  1269. string[] strArray9 = strArray8;
  1270. int index6 = 1;
  1271. num = bg.localScale.x;
  1272. string str11 = num.ToString("0.###");
  1273. strArray9[index6] = str11;
  1274. strArray8[2] = ",";
  1275. string[] strArray10 = strArray8;
  1276. int index7 = 3;
  1277. num = bg.localScale.y;
  1278. string str12 = num.ToString("0.###");
  1279. strArray10[index7] = str12;
  1280. strArray8[4] = ",";
  1281. string[] strArray11 = strArray8;
  1282. int index8 = 5;
  1283. num = bg.localScale.z;
  1284. string str13 = num.ToString("0.###");
  1285. strArray11[index8] = str13;
  1286. strArray8[6] = ",";
  1287. string str14 = string.Concat(strArray8) + softG.x.ToString("0.###") + "," + softG.y.ToString("0.###") + ","
  1288. + softG.z.ToString("0.###") + "," + (object) bgmIndex + "," + (object) effectIndex + ","
  1289. + (object) lightIndex[0] + "," + (object) lightColorR[0] + "," + (object) lightColorG[0] + ","
  1290. + (object) lightColorB[0] + ",";
  1291. string[] strArray12 = new string[7];
  1292. strArray12[0] = str14;
  1293. string[] strArray13 = strArray12;
  1294. int index9 = 1;
  1295. num = GameMain.Instance.MainLight.transform.eulerAngles.x;
  1296. string str15 = num.ToString("0.###");
  1297. strArray13[index9] = str15;
  1298. strArray12[2] = ",";
  1299. string[] strArray14 = strArray12;
  1300. int index10 = 3;
  1301. num = GameMain.Instance.MainLight.transform.eulerAngles.y;
  1302. string str16 = num.ToString("0.###");
  1303. strArray14[index10] = str16;
  1304. strArray12[4] = ",";
  1305. string[] strArray15 = strArray12;
  1306. int index11 = 5;
  1307. num = GameMain.Instance.MainLight.transform.eulerAngles.z;
  1308. string str17 = num.ToString("0.###");
  1309. strArray15[index11] = str17;
  1310. strArray12[6] = ",";
  1311. string str18 = string.Concat(strArray12) + (object) GameMain.Instance.MainLight.GetComponent<Light>().intensity + ","
  1312. + (object) GameMain.Instance.MainLight.GetComponent<Light>().spotAngle + ","
  1313. + (object) GameMain.Instance.MainLight.GetComponent<Light>().range + ","
  1314. + (object) mainCamera.GetTargetPos().x + "," + (object) mainCamera.GetTargetPos().y + ","
  1315. + (object) mainCamera.GetTargetPos().z + "," + (object) mainCamera.GetDistance() + ",";
  1316. string[] strArray16 = new string[7];
  1317. strArray16[0] = str18;
  1318. string[] strArray17 = strArray16;
  1319. int index12 = 1;
  1320. num = mainCamera.transform.eulerAngles.x;
  1321. string str19 = num.ToString("0.###");
  1322. strArray17[index12] = str19;
  1323. strArray16[2] = ",";
  1324. string[] strArray18 = strArray16;
  1325. int index13 = 3;
  1326. num = mainCamera.transform.eulerAngles.y;
  1327. string str20 = num.ToString("0.###");
  1328. strArray18[index13] = str20;
  1329. strArray16[4] = ",";
  1330. string[] strArray19 = strArray16;
  1331. int index14 = 5;
  1332. num = mainCamera.transform.eulerAngles.z;
  1333. string str21 = num.ToString("0.###");
  1334. strArray19[index14] = str21;
  1335. strArray16[6] = ",";
  1336. string str22 = string.Concat(strArray16);
  1337. inName = inName.Replace("_", " ").Replace(",", " ");
  1338. inText = inText.Replace("_", " ").Replace(",", " ");
  1339. string str23;
  1340. if (isMessage)
  1341. str23 = str22 + "1," + inName + "," + inText.Replace("\n", "&kaigyo");
  1342. else
  1343. str23 = str22 + "0,,";
  1344. if (doguObject.Count > 0)
  1345. {
  1346. string str24 = str23 + "," + doguArray[doguIndex[doguSelectIndex]].Replace("_", " ") + ",";
  1347. string[] strArray20 = new string[7];
  1348. strArray20[0] = str24;
  1349. string[] strArray21 = strArray20;
  1350. int index15 = 1;
  1351. num = doguObject[doguSelectIndex].transform.localEulerAngles.x;
  1352. string str25 = num.ToString("0.###");
  1353. strArray21[index15] = str25;
  1354. strArray20[2] = ",";
  1355. string[] strArray22 = strArray20;
  1356. int index16 = 3;
  1357. num = doguObject[doguSelectIndex].transform.localEulerAngles.y;
  1358. string str26 = num.ToString("0.###");
  1359. strArray22[index16] = str26;
  1360. strArray20[4] = ",";
  1361. string[] strArray23 = strArray20;
  1362. int index17 = 5;
  1363. num = doguObject[doguSelectIndex].transform.localEulerAngles.z;
  1364. string str27 = num.ToString("0.###");
  1365. strArray23[index17] = str27;
  1366. strArray20[6] = ",";
  1367. string str28 = string.Concat(strArray20);
  1368. string[] strArray24 = new string[7];
  1369. strArray24[0] = str28;
  1370. string[] strArray25 = strArray24;
  1371. int index18 = 1;
  1372. num = doguObject[doguSelectIndex].transform.position.x;
  1373. string str29 = num.ToString("0.###");
  1374. strArray25[index18] = str29;
  1375. strArray24[2] = ",";
  1376. string[] strArray26 = strArray24;
  1377. int index19 = 3;
  1378. num = doguObject[doguSelectIndex].transform.position.y;
  1379. string str30 = num.ToString("0.###");
  1380. strArray26[index19] = str30;
  1381. strArray24[4] = ",";
  1382. string[] strArray27 = strArray24;
  1383. int index20 = 5;
  1384. num = doguObject[doguSelectIndex].transform.position.z;
  1385. string str31 = num.ToString("0.###");
  1386. strArray27[index20] = str31;
  1387. strArray24[6] = ",";
  1388. string str32 = string.Concat(strArray24);
  1389. string[] strArray28 = new string[6];
  1390. strArray28[0] = str32;
  1391. string[] strArray29 = strArray28;
  1392. int index21 = 1;
  1393. num = doguObject[doguSelectIndex].transform.localScale.x;
  1394. string str33 = num.ToString("0.###");
  1395. strArray29[index21] = str33;
  1396. strArray28[2] = ",";
  1397. string[] strArray30 = strArray28;
  1398. int index22 = 3;
  1399. num = doguObject[doguSelectIndex].transform.localScale.y;
  1400. string str34 = num.ToString("0.###");
  1401. strArray30[index22] = str34;
  1402. strArray28[4] = ",";
  1403. string[] strArray31 = strArray28;
  1404. int index23 = 5;
  1405. num = doguObject[doguSelectIndex].transform.localScale.z;
  1406. string str35 = num.ToString("0.###");
  1407. strArray31[index23] = str35;
  1408. str23 = string.Concat(strArray28);
  1409. }
  1410. string str36 = str23 + "_";
  1411. for (int i = 0; i < maidCnt; ++i)
  1412. {
  1413. Maid maid = maidArray[i];
  1414. string str24 = "";
  1415. string str25 = "";
  1416. this.SetIK(maid, i);
  1417. for (int index15 = 0; index15 < 20; ++index15)
  1418. {
  1419. string str26 = str24;
  1420. string[] strArray20 = new string[7];
  1421. strArray20[0] = str26;
  1422. string[] strArray21 = strArray20;
  1423. int index16 = 1;
  1424. num = Finger[i, index15].localEulerAngles.x;
  1425. string str27 = num.ToString("0.###");
  1426. strArray21[index16] = str27;
  1427. strArray20[2] = ",";
  1428. string[] strArray22 = strArray20;
  1429. int index17 = 3;
  1430. num = Finger[i, index15].localEulerAngles.y;
  1431. string str28 = num.ToString("0.###");
  1432. strArray22[index17] = str28;
  1433. strArray20[4] = ",";
  1434. string[] strArray23 = strArray20;
  1435. int index18 = 5;
  1436. num = Finger[i, index15].localEulerAngles.z;
  1437. string str29 = num.ToString("0.###");
  1438. strArray23[index18] = str29;
  1439. strArray20[6] = ":";
  1440. str24 = string.Concat(strArray20);
  1441. }
  1442. for (int index15 = 20; index15 < 40; ++index15)
  1443. {
  1444. string str26 = str25;
  1445. string[] strArray20 = new string[7];
  1446. strArray20[0] = str26;
  1447. string[] strArray21 = strArray20;
  1448. int index16 = 1;
  1449. num = Finger[i, index15].localEulerAngles.x;
  1450. string str27 = num.ToString("0.###");
  1451. strArray21[index16] = str27;
  1452. strArray20[2] = ",";
  1453. string[] strArray22 = strArray20;
  1454. int index17 = 3;
  1455. num = Finger[i, index15].localEulerAngles.y;
  1456. string str28 = num.ToString("0.###");
  1457. strArray22[index17] = str28;
  1458. strArray20[4] = ",";
  1459. string[] strArray23 = strArray20;
  1460. int index18 = 5;
  1461. num = Finger[i, index15].localEulerAngles.z;
  1462. string str29 = num.ToString("0.###");
  1463. strArray23[index18] = str29;
  1464. strArray20[6] = ":";
  1465. str25 = string.Concat(strArray20);
  1466. }
  1467. string str30 = "";
  1468. string[] strArray24 = new string[7];
  1469. strArray24[0] = str30;
  1470. string[] strArray25 = strArray24;
  1471. int index19 = 1;
  1472. num = Spine.eulerAngles.x;
  1473. string str31 = num.ToString("0.###");
  1474. strArray25[index19] = str31;
  1475. strArray24[2] = ",";
  1476. string[] strArray26 = strArray24;
  1477. int index20 = 3;
  1478. num = Spine.eulerAngles.y;
  1479. string str32 = num.ToString("0.###");
  1480. strArray26[index20] = str32;
  1481. strArray24[4] = ",";
  1482. string[] strArray27 = strArray24;
  1483. int index21 = 5;
  1484. num = Spine.eulerAngles.z;
  1485. string str33 = num.ToString("0.###");
  1486. strArray27[index21] = str33;
  1487. strArray24[6] = ":";
  1488. string str34 = string.Concat(strArray24);
  1489. string[] strArray28 = new string[7];
  1490. strArray28[0] = str34;
  1491. string[] strArray29 = strArray28;
  1492. int index22 = 1;
  1493. num = Spine0a.eulerAngles.x;
  1494. string str35 = num.ToString("0.###");
  1495. strArray29[index22] = str35;
  1496. strArray28[2] = ",";
  1497. string[] strArray30 = strArray28;
  1498. int index23 = 3;
  1499. num = Spine0a.eulerAngles.y;
  1500. string str37 = num.ToString("0.###");
  1501. strArray30[index23] = str37;
  1502. strArray28[4] = ",";
  1503. string[] strArray31 = strArray28;
  1504. int index24 = 5;
  1505. num = Spine0a.eulerAngles.z;
  1506. string str38 = num.ToString("0.###");
  1507. strArray31[index24] = str38;
  1508. strArray28[6] = ":";
  1509. string str39 = string.Concat(strArray28);
  1510. string[] strArray32 = new string[7];
  1511. strArray32[0] = str39;
  1512. string[] strArray33 = strArray32;
  1513. int index25 = 1;
  1514. num = Spine1.eulerAngles.x;
  1515. string str40 = num.ToString("0.###");
  1516. strArray33[index25] = str40;
  1517. strArray32[2] = ",";
  1518. string[] strArray34 = strArray32;
  1519. int index26 = 3;
  1520. num = Spine1.eulerAngles.y;
  1521. string str41 = num.ToString("0.###");
  1522. strArray34[index26] = str41;
  1523. strArray32[4] = ",";
  1524. string[] strArray35 = strArray32;
  1525. int index27 = 5;
  1526. num = Spine1.eulerAngles.z;
  1527. string str42 = num.ToString("0.###");
  1528. strArray35[index27] = str42;
  1529. strArray32[6] = ":";
  1530. string str43 = string.Concat(strArray32);
  1531. string[] strArray36 = new string[7];
  1532. strArray36[0] = str43;
  1533. string[] strArray37 = strArray36;
  1534. int index28 = 1;
  1535. num = Spine1a.eulerAngles.x;
  1536. string str44 = num.ToString("0.###");
  1537. strArray37[index28] = str44;
  1538. strArray36[2] = ",";
  1539. string[] strArray38 = strArray36;
  1540. int index29 = 3;
  1541. num = Spine1a.eulerAngles.y;
  1542. string str45 = num.ToString("0.###");
  1543. strArray38[index29] = str45;
  1544. strArray36[4] = ",";
  1545. string[] strArray39 = strArray36;
  1546. int index30 = 5;
  1547. num = Spine1a.eulerAngles.z;
  1548. string str46 = num.ToString("0.###");
  1549. strArray39[index30] = str46;
  1550. strArray36[6] = ":";
  1551. string str47 = string.Concat(strArray36);
  1552. string[] strArray40 = new string[7];
  1553. strArray40[0] = str47;
  1554. string[] strArray41 = strArray40;
  1555. int index31 = 1;
  1556. num = Pelvis.eulerAngles.x;
  1557. string str48 = num.ToString("0.###");
  1558. strArray41[index31] = str48;
  1559. strArray40[2] = ",";
  1560. string[] strArray42 = strArray40;
  1561. int index32 = 3;
  1562. num = Pelvis.eulerAngles.y;
  1563. string str49 = num.ToString("0.###");
  1564. strArray42[index32] = str49;
  1565. strArray40[4] = ",";
  1566. string[] strArray43 = strArray40;
  1567. int index33 = 5;
  1568. num = Pelvis.eulerAngles.z;
  1569. string str50 = num.ToString("0.###");
  1570. strArray43[index33] = str50;
  1571. strArray40[6] = ":";
  1572. string str51 = string.Concat(strArray40);
  1573. string[] strArray44 = new string[7];
  1574. strArray44[0] = str51;
  1575. string[] strArray45 = strArray44;
  1576. int index34 = 1;
  1577. num = HandL1[i].localEulerAngles.x;
  1578. string str52 = num.ToString("0.###");
  1579. strArray45[index34] = str52;
  1580. strArray44[2] = ",";
  1581. string[] strArray46 = strArray44;
  1582. int index35 = 3;
  1583. num = HandL1[i].localEulerAngles.y;
  1584. string str53 = num.ToString("0.###");
  1585. strArray46[index35] = str53;
  1586. strArray44[4] = ",";
  1587. string[] strArray47 = strArray44;
  1588. int index36 = 5;
  1589. num = HandL1[i].localEulerAngles.z;
  1590. string str54 = num.ToString("0.###");
  1591. strArray47[index36] = str54;
  1592. strArray44[6] = ":";
  1593. string str55 = string.Concat(strArray44);
  1594. string[] strArray48 = new string[7];
  1595. strArray48[0] = str55;
  1596. string[] strArray49 = strArray48;
  1597. int index37 = 1;
  1598. num = UpperArmL1[i].eulerAngles.x;
  1599. string str56 = num.ToString("0.###");
  1600. strArray49[index37] = str56;
  1601. strArray48[2] = ",";
  1602. string[] strArray50 = strArray48;
  1603. int index38 = 3;
  1604. num = UpperArmL1[i].eulerAngles.y;
  1605. string str57 = num.ToString("0.###");
  1606. strArray50[index38] = str57;
  1607. strArray48[4] = ",";
  1608. string[] strArray51 = strArray48;
  1609. int index39 = 5;
  1610. num = UpperArmL1[i].eulerAngles.z;
  1611. string str58 = num.ToString("0.###");
  1612. strArray51[index39] = str58;
  1613. strArray48[6] = ":";
  1614. string str59 = string.Concat(strArray48);
  1615. string[] strArray52 = new string[7];
  1616. strArray52[0] = str59;
  1617. string[] strArray53 = strArray52;
  1618. int index40 = 1;
  1619. num = ForearmL1[i].eulerAngles.x;
  1620. string str60 = num.ToString("0.###");
  1621. strArray53[index40] = str60;
  1622. strArray52[2] = ",";
  1623. string[] strArray54 = strArray52;
  1624. int index41 = 3;
  1625. num = ForearmL1[i].eulerAngles.y;
  1626. string str61 = num.ToString("0.###");
  1627. strArray54[index41] = str61;
  1628. strArray52[4] = ",";
  1629. string[] strArray55 = strArray52;
  1630. int index42 = 5;
  1631. num = ForearmL1[i].eulerAngles.z;
  1632. string str62 = num.ToString("0.###");
  1633. strArray55[index42] = str62;
  1634. strArray52[6] = ":";
  1635. string str63 = string.Concat(strArray52);
  1636. string[] strArray56 = new string[7];
  1637. strArray56[0] = str63;
  1638. string[] strArray57 = strArray56;
  1639. int index43 = 1;
  1640. num = HandR1[i].localEulerAngles.x;
  1641. string str64 = num.ToString("0.###");
  1642. strArray57[index43] = str64;
  1643. strArray56[2] = ",";
  1644. string[] strArray58 = strArray56;
  1645. int index44 = 3;
  1646. num = HandR1[i].localEulerAngles.y;
  1647. string str65 = num.ToString("0.###");
  1648. strArray58[index44] = str65;
  1649. strArray56[4] = ",";
  1650. string[] strArray59 = strArray56;
  1651. int index45 = 5;
  1652. num = HandR1[i].localEulerAngles.z;
  1653. string str66 = num.ToString("0.###");
  1654. strArray59[index45] = str66;
  1655. strArray56[6] = ":";
  1656. string str67 = string.Concat(strArray56);
  1657. string[] strArray60 = new string[7];
  1658. strArray60[0] = str67;
  1659. string[] strArray61 = strArray60;
  1660. int index46 = 1;
  1661. num = UpperArmR1[i].eulerAngles.x;
  1662. string str68 = num.ToString("0.###");
  1663. strArray61[index46] = str68;
  1664. strArray60[2] = ",";
  1665. string[] strArray62 = strArray60;
  1666. int index47 = 3;
  1667. num = UpperArmR1[i].eulerAngles.y;
  1668. string str69 = num.ToString("0.###");
  1669. strArray62[index47] = str69;
  1670. strArray60[4] = ",";
  1671. string[] strArray63 = strArray60;
  1672. int index48 = 5;
  1673. num = UpperArmR1[i].eulerAngles.z;
  1674. string str70 = num.ToString("0.###");
  1675. strArray63[index48] = str70;
  1676. strArray60[6] = ":";
  1677. string str71 = string.Concat(strArray60);
  1678. string[] strArray64 = new string[7];
  1679. strArray64[0] = str71;
  1680. string[] strArray65 = strArray64;
  1681. int index49 = 1;
  1682. num = ForearmR1[i].eulerAngles.x;
  1683. string str72 = num.ToString("0.###");
  1684. strArray65[index49] = str72;
  1685. strArray64[2] = ",";
  1686. string[] strArray66 = strArray64;
  1687. int index50 = 3;
  1688. num = ForearmR1[i].eulerAngles.y;
  1689. string str73 = num.ToString("0.###");
  1690. strArray66[index50] = str73;
  1691. strArray64[4] = ",";
  1692. string[] strArray67 = strArray64;
  1693. int index51 = 5;
  1694. num = ForearmR1[i].eulerAngles.z;
  1695. string str74 = num.ToString("0.###");
  1696. strArray67[index51] = str74;
  1697. strArray64[6] = ":";
  1698. string str75 = string.Concat(strArray64);
  1699. string[] strArray68 = new string[7];
  1700. strArray68[0] = str75;
  1701. string[] strArray69 = strArray68;
  1702. int index52 = 1;
  1703. num = HandL2[i].localEulerAngles.x;
  1704. string str76 = num.ToString("0.###");
  1705. strArray69[index52] = str76;
  1706. strArray68[2] = ",";
  1707. string[] strArray70 = strArray68;
  1708. int index53 = 3;
  1709. num = HandL2[i].localEulerAngles.y;
  1710. string str77 = num.ToString("0.###");
  1711. strArray70[index53] = str77;
  1712. strArray68[4] = ",";
  1713. string[] strArray71 = strArray68;
  1714. int index54 = 5;
  1715. num = HandL2[i].localEulerAngles.z;
  1716. string str78 = num.ToString("0.###");
  1717. strArray71[index54] = str78;
  1718. strArray68[6] = ":";
  1719. string str79 = string.Concat(strArray68);
  1720. string[] strArray72 = new string[7];
  1721. strArray72[0] = str79;
  1722. string[] strArray73 = strArray72;
  1723. int index55 = 1;
  1724. num = UpperArmL2[i].eulerAngles.x;
  1725. string str80 = num.ToString("0.###");
  1726. strArray73[index55] = str80;
  1727. strArray72[2] = ",";
  1728. string[] strArray74 = strArray72;
  1729. int index56 = 3;
  1730. num = UpperArmL2[i].eulerAngles.y;
  1731. string str81 = num.ToString("0.###");
  1732. strArray74[index56] = str81;
  1733. strArray72[4] = ",";
  1734. string[] strArray75 = strArray72;
  1735. int index57 = 5;
  1736. num = UpperArmL2[i].eulerAngles.z;
  1737. string str82 = num.ToString("0.###");
  1738. strArray75[index57] = str82;
  1739. strArray72[6] = ":";
  1740. string str83 = string.Concat(strArray72);
  1741. string[] strArray76 = new string[7];
  1742. strArray76[0] = str83;
  1743. string[] strArray77 = strArray76;
  1744. int index58 = 1;
  1745. num = ForearmL2[i].eulerAngles.x;
  1746. string str84 = num.ToString("0.###");
  1747. strArray77[index58] = str84;
  1748. strArray76[2] = ",";
  1749. string[] strArray78 = strArray76;
  1750. int index59 = 3;
  1751. num = ForearmL2[i].eulerAngles.y;
  1752. string str85 = num.ToString("0.###");
  1753. strArray78[index59] = str85;
  1754. strArray76[4] = ",";
  1755. string[] strArray79 = strArray76;
  1756. int index60 = 5;
  1757. num = ForearmL2[i].eulerAngles.z;
  1758. string str86 = num.ToString("0.###");
  1759. strArray79[index60] = str86;
  1760. strArray76[6] = ":";
  1761. string str87 = string.Concat(strArray76);
  1762. string[] strArray80 = new string[7];
  1763. strArray80[0] = str87;
  1764. string[] strArray81 = strArray80;
  1765. int index61 = 1;
  1766. num = HandR2[i].localEulerAngles.x;
  1767. string str88 = num.ToString("0.###");
  1768. strArray81[index61] = str88;
  1769. strArray80[2] = ",";
  1770. string[] strArray82 = strArray80;
  1771. int index62 = 3;
  1772. num = HandR2[i].localEulerAngles.y;
  1773. string str89 = num.ToString("0.###");
  1774. strArray82[index62] = str89;
  1775. strArray80[4] = ",";
  1776. string[] strArray83 = strArray80;
  1777. int index63 = 5;
  1778. num = HandR2[i].localEulerAngles.z;
  1779. string str90 = num.ToString("0.###");
  1780. strArray83[index63] = str90;
  1781. strArray80[6] = ":";
  1782. string str91 = string.Concat(strArray80);
  1783. string[] strArray84 = new string[7];
  1784. strArray84[0] = str91;
  1785. string[] strArray85 = strArray84;
  1786. int index64 = 1;
  1787. num = UpperArmR2[i].eulerAngles.x;
  1788. string str92 = num.ToString("0.###");
  1789. strArray85[index64] = str92;
  1790. strArray84[2] = ",";
  1791. string[] strArray86 = strArray84;
  1792. int index65 = 3;
  1793. num = UpperArmR2[i].eulerAngles.y;
  1794. string str93 = num.ToString("0.###");
  1795. strArray86[index65] = str93;
  1796. strArray84[4] = ",";
  1797. string[] strArray87 = strArray84;
  1798. int index66 = 5;
  1799. num = UpperArmR2[i].eulerAngles.z;
  1800. string str94 = num.ToString("0.###");
  1801. strArray87[index66] = str94;
  1802. strArray84[6] = ":";
  1803. string str95 = string.Concat(strArray84);
  1804. string[] strArray88 = new string[7];
  1805. strArray88[0] = str95;
  1806. string[] strArray89 = strArray88;
  1807. int index67 = 1;
  1808. num = ForearmR2[i].eulerAngles.x;
  1809. string str96 = num.ToString("0.###");
  1810. strArray89[index67] = str96;
  1811. strArray88[2] = ",";
  1812. string[] strArray90 = strArray88;
  1813. int index68 = 3;
  1814. num = ForearmR2[i].eulerAngles.y;
  1815. string str97 = num.ToString("0.###");
  1816. strArray90[index68] = str97;
  1817. strArray88[4] = ",";
  1818. string[] strArray91 = strArray88;
  1819. int index69 = 5;
  1820. num = ForearmR2[i].eulerAngles.z;
  1821. string str98 = num.ToString("0.###");
  1822. strArray91[index69] = str98;
  1823. strArray88[6] = ":";
  1824. string str99 = string.Concat(strArray88);
  1825. string[] strArray92 = new string[7];
  1826. strArray92[0] = str99;
  1827. string[] strArray93 = strArray92;
  1828. int index70 = 1;
  1829. num = Head.eulerAngles.x;
  1830. string str100 = num.ToString("0.###");
  1831. strArray93[index70] = str100;
  1832. strArray92[2] = ",";
  1833. string[] strArray94 = strArray92;
  1834. int index71 = 3;
  1835. num = Head.eulerAngles.y;
  1836. string str101 = num.ToString("0.###");
  1837. strArray94[index71] = str101;
  1838. strArray92[4] = ",";
  1839. string[] strArray95 = strArray92;
  1840. int index72 = 5;
  1841. num = Head.eulerAngles.z;
  1842. string str102 = num.ToString("0.###");
  1843. strArray95[index72] = str102;
  1844. strArray92[6] = ":";
  1845. string str103 = string.Concat(strArray92);
  1846. string[] strArray96 = new string[7];
  1847. strArray96[0] = str103;
  1848. string[] strArray97 = strArray96;
  1849. int index73 = 1;
  1850. num = maid.transform.localEulerAngles.x;
  1851. string str104 = num.ToString("0.###");
  1852. strArray97[index73] = str104;
  1853. strArray96[2] = ",";
  1854. string[] strArray98 = strArray96;
  1855. int index74 = 3;
  1856. num = maid.transform.localEulerAngles.y;
  1857. string str105 = num.ToString("0.###");
  1858. strArray98[index74] = str105;
  1859. strArray96[4] = ",";
  1860. string[] strArray99 = strArray96;
  1861. int index75 = 5;
  1862. num = maid.transform.localEulerAngles.z;
  1863. string str106 = num.ToString("0.###");
  1864. strArray99[index75] = str106;
  1865. strArray96[6] = ":";
  1866. string str107 = string.Concat(strArray96);
  1867. string[] strArray100 = new string[7];
  1868. strArray100[0] = str107;
  1869. string[] strArray101 = strArray100;
  1870. int index76 = 1;
  1871. num = maid.transform.position.x;
  1872. string str108 = num.ToString("0.###");
  1873. strArray101[index76] = str108;
  1874. strArray100[2] = ",";
  1875. string[] strArray102 = strArray100;
  1876. int index77 = 3;
  1877. num = maid.transform.position.y;
  1878. string str109 = num.ToString("0.###");
  1879. strArray102[index77] = str109;
  1880. strArray100[4] = ",";
  1881. string[] strArray103 = strArray100;
  1882. int index78 = 5;
  1883. num = maid.transform.position.z;
  1884. string str110 = num.ToString("0.###");
  1885. strArray103[index78] = str110;
  1886. strArray100[6] = ":";
  1887. string str111 = string.Concat(strArray100);
  1888. string[] strArray104 = new string[7];
  1889. strArray104[0] = str111;
  1890. string[] strArray105 = strArray104;
  1891. int index79 = 1;
  1892. num = maid.transform.localScale.x;
  1893. string str112 = num.ToString("0.###");
  1894. strArray105[index79] = str112;
  1895. strArray104[2] = ",";
  1896. string[] strArray106 = strArray104;
  1897. int index80 = 3;
  1898. num = maid.transform.localScale.y;
  1899. string str113 = num.ToString("0.###");
  1900. strArray106[index80] = str113;
  1901. strArray104[4] = ",";
  1902. string[] strArray107 = strArray104;
  1903. int index81 = 5;
  1904. num = maid.transform.localScale.z;
  1905. string str114 = num.ToString("0.###");
  1906. strArray107[index81] = str114;
  1907. strArray104[6] = ":";
  1908. string str115 = string.Concat(strArray104);
  1909. string str116;
  1910. if (poseArray[poseIndex[i]].Contains("MultipleMaidsPose"))
  1911. {
  1912. string str26 = poseArray[poseIndex[i]].Replace(" ", "").Split('/')[0];
  1913. str116 = str115 + "MultipleMaidsPose" + str26.Replace("_", " ").Replace(",", "|") + ":";
  1914. }
  1915. else
  1916. str116 = str115 + poseArray[poseIndex[i]].Replace("_", " ").Replace(",", "|") + ":";
  1917. string str117 = str116 + (object) faceIndex[i] + ":";
  1918. TMorph morph = maid.body0.Face.morph;
  1919. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  1920. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  1921. string str118 = str117 + (object) fieldValue2[(int) morph.hash[(object) "eyeclose"]] + ","
  1922. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose2"]] + ","
  1923. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose3"]] + ","
  1924. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose6"]] + ","
  1925. + (object) fieldValue1[(int) morph.hash[(object) "hitomih"]] + ","
  1926. + (object) fieldValue1[(int) morph.hash[(object) "hitomis"]] + ","
  1927. + (object) fieldValue1[(int) morph.hash[(object) "mayuha"]] + ","
  1928. + (object) fieldValue1[(int) morph.hash[(object) "mayuup"]] + ","
  1929. + (object) fieldValue1[(int) morph.hash[(object) "mayuv"]] + ","
  1930. + (object) fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] + ","
  1931. + (object) fieldValue1[(int) morph.hash[(object) "moutha"]] + ","
  1932. + (object) fieldValue1[(int) morph.hash[(object) "mouths"]] + ","
  1933. + (object) fieldValue1[(int) morph.hash[(object) "mouthdw"]] + ","
  1934. + (object) fieldValue1[(int) morph.hash[(object) "mouthup"]] + ","
  1935. + (object) fieldValue1[(int) morph.hash[(object) "tangout"]] + ","
  1936. + (object) fieldValue1[(int) morph.hash[(object) "tangup"]] + ","
  1937. + (object) fieldValue1[(int) morph.hash[(object) "eyebig"]] + ","
  1938. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose5"]] + ","
  1939. + (object) fieldValue1[(int) morph.hash[(object) "mayuw"]] + ","
  1940. + (object) fieldValue1[(int) morph.hash[(object) "mouthhe"]] + ","
  1941. + (object) fieldValue1[(int) morph.hash[(object) "mouthc"]] + ","
  1942. + (object) fieldValue1[(int) morph.hash[(object) "mouthi"]] + ","
  1943. + (object) fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] + ",";
  1944. string str119;
  1945. try
  1946. {
  1947. str119 = str118 + (object) fieldValue1[(int) morph.hash[(object) "tangopen"]] + ",";
  1948. }
  1949. catch
  1950. {
  1951. str119 = str118 + "0,";
  1952. }
  1953. string str120 = (double) fieldValue1[(int) morph.hash[(object) "namida"]] <= 0.0
  1954. ? str119 + (object) 0 + ","
  1955. : str119 + (object) 1 + ",";
  1956. string str121 = (double) fieldValue1[(int) morph.hash[(object) "tear1"]] <= 0.0
  1957. ? str120 + (object) 0 + ","
  1958. : str120 + (object) 1 + ",";
  1959. string str122 = (double) fieldValue1[(int) morph.hash[(object) "tear2"]] <= 0.0
  1960. ? str121 + (object) 0 + ","
  1961. : str121 + (object) 1 + ",";
  1962. string str123 = (double) fieldValue1[(int) morph.hash[(object) "tear3"]] <= 0.0
  1963. ? str122 + (object) 0 + ","
  1964. : str122 + (object) 1 + ",";
  1965. string str124 = (double) fieldValue1[(int) morph.hash[(object) "shock"]] <= 0.0
  1966. ? str123 + (object) 0 + ","
  1967. : str123 + (object) 1 + ",";
  1968. string str125 = (double) fieldValue1[(int) morph.hash[(object) "yodare"]] <= 0.0
  1969. ? str124 + (object) 0 + ","
  1970. : str124 + (object) 1 + ",";
  1971. string str126 = (double) fieldValue1[(int) morph.hash[(object) "hoho"]] <= 0.0
  1972. ? str125 + (object) 0 + ","
  1973. : str125 + (object) 1 + ",";
  1974. string str127 = (double) fieldValue1[(int) morph.hash[(object) "hoho2"]] <= 0.0
  1975. ? str126 + (object) 0 + ","
  1976. : str126 + (object) 1 + ",";
  1977. string str128 = (double) fieldValue1[(int) morph.hash[(object) "hohos"]] <= 0.0
  1978. ? str127 + (object) 0 + ","
  1979. : str127 + (object) 1 + ",";
  1980. string str129 = (double) fieldValue1[(int) morph.hash[(object) "hohol"]] <= 0.0
  1981. ? str128 + (object) 0 + ","
  1982. : str128 + (object) 1 + ",";
  1983. string str130 = (double) fieldValue1[(int) morph.hash[(object) "toothoff"]] <= 0.0
  1984. ? str129 + (object) 0 + ","
  1985. : str129 + (object) 1 + ",";
  1986. string str131 = (double) fieldValue1[(int) morph.hash[(object) "nosefook"]] <= 0.0
  1987. ? str130 + (object) 0 + ":"
  1988. : str130 + (object) 1 + ":";
  1989. string str132 = "";
  1990. string str133 =
  1991. (!isLook[i]
  1992. ? (object) (str132 + (object) 0 + ",0,0:")
  1993. : (object) (str132 + (object) 1 + "," + lookX[i].ToString("0.###") + "," + lookY[i].ToString("0.###")
  1994. + ":")).ToString() + (object) itemIndex[i] + ":";
  1995. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true);
  1996. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true);
  1997. string str134 = str133 + transform1.localEulerAngles.x.ToString("0.###") + ","
  1998. + transform1.localEulerAngles.y.ToString("0.###") + ","
  1999. + transform1.localEulerAngles.z.ToString("0.###") + ":"
  2000. + transform2.localEulerAngles.x.ToString("0.###") + ","
  2001. + transform2.localEulerAngles.y.ToString("0.###") + ","
  2002. + transform2.localEulerAngles.z.ToString("0.###") + ":";
  2003. string[] strArray108 = new string[7];
  2004. strArray108[0] = str134;
  2005. string[] strArray109 = strArray108;
  2006. int index82 = 1;
  2007. num = ClavicleL1[i].eulerAngles.x;
  2008. string str135 = num.ToString("0.###");
  2009. strArray109[index82] = str135;
  2010. strArray108[2] = ",";
  2011. string[] strArray110 = strArray108;
  2012. int index83 = 3;
  2013. num = ClavicleL1[i].eulerAngles.y;
  2014. string str136 = num.ToString("0.###");
  2015. strArray110[index83] = str136;
  2016. strArray108[4] = ",";
  2017. string[] strArray111 = strArray108;
  2018. int index84 = 5;
  2019. num = ClavicleL1[i].eulerAngles.z;
  2020. string str137 = num.ToString("0.###");
  2021. strArray111[index84] = str137;
  2022. strArray108[6] = ":";
  2023. string str138 = string.Concat(strArray108);
  2024. string[] strArray112 = new string[7];
  2025. strArray112[0] = str138;
  2026. string[] strArray113 = strArray112;
  2027. int index85 = 1;
  2028. num = ClavicleR1[i].eulerAngles.x;
  2029. string str139 = num.ToString("0.###");
  2030. strArray113[index85] = str139;
  2031. strArray112[2] = ",";
  2032. string[] strArray114 = strArray112;
  2033. int index86 = 3;
  2034. num = ClavicleR1[i].eulerAngles.y;
  2035. string str140 = num.ToString("0.###");
  2036. strArray114[index86] = str140;
  2037. strArray112[4] = ",";
  2038. string[] strArray115 = strArray112;
  2039. int index87 = 5;
  2040. num = ClavicleR1[i].eulerAngles.z;
  2041. string str141 = num.ToString("0.###");
  2042. strArray115[index87] = str141;
  2043. strArray112[6] = ":";
  2044. string str142 = string.Concat(strArray112);
  2045. string str143 = !hanten[i] ? str142 + "0:" : str142 + "1:";
  2046. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  2047. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  2048. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  2049. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  2050. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  2051. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  2052. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  2053. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  2054. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  2055. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  2056. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  2057. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  2058. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  2059. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  2060. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  2061. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  2062. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  2063. Transform transform20 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  2064. Transform transform21 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  2065. string str144 = str143;
  2066. string[] strArray116 = new string[7];
  2067. strArray116[0] = str144;
  2068. string[] strArray117 = strArray116;
  2069. int index88 = 1;
  2070. num = transform3.eulerAngles.x;
  2071. string str145 = num.ToString("0.###");
  2072. strArray117[index88] = str145;
  2073. strArray116[2] = ",";
  2074. string[] strArray118 = strArray116;
  2075. int index89 = 3;
  2076. num = transform3.eulerAngles.y;
  2077. string str146 = num.ToString("0.###");
  2078. strArray118[index89] = str146;
  2079. strArray116[4] = ",";
  2080. string[] strArray119 = strArray116;
  2081. int index90 = 5;
  2082. num = transform3.eulerAngles.z;
  2083. string str147 = num.ToString("0.###");
  2084. strArray119[index90] = str147;
  2085. strArray116[6] = ":";
  2086. string str148 = string.Concat(strArray116);
  2087. string[] strArray120 = new string[7];
  2088. strArray120[0] = str148;
  2089. string[] strArray121 = strArray120;
  2090. int index91 = 1;
  2091. num = transform4.localEulerAngles.x;
  2092. string str149 = num.ToString("0.###");
  2093. strArray121[index91] = str149;
  2094. strArray120[2] = ",";
  2095. string[] strArray122 = strArray120;
  2096. int index92 = 3;
  2097. num = transform4.localEulerAngles.y;
  2098. string str150 = num.ToString("0.###");
  2099. strArray122[index92] = str150;
  2100. strArray120[4] = ",";
  2101. string[] strArray123 = strArray120;
  2102. int index93 = 5;
  2103. num = transform4.localEulerAngles.z;
  2104. string str151 = num.ToString("0.###");
  2105. strArray123[index93] = str151;
  2106. strArray120[6] = ":";
  2107. string str152 = string.Concat(strArray120);
  2108. string[] strArray124 = new string[7];
  2109. strArray124[0] = str152;
  2110. string[] strArray125 = strArray124;
  2111. int index94 = 1;
  2112. num = transform5.localEulerAngles.x;
  2113. string str153 = num.ToString("0.###");
  2114. strArray125[index94] = str153;
  2115. strArray124[2] = ",";
  2116. string[] strArray126 = strArray124;
  2117. int index95 = 3;
  2118. num = transform5.localEulerAngles.y;
  2119. string str154 = num.ToString("0.###");
  2120. strArray126[index95] = str154;
  2121. strArray124[4] = ",";
  2122. string[] strArray127 = strArray124;
  2123. int index96 = 5;
  2124. num = transform5.localEulerAngles.z;
  2125. string str155 = num.ToString("0.###");
  2126. strArray127[index96] = str155;
  2127. strArray124[6] = ":";
  2128. string str156 = string.Concat(strArray124);
  2129. string[] strArray128 = new string[7];
  2130. strArray128[0] = str156;
  2131. string[] strArray129 = strArray128;
  2132. int index97 = 1;
  2133. num = transform6.localEulerAngles.x;
  2134. string str157 = num.ToString("0.###");
  2135. strArray129[index97] = str157;
  2136. strArray128[2] = ",";
  2137. string[] strArray130 = strArray128;
  2138. int index98 = 3;
  2139. num = transform6.localEulerAngles.y;
  2140. string str158 = num.ToString("0.###");
  2141. strArray130[index98] = str158;
  2142. strArray128[4] = ",";
  2143. string[] strArray131 = strArray128;
  2144. int index99 = 5;
  2145. num = transform6.localEulerAngles.z;
  2146. string str159 = num.ToString("0.###");
  2147. strArray131[index99] = str159;
  2148. strArray128[6] = ":";
  2149. string str160 = string.Concat(strArray128);
  2150. string[] strArray132 = new string[7];
  2151. strArray132[0] = str160;
  2152. string[] strArray133 = strArray132;
  2153. int index100 = 1;
  2154. num = transform7.localEulerAngles.x;
  2155. string str161 = num.ToString("0.###");
  2156. strArray133[index100] = str161;
  2157. strArray132[2] = ",";
  2158. string[] strArray134 = strArray132;
  2159. int index101 = 3;
  2160. num = transform7.localEulerAngles.y;
  2161. string str162 = num.ToString("0.###");
  2162. strArray134[index101] = str162;
  2163. strArray132[4] = ",";
  2164. string[] strArray135 = strArray132;
  2165. int index102 = 5;
  2166. num = transform7.localEulerAngles.z;
  2167. string str163 = num.ToString("0.###");
  2168. strArray135[index102] = str163;
  2169. strArray132[6] = ":";
  2170. string str164 = string.Concat(strArray132);
  2171. string[] strArray136 = new string[7];
  2172. strArray136[0] = str164;
  2173. string[] strArray137 = strArray136;
  2174. int index103 = 1;
  2175. num = transform8.localEulerAngles.x;
  2176. string str165 = num.ToString("0.###");
  2177. strArray137[index103] = str165;
  2178. strArray136[2] = ",";
  2179. string[] strArray138 = strArray136;
  2180. int index104 = 3;
  2181. num = transform8.localEulerAngles.y;
  2182. string str166 = num.ToString("0.###");
  2183. strArray138[index104] = str166;
  2184. strArray136[4] = ",";
  2185. string[] strArray139 = strArray136;
  2186. int index105 = 5;
  2187. num = transform8.localEulerAngles.z;
  2188. string str167 = num.ToString("0.###");
  2189. strArray139[index105] = str167;
  2190. strArray136[6] = ":";
  2191. string str168 = string.Concat(strArray136);
  2192. string[] strArray140 = new string[7];
  2193. strArray140[0] = str168;
  2194. string[] strArray141 = strArray140;
  2195. int index106 = 1;
  2196. num = transform9.localEulerAngles.x;
  2197. string str169 = num.ToString("0.###");
  2198. strArray141[index106] = str169;
  2199. strArray140[2] = ",";
  2200. string[] strArray142 = strArray140;
  2201. int index107 = 3;
  2202. num = transform9.localEulerAngles.y;
  2203. string str170 = num.ToString("0.###");
  2204. strArray142[index107] = str170;
  2205. strArray140[4] = ",";
  2206. string[] strArray143 = strArray140;
  2207. int index108 = 5;
  2208. num = transform9.localEulerAngles.z;
  2209. string str171 = num.ToString("0.###");
  2210. strArray143[index108] = str171;
  2211. strArray140[6] = ":";
  2212. string str172 = string.Concat(strArray140);
  2213. string[] strArray144 = new string[7];
  2214. strArray144[0] = str172;
  2215. string[] strArray145 = strArray144;
  2216. int index109 = 1;
  2217. num = transform10.localEulerAngles.x;
  2218. string str173 = num.ToString("0.###");
  2219. strArray145[index109] = str173;
  2220. strArray144[2] = ",";
  2221. string[] strArray146 = strArray144;
  2222. int index110 = 3;
  2223. num = transform10.localEulerAngles.y;
  2224. string str174 = num.ToString("0.###");
  2225. strArray146[index110] = str174;
  2226. strArray144[4] = ",";
  2227. string[] strArray147 = strArray144;
  2228. int index111 = 5;
  2229. num = transform10.localEulerAngles.z;
  2230. string str175 = num.ToString("0.###");
  2231. strArray147[index111] = str175;
  2232. strArray144[6] = ":";
  2233. string str176 = string.Concat(strArray144);
  2234. string[] strArray148 = new string[7];
  2235. strArray148[0] = str176;
  2236. string[] strArray149 = strArray148;
  2237. int index112 = 1;
  2238. num = transform11.localEulerAngles.x;
  2239. string str177 = num.ToString("0.###");
  2240. strArray149[index112] = str177;
  2241. strArray148[2] = ",";
  2242. string[] strArray150 = strArray148;
  2243. int index113 = 3;
  2244. num = transform11.localEulerAngles.y;
  2245. string str178 = num.ToString("0.###");
  2246. strArray150[index113] = str178;
  2247. strArray148[4] = ",";
  2248. string[] strArray151 = strArray148;
  2249. int index114 = 5;
  2250. num = transform11.localEulerAngles.z;
  2251. string str179 = num.ToString("0.###");
  2252. strArray151[index114] = str179;
  2253. strArray148[6] = ":";
  2254. string str180 = string.Concat(strArray148);
  2255. string[] strArray152 = new string[7];
  2256. strArray152[0] = str180;
  2257. string[] strArray153 = strArray152;
  2258. int index115 = 1;
  2259. num = transform12.localEulerAngles.x;
  2260. string str181 = num.ToString("0.###");
  2261. strArray153[index115] = str181;
  2262. strArray152[2] = ",";
  2263. string[] strArray154 = strArray152;
  2264. int index116 = 3;
  2265. num = transform12.localEulerAngles.y;
  2266. string str182 = num.ToString("0.###");
  2267. strArray154[index116] = str182;
  2268. strArray152[4] = ",";
  2269. string[] strArray155 = strArray152;
  2270. int index117 = 5;
  2271. num = transform12.localEulerAngles.z;
  2272. string str183 = num.ToString("0.###");
  2273. strArray155[index117] = str183;
  2274. strArray152[6] = ":";
  2275. string str184 = string.Concat(strArray152);
  2276. string[] strArray156 = new string[7];
  2277. strArray156[0] = str184;
  2278. string[] strArray157 = strArray156;
  2279. int index118 = 1;
  2280. num = transform13.localEulerAngles.x;
  2281. string str185 = num.ToString("0.###");
  2282. strArray157[index118] = str185;
  2283. strArray156[2] = ",";
  2284. string[] strArray158 = strArray156;
  2285. int index119 = 3;
  2286. num = transform13.localEulerAngles.y;
  2287. string str186 = num.ToString("0.###");
  2288. strArray158[index119] = str186;
  2289. strArray156[4] = ",";
  2290. string[] strArray159 = strArray156;
  2291. int index120 = 5;
  2292. num = transform13.localEulerAngles.z;
  2293. string str187 = num.ToString("0.###");
  2294. strArray159[index120] = str187;
  2295. strArray156[6] = ":";
  2296. string str188 = string.Concat(strArray156);
  2297. string[] strArray160 = new string[7];
  2298. strArray160[0] = str188;
  2299. string[] strArray161 = strArray160;
  2300. int index121 = 1;
  2301. num = transform14.localEulerAngles.x;
  2302. string str189 = num.ToString("0.###");
  2303. strArray161[index121] = str189;
  2304. strArray160[2] = ",";
  2305. string[] strArray162 = strArray160;
  2306. int index122 = 3;
  2307. num = transform14.localEulerAngles.y;
  2308. string str190 = num.ToString("0.###");
  2309. strArray162[index122] = str190;
  2310. strArray160[4] = ",";
  2311. string[] strArray163 = strArray160;
  2312. int index123 = 5;
  2313. num = transform14.localEulerAngles.z;
  2314. string str191 = num.ToString("0.###");
  2315. strArray163[index123] = str191;
  2316. strArray160[6] = ":";
  2317. string str192 = string.Concat(strArray160);
  2318. string[] strArray164 = new string[7];
  2319. strArray164[0] = str192;
  2320. string[] strArray165 = strArray164;
  2321. int index124 = 1;
  2322. num = transform15.localEulerAngles.x;
  2323. string str193 = num.ToString("0.###");
  2324. strArray165[index124] = str193;
  2325. strArray164[2] = ",";
  2326. string[] strArray166 = strArray164;
  2327. int index125 = 3;
  2328. num = transform15.localEulerAngles.y;
  2329. string str194 = num.ToString("0.###");
  2330. strArray166[index125] = str194;
  2331. strArray164[4] = ",";
  2332. string[] strArray167 = strArray164;
  2333. int index126 = 5;
  2334. num = transform15.localEulerAngles.z;
  2335. string str195 = num.ToString("0.###");
  2336. strArray167[index126] = str195;
  2337. strArray164[6] = ":";
  2338. string str196 = string.Concat(strArray164);
  2339. string[] strArray168 = new string[7];
  2340. strArray168[0] = str196;
  2341. string[] strArray169 = strArray168;
  2342. int index127 = 1;
  2343. num = transform16.localEulerAngles.x;
  2344. string str197 = num.ToString("0.###");
  2345. strArray169[index127] = str197;
  2346. strArray168[2] = ",";
  2347. string[] strArray170 = strArray168;
  2348. int index128 = 3;
  2349. num = transform16.localEulerAngles.y;
  2350. string str198 = num.ToString("0.###");
  2351. strArray170[index128] = str198;
  2352. strArray168[4] = ",";
  2353. string[] strArray171 = strArray168;
  2354. int index129 = 5;
  2355. num = transform16.localEulerAngles.z;
  2356. string str199 = num.ToString("0.###");
  2357. strArray171[index129] = str199;
  2358. strArray168[6] = ":";
  2359. string str200 = string.Concat(strArray168);
  2360. string[] strArray172 = new string[7];
  2361. strArray172[0] = str200;
  2362. string[] strArray173 = strArray172;
  2363. int index130 = 1;
  2364. num = transform17.localEulerAngles.x;
  2365. string str201 = num.ToString("0.###");
  2366. strArray173[index130] = str201;
  2367. strArray172[2] = ",";
  2368. string[] strArray174 = strArray172;
  2369. int index131 = 3;
  2370. num = transform17.localEulerAngles.y;
  2371. string str202 = num.ToString("0.###");
  2372. strArray174[index131] = str202;
  2373. strArray172[4] = ",";
  2374. string[] strArray175 = strArray172;
  2375. int index132 = 5;
  2376. num = transform17.localEulerAngles.z;
  2377. string str203 = num.ToString("0.###");
  2378. strArray175[index132] = str203;
  2379. strArray172[6] = ":";
  2380. string str204 = string.Concat(strArray172);
  2381. string[] strArray176 = new string[7];
  2382. strArray176[0] = str204;
  2383. string[] strArray177 = strArray176;
  2384. int index133 = 1;
  2385. num = transform18.localEulerAngles.x;
  2386. string str205 = num.ToString("0.###");
  2387. strArray177[index133] = str205;
  2388. strArray176[2] = ",";
  2389. string[] strArray178 = strArray176;
  2390. int index134 = 3;
  2391. num = transform18.localEulerAngles.y;
  2392. string str206 = num.ToString("0.###");
  2393. strArray178[index134] = str206;
  2394. strArray176[4] = ",";
  2395. string[] strArray179 = strArray176;
  2396. int index135 = 5;
  2397. num = transform18.localEulerAngles.z;
  2398. string str207 = num.ToString("0.###");
  2399. strArray179[index135] = str207;
  2400. strArray176[6] = ":";
  2401. string str208 = string.Concat(strArray176);
  2402. string[] strArray180 = new string[7];
  2403. strArray180[0] = str208;
  2404. string[] strArray181 = strArray180;
  2405. int index136 = 1;
  2406. num = transform19.localEulerAngles.x;
  2407. string str209 = num.ToString("0.###");
  2408. strArray181[index136] = str209;
  2409. strArray180[2] = ",";
  2410. string[] strArray182 = strArray180;
  2411. int index137 = 3;
  2412. num = transform19.localEulerAngles.y;
  2413. string str210 = num.ToString("0.###");
  2414. strArray182[index137] = str210;
  2415. strArray180[4] = ",";
  2416. string[] strArray183 = strArray180;
  2417. int index138 = 5;
  2418. num = transform19.localEulerAngles.z;
  2419. string str211 = num.ToString("0.###");
  2420. strArray183[index138] = str211;
  2421. strArray180[6] = ":";
  2422. string str212 = string.Concat(strArray180);
  2423. string[] strArray184 = new string[7];
  2424. strArray184[0] = str212;
  2425. string[] strArray185 = strArray184;
  2426. int index139 = 1;
  2427. num = transform20.localEulerAngles.x;
  2428. string str213 = num.ToString("0.###");
  2429. strArray185[index139] = str213;
  2430. strArray184[2] = ",";
  2431. string[] strArray186 = strArray184;
  2432. int index140 = 3;
  2433. num = transform20.localEulerAngles.y;
  2434. string str214 = num.ToString("0.###");
  2435. strArray186[index140] = str214;
  2436. strArray184[4] = ",";
  2437. string[] strArray187 = strArray184;
  2438. int index141 = 5;
  2439. num = transform20.localEulerAngles.z;
  2440. string str215 = num.ToString("0.###");
  2441. strArray187[index141] = str215;
  2442. strArray184[6] = ":";
  2443. string str216 = string.Concat(strArray184);
  2444. string[] strArray188 = new string[7];
  2445. strArray188[0] = str216;
  2446. string[] strArray189 = strArray188;
  2447. int index142 = 1;
  2448. num = transform21.localEulerAngles.x;
  2449. string str217 = num.ToString("0.###");
  2450. strArray189[index142] = str217;
  2451. strArray188[2] = ",";
  2452. string[] strArray190 = strArray188;
  2453. int index143 = 3;
  2454. num = transform21.localEulerAngles.y;
  2455. string str218 = num.ToString("0.###");
  2456. strArray190[index143] = str218;
  2457. strArray188[4] = ",";
  2458. string[] strArray191 = strArray188;
  2459. int index144 = 5;
  2460. num = transform21.localEulerAngles.z;
  2461. string str219 = num.ToString("0.###");
  2462. strArray191[index144] = str219;
  2463. strArray188[6] = ":";
  2464. string str220 = string.Concat(strArray188);
  2465. string[] strArray192 = new string[7];
  2466. strArray192[0] = str220;
  2467. string[] strArray193 = strArray192;
  2468. int index145 = 1;
  2469. num = maid.body0.quaDefEyeL.eulerAngles.x;
  2470. string str221 = num.ToString("0.###");
  2471. strArray193[index145] = str221;
  2472. strArray192[2] = ",";
  2473. string[] strArray194 = strArray192;
  2474. int index146 = 3;
  2475. num = maid.body0.quaDefEyeL.eulerAngles.y;
  2476. string str222 = num.ToString("0.###");
  2477. strArray194[index146] = str222;
  2478. strArray192[4] = ",";
  2479. string[] strArray195 = strArray192;
  2480. int index147 = 5;
  2481. num = maid.body0.quaDefEyeL.eulerAngles.z;
  2482. string str223 = num.ToString("0.###");
  2483. strArray195[index147] = str223;
  2484. strArray192[6] = ":";
  2485. string str224 = string.Concat(strArray192);
  2486. string[] strArray196 = new string[7];
  2487. strArray196[0] = str224;
  2488. string[] strArray197 = strArray196;
  2489. int index148 = 1;
  2490. num = maid.body0.quaDefEyeR.eulerAngles.x;
  2491. string str225 = num.ToString("0.###");
  2492. strArray197[index148] = str225;
  2493. strArray196[2] = ",";
  2494. string[] strArray198 = strArray196;
  2495. int index149 = 3;
  2496. num = maid.body0.quaDefEyeR.eulerAngles.y;
  2497. string str226 = num.ToString("0.###");
  2498. strArray198[index149] = str226;
  2499. strArray196[4] = ",";
  2500. string[] strArray199 = strArray196;
  2501. int index150 = 5;
  2502. num = maid.body0.quaDefEyeR.eulerAngles.z;
  2503. string str227 = num.ToString("0.###");
  2504. strArray199[index150] = str227;
  2505. strArray196[6] = ":";
  2506. string str228 = string.Concat(strArray196);
  2507. Transform transform22 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_L", true);
  2508. Transform transform23 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_L_sub", true);
  2509. Transform transform24 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_R", true);
  2510. Transform transform25 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_R_sub", true);
  2511. string str229 = str228;
  2512. string[] strArray200 = new string[7];
  2513. strArray200[0] = str229;
  2514. string[] strArray201 = strArray200;
  2515. int index151 = 1;
  2516. num = transform22.localEulerAngles.x;
  2517. string str230 = num.ToString("0.###");
  2518. strArray201[index151] = str230;
  2519. strArray200[2] = ",";
  2520. string[] strArray202 = strArray200;
  2521. int index152 = 3;
  2522. num = transform22.localEulerAngles.y;
  2523. string str231 = num.ToString("0.###");
  2524. strArray202[index152] = str231;
  2525. strArray200[4] = ",";
  2526. string[] strArray203 = strArray200;
  2527. int index153 = 5;
  2528. num = transform22.localEulerAngles.z;
  2529. string str232 = num.ToString("0.###");
  2530. strArray203[index153] = str232;
  2531. strArray200[6] = ":";
  2532. string str233 = string.Concat(strArray200);
  2533. string[] strArray204 = new string[7];
  2534. strArray204[0] = str233;
  2535. string[] strArray205 = strArray204;
  2536. int index154 = 1;
  2537. num = transform23.localEulerAngles.x;
  2538. string str234 = num.ToString("0.###");
  2539. strArray205[index154] = str234;
  2540. strArray204[2] = ",";
  2541. string[] strArray206 = strArray204;
  2542. int index155 = 3;
  2543. num = transform23.localEulerAngles.y;
  2544. string str235 = num.ToString("0.###");
  2545. strArray206[index155] = str235;
  2546. strArray204[4] = ",";
  2547. string[] strArray207 = strArray204;
  2548. int index156 = 5;
  2549. num = transform23.localEulerAngles.z;
  2550. string str236 = num.ToString("0.###");
  2551. strArray207[index156] = str236;
  2552. strArray204[6] = ":";
  2553. string str237 = string.Concat(strArray204);
  2554. string[] strArray208 = new string[7];
  2555. strArray208[0] = str237;
  2556. string[] strArray209 = strArray208;
  2557. int index157 = 1;
  2558. num = transform24.localEulerAngles.x;
  2559. string str238 = num.ToString("0.###");
  2560. strArray209[index157] = str238;
  2561. strArray208[2] = ",";
  2562. string[] strArray210 = strArray208;
  2563. int index158 = 3;
  2564. num = transform24.localEulerAngles.y;
  2565. string str239 = num.ToString("0.###");
  2566. strArray210[index158] = str239;
  2567. strArray208[4] = ",";
  2568. string[] strArray211 = strArray208;
  2569. int index159 = 5;
  2570. num = transform24.localEulerAngles.z;
  2571. string str240 = num.ToString("0.###");
  2572. strArray211[index159] = str240;
  2573. strArray208[6] = ":";
  2574. string str241 = string.Concat(strArray208);
  2575. string[] strArray212 = new string[7];
  2576. strArray212[0] = str241;
  2577. string[] strArray213 = strArray212;
  2578. int index160 = 1;
  2579. num = transform25.localEulerAngles.x;
  2580. string str242 = num.ToString("0.###");
  2581. strArray213[index160] = str242;
  2582. strArray212[2] = ",";
  2583. string[] strArray214 = strArray212;
  2584. int index161 = 3;
  2585. num = transform25.localEulerAngles.y;
  2586. string str243 = num.ToString("0.###");
  2587. strArray214[index161] = str243;
  2588. strArray212[4] = ",";
  2589. string[] strArray215 = strArray212;
  2590. int index162 = 5;
  2591. num = transform25.localEulerAngles.z;
  2592. string str244 = num.ToString("0.###");
  2593. strArray215[index162] = str244;
  2594. strArray212[6] = ":";
  2595. string str245 = string.Concat(strArray212);
  2596. string[] strArray216 = new string[6];
  2597. strArray216[0] = str245;
  2598. string[] strArray217 = strArray216;
  2599. int index163 = 1;
  2600. num = transform3.position.x;
  2601. string str246 = num.ToString("0.###");
  2602. strArray217[index163] = str246;
  2603. strArray216[2] = ",";
  2604. string[] strArray218 = strArray216;
  2605. int index164 = 3;
  2606. num = transform3.position.y;
  2607. string str247 = num.ToString("0.###");
  2608. strArray218[index164] = str247;
  2609. strArray216[4] = ",";
  2610. string[] strArray219 = strArray216;
  2611. int index165 = 5;
  2612. num = transform3.position.z;
  2613. string str248 = num.ToString("0.###");
  2614. strArray219[index165] = str248;
  2615. string str249 = string.Concat(strArray216);
  2616. str1 = str1 + str24 + str25 + str131 + str249;
  2617. if (i + 1 != maidCnt)
  2618. str1 += ";";
  2619. }
  2620. string str250 = "_" + (object) lightKage[0] + ",";
  2621. string str251;
  2622. if (isBloom)
  2623. {
  2624. string str24 = str250 + "1," + (object) bloom1 + "," + (object) bloom2 + "," + (object) bloom3 + "," + (object) bloom4
  2625. + "," + (object) bloom5 + ",";
  2626. str251 = !isBloomA ? str24 + "0," : str24 + "1,";
  2627. }
  2628. else
  2629. str251 = str250 + "0,0,0,0,0,0,0,";
  2630. string str252 =
  2631. (!isBlur
  2632. ? (object) (str251 + "0,0,0,0,0,")
  2633. : (object) (str251 + "1," + (object) blur1 + "," + (object) blur2 + "," + (object) blur3 + ","
  2634. + (object) blur4 + ",")).ToString() + (object) bokashi + "," + (object) kamiyure + ",";
  2635. string str253;
  2636. if (isDepth)
  2637. {
  2638. string str24 = str252 + "1," + (object) depth1 + "," + (object) depth2 + "," + (object) depth3 + "," + (object) depth4
  2639. + ",";
  2640. str253 = !isDepthA ? str24 + "0," : str24 + "1,";
  2641. }
  2642. else
  2643. str253 = str252 + "0,0,0,0,0,0,";
  2644. string str254 = !isFog
  2645. ? str253 + "0,0,0,0,0,0,0,0,"
  2646. : str253 + "1," + (object) fog1 + "," + (object) fog2 + "," + (object) fog3 + "," + (object) fog4
  2647. + "," + (object) fog5 + "," + (object) fog6 + "," + (object) fog7 + ",";
  2648. string str255 = !isSepia ? str254 + "0" : str254 + "1";
  2649. string str256 = "_";
  2650. for (int index15 = 1; index15 < lightList.Count; ++index15)
  2651. str256 = str256 + (object) lightIndex[index15] + "," + (object) lightColorR[index15] + ","
  2652. + (object) lightColorG[index15] + "," + (object) lightColorB[index15] + "," + (object) lightX[index15] + ","
  2653. + (object) lightY[index15] + "," + (object) lightAkarusa[index15] + "," + (object) lightRange[index15] + ";";
  2654. string str257 = "_";
  2655. for (int index15 = 0; index15 < doguBObject.Count; ++index15)
  2656. {
  2657. string str24 = str257 + doguBObject[index15].name.Replace("_", " ") + ",";
  2658. string[] strArray20 = new string[7];
  2659. strArray20[0] = str24;
  2660. string[] strArray21 = strArray20;
  2661. int index16 = 1;
  2662. num = doguBObject[index15].transform.localEulerAngles.x;
  2663. string str25 = num.ToString("0.###");
  2664. strArray21[index16] = str25;
  2665. strArray20[2] = ",";
  2666. string[] strArray22 = strArray20;
  2667. int index17 = 3;
  2668. num = doguBObject[index15].transform.localEulerAngles.y;
  2669. string str26 = num.ToString("0.###");
  2670. strArray22[index17] = str26;
  2671. strArray20[4] = ",";
  2672. string[] strArray23 = strArray20;
  2673. int index18 = 5;
  2674. num = doguBObject[index15].transform.localEulerAngles.z;
  2675. string str27 = num.ToString("0.###");
  2676. strArray23[index18] = str27;
  2677. strArray20[6] = ",";
  2678. string str28 = string.Concat(strArray20);
  2679. string[] strArray24 = new string[7];
  2680. strArray24[0] = str28;
  2681. string[] strArray25 = strArray24;
  2682. int index19 = 1;
  2683. num = doguBObject[index15].transform.position.x;
  2684. string str29 = num.ToString("0.###");
  2685. strArray25[index19] = str29;
  2686. strArray24[2] = ",";
  2687. string[] strArray26 = strArray24;
  2688. int index20 = 3;
  2689. num = doguBObject[index15].transform.position.y;
  2690. string str30 = num.ToString("0.###");
  2691. strArray26[index20] = str30;
  2692. strArray24[4] = ",";
  2693. string[] strArray27 = strArray24;
  2694. int index21 = 5;
  2695. num = doguBObject[index15].transform.position.z;
  2696. string str31 = num.ToString("0.###");
  2697. strArray27[index21] = str31;
  2698. strArray24[6] = ",";
  2699. string str32 = string.Concat(strArray24);
  2700. string[] strArray28 = new string[6];
  2701. strArray28[0] = str32;
  2702. string[] strArray29 = strArray28;
  2703. int index22 = 1;
  2704. num = doguBObject[index15].transform.localScale.x;
  2705. string str33 = num.ToString("0.###");
  2706. strArray29[index22] = str33;
  2707. strArray28[2] = ",";
  2708. string[] strArray30 = strArray28;
  2709. int index23 = 3;
  2710. num = doguBObject[index15].transform.localScale.y;
  2711. string str34 = num.ToString("0.###");
  2712. strArray30[index23] = str34;
  2713. strArray28[4] = ",";
  2714. string[] strArray31 = strArray28;
  2715. int index24 = 5;
  2716. num = doguBObject[index15].transform.localScale.z;
  2717. string str35 = num.ToString("0.###");
  2718. strArray31[index24] = str35;
  2719. str257 = string.Concat(strArray28) + ";";
  2720. }
  2721. string str258 = "_";
  2722. for (int index15 = 0; index15 < lightList.Count; ++index15)
  2723. str258 = str258 + (object) lightList[index15].transform.position.x + ","
  2724. + (object) lightList[index15].transform.position.y + "," + (object) lightList[index15].transform.position.z
  2725. + ";";
  2726. this.Preferences["scene"]["s" + (object) saveScene].Value = str36 + str1 + str255 + str256 + str257 + str258;
  2727. this.SaveConfig();
  2728. saveScene = 0;
  2729. }
  2730. for (int index = 0; index < maidCnt; ++index)
  2731. {
  2732. if (haraCount[index] > 0)
  2733. {
  2734. --haraCount[index];
  2735. CMT.SearchObjName(maidArray[index].body0.m_Bones.transform, "Bip01", true).position = haraPosition[index];
  2736. }
  2737. if (isLoadFace[index])
  2738. {
  2739. isLoadFace[index] = false;
  2740. TMorph morph = maidArray[index].body0.Face.morph;
  2741. float[] fieldValue = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  2742. fieldValue[(int) morph.hash[(object) "mouthuphalf"]] = fieldValue[(int) morph.hash[(object) "mouthuphalf"]] - 0.01f;
  2743. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  2744. }
  2745. }
  2746. if (isScene)
  2747. {
  2748. isScene = false;
  2749. string[] strArray1 = this.Preferences["scene"]["s" + (object) loadScene].Value.Split('_');
  2750. string[] strArray2 = strArray1[1].Split(';');
  2751. string[] strArray3 = strArray1[0].Split(',');
  2752. string[] strArray4 = (string[]) null;
  2753. string[] strArray5 = (string[]) null;
  2754. string[] strArray6 = (string[]) null;
  2755. string[] strArray7 = (string[]) null;
  2756. if (strArray1.Length >= 5)
  2757. {
  2758. strArray4 = strArray1[2].Split(',');
  2759. strArray5 = strArray1[3].Split(';');
  2760. strArray6 = strArray1[4].Split(';');
  2761. }
  2762. if (strArray1.Length >= 6)
  2763. strArray7 = strArray1[5].Split(';');
  2764. if (!int.TryParse(strArray3[2], out bgIndex))
  2765. {
  2766. string str = strArray3[2].Replace(" ", "_");
  2767. for (int index = 0; index < bgArray.Length; ++index)
  2768. {
  2769. if (str == bgArray[index])
  2770. {
  2771. bgIndex = index;
  2772. break;
  2773. }
  2774. }
  2775. }
  2776. if (bgArray[bgIndex].Length == 36)
  2777. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  2778. else
  2779. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  2780. bgCombo.selectedItemIndex = bgIndex;
  2781. bg.localEulerAngles = new Vector3(float.Parse(strArray3[3]), float.Parse(strArray3[4]), float.Parse(strArray3[5]));
  2782. bg.position = new Vector3(float.Parse(strArray3[6]), float.Parse(strArray3[7]), float.Parse(strArray3[8]));
  2783. bg.localScale = new Vector3(float.Parse(strArray3[9]), float.Parse(strArray3[10]), float.Parse(strArray3[11]));
  2784. softG = new Vector3(float.Parse(strArray3[12]), float.Parse(strArray3[13]), float.Parse(strArray3[14]));
  2785. for (int index1 = 0; index1 < maidCnt; ++index1)
  2786. {
  2787. Maid maid = maidArray[index1];
  2788. delCount[index1] = 20;
  2789. if (!isVR && goSlot[(int) selectList[index1]] != null)
  2790. {
  2791. maidArray[index1].body0.goSlot = new List<TBodySkin>((IEnumerable<TBodySkin>) goSlot[(int) selectList[index1]]);
  2792. for (int index2 = 0; index2 < bodyHit[(int) selectList[index1]].Count; ++index2)
  2793. maidArray[index1].body0.goSlot[index2].bonehair.bodyhit = bodyHit[(int) selectList[index1]][index2];
  2794. }
  2795. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  2796. {
  2797. if ((Object) maid.body0.goSlot[index2].obj != (Object) null)
  2798. {
  2799. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  2800. if ((Object) component != (Object) null && component.enabled)
  2801. component.m_Gravity = new Vector3(softG.x * 5f, softG.y * 5f + kamiyure, softG.z * 5f);
  2802. }
  2803. List<THair1> fieldValue = GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
  2804. for (int index3 = 0; index3 < fieldValue.Count; ++index3)
  2805. fieldValue[index3].SoftG = new Vector3(softG.x, softG.y + kamiyure, softG.z);
  2806. }
  2807. }
  2808. if (!kankyoLoadFlg)
  2809. {
  2810. int bgmIndex = this.bgmIndex;
  2811. this.bgmIndex = int.Parse(strArray3[15]);
  2812. if (bgmIndex != this.bgmIndex)
  2813. {
  2814. GameMain.Instance.SoundMgr.PlayBGM(bgmArray[this.bgmIndex] + ".ogg", 0.0f, true);
  2815. bgmCombo.selectedItemIndex = this.bgmIndex;
  2816. }
  2817. }
  2818. if (doguObject.Count > 0 && (Object) doguObject[doguSelectIndex] != (Object) null)
  2819. {
  2820. Destroy((Object) doguObject[doguSelectIndex]);
  2821. doguObject.RemoveAt(doguSelectIndex);
  2822. doguIndex.RemoveAt(doguSelectIndex);
  2823. }
  2824. doguSelectIndex = 0;
  2825. if (strArray3.Length > 16)
  2826. {
  2827. effectIndex = int.Parse(strArray3[16]);
  2828. if (!isVR)
  2829. {
  2830. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  2831. component.mode = Vignetting.AberrationMode.Simple;
  2832. component.intensity = -3.98f;
  2833. component.chromaticAberration = -0.75f;
  2834. component.axialAberration = 1.18f;
  2835. component.blurSpread = 4.19f;
  2836. component.luminanceDependency = 0.494f;
  2837. component.blurDistance = 1.71f;
  2838. component.enabled = false;
  2839. if ((bool) ((Object) kami))
  2840. kami.SetActive(false);
  2841. if (effectIndex == 0)
  2842. component.enabled = false;
  2843. if (effectIndex == 1)
  2844. {
  2845. component.mode = Vignetting.AberrationMode.Simple;
  2846. component.intensity = -1f;
  2847. component.chromaticAberration = 0.0f;
  2848. component.axialAberration = 0.0f;
  2849. component.blurSpread = 5f;
  2850. component.luminanceDependency = 0.0f;
  2851. component.blurDistance = 0.0f;
  2852. component.enabled = true;
  2853. }
  2854. if (effectIndex == 2)
  2855. component.enabled = true;
  2856. if (effectIndex == 3)
  2857. {
  2858. component.mode = Vignetting.AberrationMode.Simple;
  2859. component.intensity = 9f;
  2860. component.chromaticAberration = 0.0f;
  2861. component.axialAberration = 0.0f;
  2862. component.blurSpread = 5f;
  2863. component.luminanceDependency = 0.0f;
  2864. component.blurDistance = 0.0f;
  2865. component.enabled = true;
  2866. }
  2867. if (effectIndex == 4)
  2868. {
  2869. kami = (GameObject) Instantiate(Resources.Load("Prefab/p_kamihubuki_photo_ver"));
  2870. Vector3 localPosition = kami.transform.localPosition;
  2871. localPosition.y = 3.5f;
  2872. kami.transform.localPosition = localPosition;
  2873. }
  2874. if (effectIndex == 5)
  2875. {
  2876. kami = (GameObject) Instantiate(Resources.Load("Prefab/p_kamihubuki_photo_ver"));
  2877. Vector3 localPosition = kami.transform.localPosition;
  2878. localPosition.y = 3.5f;
  2879. kami.transform.localPosition = localPosition;
  2880. component.enabled = true;
  2881. component.mode = Vignetting.AberrationMode.Simple;
  2882. component.intensity = -2.5f;
  2883. component.chromaticAberration = -0.3f;
  2884. component.axialAberration = 0.5f;
  2885. component.blurSpread = 4.5f;
  2886. component.luminanceDependency = 0.2f;
  2887. component.blurDistance = 0.8f;
  2888. component.enabled = true;
  2889. }
  2890. Vector3 localPosition1;
  2891. if (effectIndex == 6)
  2892. {
  2893. kami.SetActive(false);
  2894. kami = (GameObject) Instantiate(Resources.Load("Prefab/p_powder_snow_photo_ver"));
  2895. localPosition1 = kami.transform.localPosition;
  2896. localPosition1.y = 3.5f;
  2897. kami.transform.localPosition = localPosition1;
  2898. }
  2899. if (effectIndex == 7)
  2900. {
  2901. kami.SetActive(false);
  2902. kami = (GameObject) Instantiate(Resources.Load("Prefab/p_powder_snow_photo_ver"));
  2903. localPosition1 = kami.transform.localPosition;
  2904. localPosition1.y = 3.5f;
  2905. kami.transform.localPosition = localPosition1;
  2906. component.enabled = true;
  2907. component.mode = Vignetting.AberrationMode.Simple;
  2908. component.intensity = -2.5f;
  2909. component.chromaticAberration = -0.3f;
  2910. component.axialAberration = 0.5f;
  2911. component.blurSpread = 4.5f;
  2912. component.luminanceDependency = 0.2f;
  2913. component.blurDistance = 0.8f;
  2914. component.enabled = true;
  2915. }
  2916. if (effectIndex == 8)
  2917. {
  2918. kami.SetActive(false);
  2919. kami = (GameObject) Instantiate(Resources.Load("Prefab/p_powder_snow_photo_ver"));
  2920. localPosition1 = kami.transform.localPosition;
  2921. localPosition1.y = 3.5f;
  2922. kami.transform.localPosition = localPosition1;
  2923. component.mode = Vignetting.AberrationMode.Simple;
  2924. component.intensity = 8f;
  2925. component.chromaticAberration = 0.0f;
  2926. component.axialAberration = 0.0f;
  2927. component.blurSpread = 5f;
  2928. component.luminanceDependency = 0.0f;
  2929. component.blurDistance = 0.0f;
  2930. component.enabled = true;
  2931. }
  2932. }
  2933. for (int index = 1; index < lightList.Count; ++index)
  2934. Destroy((Object) lightList[index]);
  2935. lightIndex = new List<int>();
  2936. lightIndex.Add(0);
  2937. lightColorR = new List<float>();
  2938. lightColorR.Add(1f);
  2939. lightColorG = new List<float>();
  2940. lightColorG.Add(1f);
  2941. lightColorB = new List<float>();
  2942. lightColorB.Add(1f);
  2943. lightX = new List<float>();
  2944. lightX.Add(40f);
  2945. lightY = new List<float>();
  2946. lightY.Add(180f);
  2947. lightAkarusa = new List<float>();
  2948. lightAkarusa.Add(0.95f);
  2949. lightKage = new List<float>();
  2950. lightKage.Add(0.098f);
  2951. lightRange = new List<float>();
  2952. lightRange.Add(50f);
  2953. lightCombo.selectedItemIndex = 0;
  2954. lightList = new List<GameObject>();
  2955. lightList.Add(GameMain.Instance.MainLight.gameObject);
  2956. lightComboList = new GUIContent[lightList.Count];
  2957. for (int index = 0; index < lightList.Count; ++index)
  2958. lightComboList[index] = index != 0 ? new GUIContent("追加" + (object) index) : new GUIContent("メイン");
  2959. selectLightIndex = 0;
  2960. GameMain.Instance.MainLight.Reset();
  2961. GameMain.Instance.MainLight.SetIntensity(0.95f);
  2962. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  2963. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  2964. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  2965. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  2966. bgObject.SetActive(true);
  2967. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  2968. isIdx1 = false;
  2969. isIdx2 = false;
  2970. isIdx3 = false;
  2971. isIdx4 = false;
  2972. lightIndex[0] = int.Parse(strArray3[17]);
  2973. lightColorR[0] = float.Parse(strArray3[18]);
  2974. lightColorG[0] = float.Parse(strArray3[19]);
  2975. lightColorB[0] = float.Parse(strArray3[20]);
  2976. GameMain.Instance.MainLight.Reset();
  2977. GameMain.Instance.MainLight.SetIntensity(0.95f);
  2978. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  2979. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  2980. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  2981. if (lightIndex[0] == 0)
  2982. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  2983. else if (lightIndex[0] == 1)
  2984. {
  2985. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  2986. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  2987. }
  2988. else if (lightIndex[0] == 2)
  2989. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  2990. else if (lightIndex[0] == 3)
  2991. {
  2992. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  2993. bgObject.SetActive(false);
  2994. }
  2995. if (lightIndex[0] != 3)
  2996. {
  2997. GameMain.Instance.MainLight.GetComponent<Light>().color = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  2998. bgObject.SetActive(true);
  2999. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  3000. }
  3001. else
  3002. mainCamera.GetComponent<Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  3003. GameMain.Instance.MainLight.transform.eulerAngles =
  3004. new Vector3(float.Parse(strArray3[21]), float.Parse(strArray3[22]), float.Parse(strArray3[23]));
  3005. GameMain.Instance.MainLight.GetComponent<Light>().intensity = float.Parse(strArray3[24]);
  3006. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = float.Parse(strArray3[25]);
  3007. GameMain.Instance.MainLight.GetComponent<Light>().range = float.Parse(strArray3[26]);
  3008. lightX = new List<float>();
  3009. lightX.Add(float.Parse(strArray3[21]));
  3010. lightY = new List<float>();
  3011. lightY.Add(float.Parse(strArray3[22]));
  3012. lightAkarusa = new List<float>();
  3013. lightAkarusa.Add(float.Parse(strArray3[24]));
  3014. lightKage = new List<float>();
  3015. lightKage.Add(0.098f);
  3016. lightRange = new List<float>();
  3017. lightRange.Add(float.Parse(strArray3[25]));
  3018. selectLightIndex = 0;
  3019. isIdx1 = false;
  3020. isIdx2 = false;
  3021. isIdx3 = false;
  3022. isIdx4 = false;
  3023. if (!kankyoLoadFlg && !isVR)
  3024. {
  3025. mainCamera.SetTargetPos(new Vector3(float.Parse(strArray3[27]),
  3026. float.Parse(strArray3[28]),
  3027. float.Parse(strArray3[29])),
  3028. true);
  3029. mainCamera.SetDistance(float.Parse(strArray3[30]), true);
  3030. mainCamera.transform.eulerAngles =
  3031. new Vector3(float.Parse(strArray3[31]), float.Parse(strArray3[32]), float.Parse(strArray3[33]));
  3032. if (int.Parse(strArray3[34]) == 1)
  3033. {
  3034. inName = strArray3[35];
  3035. inText = strArray3[36];
  3036. inText = inText.Replace("&kaigyo", "\n");
  3037. isMessage = true;
  3038. bGuiMessage = false;
  3039. GameObject gameObject =
  3040. GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  3041. MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
  3042. messageWindowMgr.OpenMessageWindowPanel();
  3043. MessageClass messageClass = new MessageClass(gameObject, messageWindowMgr);
  3044. messageClass.SetText(inName, inText, "", 0);
  3045. messageClass.FinishChAnime();
  3046. }
  3047. else if (isMessage)
  3048. {
  3049. isMessage = false;
  3050. GameObject gameObject =
  3051. GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  3052. GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr.CloseMessageWindowPanel();
  3053. }
  3054. }
  3055. }
  3056. if (strArray3.Length > 37 && strArray3[37] != "")
  3057. {
  3058. if (doguSelectIndex == doguObject.Count)
  3059. doguIndex.Add(0);
  3060. else if (doguObject.Count > 0 && (Object) doguObject[doguSelectIndex] != (Object) null)
  3061. {
  3062. Destroy((Object) doguObject[doguSelectIndex]);
  3063. doguObject.RemoveAt(doguSelectIndex);
  3064. }
  3065. else
  3066. {
  3067. doguIndex.Add(0);
  3068. doguSelectIndex = doguIndex.Count - 1;
  3069. }
  3070. string str = strArray3[37].Replace(" ", "_");
  3071. for (int index = 0; index < doguArray.Length; ++index)
  3072. {
  3073. if (str == doguArray[index])
  3074. {
  3075. doguIndex[doguSelectIndex] = index;
  3076. break;
  3077. }
  3078. }
  3079. if (!doguArray[doguIndex[doguSelectIndex]].StartsWith("mirror"))
  3080. {
  3081. Object original = (Object) null;
  3082. for (int index = 0; index < 5; ++index)
  3083. {
  3084. original = Resources.Load("Prefab/" + doguArray[doguIndex[doguSelectIndex]]);
  3085. if (!(original != (Object) null))
  3086. {
  3087. List<int> doguIndex;
  3088. int doguSelectIndex;
  3089. (doguIndex = this.doguIndex)[doguSelectIndex = this.doguSelectIndex] = doguIndex[doguSelectIndex] + 1;
  3090. }
  3091. else
  3092. break;
  3093. }
  3094. doguObject.Add(Instantiate(original) as GameObject);
  3095. }
  3096. else
  3097. {
  3098. Material material = new Material(Shader.Find("Mirror"));
  3099. GameObject primitive = GameObject.CreatePrimitive(PrimitiveType.Plane);
  3100. primitive.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  3101. primitive.GetComponent<Renderer>().material = material;
  3102. primitive.AddComponent<MirrorReflection2>();
  3103. MirrorReflection2 component = primitive.GetComponent<MirrorReflection2>();
  3104. component.m_TextureSize = 2048;
  3105. component.m_ClipPlaneOffset = 0.0f;
  3106. primitive.GetComponent<Renderer>().enabled = true;
  3107. doguObject.Add(primitive);
  3108. }
  3109. Vector3 zero1 = Vector3.zero;
  3110. Vector3 zero2 = Vector3.zero;
  3111. zero2.x = -90f;
  3112. switch (doguIndex[doguSelectIndex])
  3113. {
  3114. case 1:
  3115. zero1.z = -0.5f;
  3116. break;
  3117. case 2:
  3118. zero1.z = -0.5f;
  3119. break;
  3120. case 3:
  3121. zero1.z = 0.5f;
  3122. zero2.z = 90f;
  3123. break;
  3124. case 4:
  3125. zero1.z = 0.9f;
  3126. break;
  3127. case 5:
  3128. zero1.z = 0.9f;
  3129. break;
  3130. case 6:
  3131. zero1.z = 0.6f;
  3132. zero2.x = 0.0f;
  3133. doguObject[doguSelectIndex].transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  3134. break;
  3135. case 7:
  3136. zero1.z = 0.6f;
  3137. doguObject[doguSelectIndex].transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  3138. break;
  3139. case 8:
  3140. zero1.z = 0.5f;
  3141. zero2.x = 0.0f;
  3142. break;
  3143. case 9:
  3144. zero1.z = 0.32f;
  3145. zero2.z = 180f;
  3146. break;
  3147. case 10:
  3148. zero1.z = 0.6f;
  3149. break;
  3150. case 11:
  3151. zero1.z = 0.6f;
  3152. break;
  3153. case 12:
  3154. zero1.z = 0.5f;
  3155. zero2.z = 180f;
  3156. break;
  3157. case 13:
  3158. zero1.z = 0.7f;
  3159. zero2.z = 180f;
  3160. break;
  3161. case 14:
  3162. zero1.z = -0.4f;
  3163. break;
  3164. case 15:
  3165. zero1.z = -0.4f;
  3166. break;
  3167. case 16:
  3168. zero1.z = -0.4f;
  3169. zero2.z = 180f;
  3170. break;
  3171. case 17:
  3172. zero1.z = -0.4f;
  3173. break;
  3174. case 18:
  3175. zero1.z = -0.2f;
  3176. break;
  3177. case 19:
  3178. zero1.z = 0.0f;
  3179. break;
  3180. case 20:
  3181. zero1.z = 3.4f;
  3182. zero1.x = -1f;
  3183. break;
  3184. case 21:
  3185. zero1.z = 3.4f;
  3186. zero1.x = -1f;
  3187. break;
  3188. case 22:
  3189. zero1.z = 3.4f;
  3190. zero1.y = 0.3f;
  3191. zero1.x = -1f;
  3192. break;
  3193. case 23:
  3194. zero1.z = 2.7f;
  3195. zero1.x = 0.77f;
  3196. zero2.z = 90f;
  3197. break;
  3198. case 25:
  3199. zero1.z = 0.5f;
  3200. zero1.y = 0.9f;
  3201. zero2.z = 180f;
  3202. break;
  3203. case 26:
  3204. zero1.z = 0.5f;
  3205. zero1.y = 0.9f;
  3206. zero2.z = 180f;
  3207. break;
  3208. case 29:
  3209. zero1.z = 0.5f;
  3210. zero1.x = -1.05f;
  3211. break;
  3212. case 30:
  3213. zero1.z = 0.0f;
  3214. zero2.z = 0.0f;
  3215. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.75f, 0.75f, 0.75f);
  3216. break;
  3217. case 31:
  3218. zero1.z = -0.6f;
  3219. zero1.y = 0.96f;
  3220. zero2.z = 180f;
  3221. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  3222. break;
  3223. case 32:
  3224. zero1.z = -0.6f;
  3225. zero1.y = 0.96f;
  3226. zero2.z = 180f;
  3227. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  3228. break;
  3229. case 33:
  3230. zero1.z = -0.6f;
  3231. zero1.y = 0.85f;
  3232. zero2.z = 180f;
  3233. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  3234. break;
  3235. default:
  3236. zero1.z = 0.5f;
  3237. break;
  3238. }
  3239. doguObject[doguSelectIndex].transform.localPosition = zero1;
  3240. doguObject[doguSelectIndex].transform.localRotation = Quaternion.Euler(zero2);
  3241. doguObject[doguSelectIndex].transform.localEulerAngles =
  3242. new Vector3(float.Parse(strArray3[38]), float.Parse(strArray3[39]), float.Parse(strArray3[40]));
  3243. doguObject[doguSelectIndex].transform.position =
  3244. new Vector3(float.Parse(strArray3[41]), float.Parse(strArray3[42]), float.Parse(strArray3[43]));
  3245. doguObject[doguSelectIndex].transform.localScale =
  3246. new Vector3(float.Parse(strArray3[44]), float.Parse(strArray3[45]), float.Parse(strArray3[46]));
  3247. }
  3248. if (!kankyoLoadFlg)
  3249. {
  3250. for (int i = 0; i < strArray2.Length && maidCnt > i; ++i)
  3251. {
  3252. Maid maid = maidArray[i];
  3253. if ((bool) ((Object) maid) && maid.Visible)
  3254. {
  3255. this.SetIK(maid, i);
  3256. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  3257. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  3258. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  3259. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  3260. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  3261. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  3262. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  3263. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  3264. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  3265. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  3266. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  3267. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  3268. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  3269. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  3270. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  3271. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  3272. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  3273. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  3274. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  3275. string[] strArray8 = strArray2[i].Split(':');
  3276. for (int index = 0; index < 40; ++index)
  3277. {
  3278. string[] strArray9 = strArray8[index].Split(',');
  3279. Finger[i, index].localEulerAngles =
  3280. new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3281. }
  3282. bool flag1 = false;
  3283. if (strArray8.Length == 64)
  3284. flag1 = true;
  3285. if (!isVR)
  3286. {
  3287. maid.body0.quaDefEyeL.eulerAngles = eyeL[(int) selectList[i]];
  3288. maid.body0.quaDefEyeR.eulerAngles = eyeR[(int) selectList[i]];
  3289. }
  3290. for (int index1 = 0; index1 < 3; ++index1)
  3291. {
  3292. for (int index2 = 40; index2 < strArray8.Length; ++index2)
  3293. {
  3294. string[] strArray9 = strArray8[index2].Split(',');
  3295. switch (index2)
  3296. {
  3297. case 40:
  3298. if (flag1)
  3299. Spine.localEulerAngles =
  3300. new Vector3(float.Parse(strArray9[0]),
  3301. float.Parse(strArray9[1]),
  3302. float.Parse(strArray9[2]));
  3303. if (!flag1)
  3304. {
  3305. Spine.eulerAngles = new Vector3(float.Parse(strArray9[0]),
  3306. float.Parse(strArray9[1]),
  3307. float.Parse(strArray9[2]));
  3308. break;
  3309. }
  3310. break;
  3311. case 41:
  3312. if (flag1)
  3313. Spine0a.localEulerAngles =
  3314. new Vector3(float.Parse(strArray9[0]),
  3315. float.Parse(strArray9[1]),
  3316. float.Parse(strArray9[2]));
  3317. if (!flag1)
  3318. {
  3319. Spine0a.eulerAngles =
  3320. new Vector3(float.Parse(strArray9[0]),
  3321. float.Parse(strArray9[1]),
  3322. float.Parse(strArray9[2]));
  3323. break;
  3324. }
  3325. break;
  3326. case 42:
  3327. if (flag1)
  3328. Spine1.localEulerAngles =
  3329. new Vector3(float.Parse(strArray9[0]),
  3330. float.Parse(strArray9[1]),
  3331. float.Parse(strArray9[2]));
  3332. if (!flag1)
  3333. {
  3334. Spine1.eulerAngles = new Vector3(float.Parse(strArray9[0]),
  3335. float.Parse(strArray9[1]),
  3336. float.Parse(strArray9[2]));
  3337. break;
  3338. }
  3339. break;
  3340. case 43:
  3341. if (flag1)
  3342. Spine1a.localEulerAngles =
  3343. new Vector3(float.Parse(strArray9[0]),
  3344. float.Parse(strArray9[1]),
  3345. float.Parse(strArray9[2]));
  3346. if (!flag1)
  3347. {
  3348. Spine1a.eulerAngles =
  3349. new Vector3(float.Parse(strArray9[0]),
  3350. float.Parse(strArray9[1]),
  3351. float.Parse(strArray9[2]));
  3352. break;
  3353. }
  3354. break;
  3355. case 44:
  3356. if (flag1)
  3357. Pelvis.localEulerAngles =
  3358. new Vector3(float.Parse(strArray9[0]),
  3359. float.Parse(strArray9[1]),
  3360. float.Parse(strArray9[2]));
  3361. if (!flag1)
  3362. {
  3363. Pelvis.eulerAngles = new Vector3(float.Parse(strArray9[0]),
  3364. float.Parse(strArray9[1]),
  3365. float.Parse(strArray9[2]));
  3366. break;
  3367. }
  3368. break;
  3369. case 45:
  3370. HandL1[i].localEulerAngles =
  3371. new Vector3(float.Parse(strArray9[0]),
  3372. float.Parse(strArray9[1]),
  3373. float.Parse(strArray9[2]));
  3374. break;
  3375. case 46:
  3376. if (flag1)
  3377. UpperArmL1[i].localEulerAngles =
  3378. new Vector3(float.Parse(strArray9[0]),
  3379. float.Parse(strArray9[1]),
  3380. float.Parse(strArray9[2]));
  3381. if (!flag1)
  3382. {
  3383. UpperArmL1[i].eulerAngles =
  3384. new Vector3(float.Parse(strArray9[0]),
  3385. float.Parse(strArray9[1]),
  3386. float.Parse(strArray9[2]));
  3387. break;
  3388. }
  3389. break;
  3390. case 47:
  3391. if (flag1)
  3392. ForearmL1[i].localEulerAngles =
  3393. new Vector3(float.Parse(strArray9[0]),
  3394. float.Parse(strArray9[1]),
  3395. float.Parse(strArray9[2]));
  3396. if (!flag1)
  3397. {
  3398. ForearmL1[i].eulerAngles =
  3399. new Vector3(float.Parse(strArray9[0]),
  3400. float.Parse(strArray9[1]),
  3401. float.Parse(strArray9[2]));
  3402. break;
  3403. }
  3404. break;
  3405. case 48:
  3406. HandR1[i].localEulerAngles =
  3407. new Vector3(float.Parse(strArray9[0]),
  3408. float.Parse(strArray9[1]),
  3409. float.Parse(strArray9[2]));
  3410. break;
  3411. case 49:
  3412. if (flag1)
  3413. UpperArmR1[i].localEulerAngles =
  3414. new Vector3(float.Parse(strArray9[0]),
  3415. float.Parse(strArray9[1]),
  3416. float.Parse(strArray9[2]));
  3417. if (!flag1)
  3418. {
  3419. UpperArmR1[i].eulerAngles =
  3420. new Vector3(float.Parse(strArray9[0]),
  3421. float.Parse(strArray9[1]),
  3422. float.Parse(strArray9[2]));
  3423. break;
  3424. }
  3425. break;
  3426. case 50:
  3427. if (flag1)
  3428. ForearmR1[i].localEulerAngles =
  3429. new Vector3(float.Parse(strArray9[0]),
  3430. float.Parse(strArray9[1]),
  3431. float.Parse(strArray9[2]));
  3432. if (!flag1)
  3433. {
  3434. ForearmR1[i].eulerAngles =
  3435. new Vector3(float.Parse(strArray9[0]),
  3436. float.Parse(strArray9[1]),
  3437. float.Parse(strArray9[2]));
  3438. break;
  3439. }
  3440. break;
  3441. case 51:
  3442. HandL2[i].localEulerAngles =
  3443. new Vector3(float.Parse(strArray9[0]),
  3444. float.Parse(strArray9[1]),
  3445. float.Parse(strArray9[2]));
  3446. break;
  3447. case 52:
  3448. if (flag1)
  3449. UpperArmL2[i].localEulerAngles =
  3450. new Vector3(float.Parse(strArray9[0]),
  3451. float.Parse(strArray9[1]),
  3452. float.Parse(strArray9[2]));
  3453. if (!flag1)
  3454. {
  3455. UpperArmL2[i].eulerAngles =
  3456. new Vector3(float.Parse(strArray9[0]),
  3457. float.Parse(strArray9[1]),
  3458. float.Parse(strArray9[2]));
  3459. break;
  3460. }
  3461. break;
  3462. case 53:
  3463. if (flag1)
  3464. ForearmL2[i].localEulerAngles =
  3465. new Vector3(float.Parse(strArray9[0]),
  3466. float.Parse(strArray9[1]),
  3467. float.Parse(strArray9[2]));
  3468. if (!flag1)
  3469. {
  3470. ForearmL2[i].eulerAngles =
  3471. new Vector3(float.Parse(strArray9[0]),
  3472. float.Parse(strArray9[1]),
  3473. float.Parse(strArray9[2]));
  3474. break;
  3475. }
  3476. break;
  3477. case 54:
  3478. HandR2[i].localEulerAngles =
  3479. new Vector3(float.Parse(strArray9[0]),
  3480. float.Parse(strArray9[1]),
  3481. float.Parse(strArray9[2]));
  3482. break;
  3483. case 55:
  3484. if (flag1)
  3485. UpperArmR2[i].localEulerAngles =
  3486. new Vector3(float.Parse(strArray9[0]),
  3487. float.Parse(strArray9[1]),
  3488. float.Parse(strArray9[2]));
  3489. if (!flag1)
  3490. {
  3491. UpperArmR2[i].eulerAngles =
  3492. new Vector3(float.Parse(strArray9[0]),
  3493. float.Parse(strArray9[1]),
  3494. float.Parse(strArray9[2]));
  3495. break;
  3496. }
  3497. break;
  3498. case 56:
  3499. if (flag1)
  3500. ForearmR2[i].localEulerAngles =
  3501. new Vector3(float.Parse(strArray9[0]),
  3502. float.Parse(strArray9[1]),
  3503. float.Parse(strArray9[2]));
  3504. if (!flag1)
  3505. {
  3506. ForearmR2[i].eulerAngles =
  3507. new Vector3(float.Parse(strArray9[0]),
  3508. float.Parse(strArray9[1]),
  3509. float.Parse(strArray9[2]));
  3510. break;
  3511. }
  3512. break;
  3513. case 57:
  3514. if (flag1)
  3515. Head.localEulerAngles =
  3516. new Vector3(float.Parse(strArray9[0]),
  3517. float.Parse(strArray9[1]),
  3518. float.Parse(strArray9[2]));
  3519. if (!flag1)
  3520. {
  3521. Head.eulerAngles = new Vector3(float.Parse(strArray9[0]),
  3522. float.Parse(strArray9[1]),
  3523. float.Parse(strArray9[2]));
  3524. break;
  3525. }
  3526. break;
  3527. case 58:
  3528. maid.transform.localEulerAngles =
  3529. new Vector3(float.Parse(strArray9[0]),
  3530. float.Parse(strArray9[1]),
  3531. float.Parse(strArray9[2]));
  3532. break;
  3533. case 59:
  3534. maid.transform.position =
  3535. new Vector3(float.Parse(strArray9[0]),
  3536. float.Parse(strArray9[1]),
  3537. float.Parse(strArray9[2]));
  3538. break;
  3539. case 60:
  3540. maid.transform.localScale =
  3541. new Vector3(float.Parse(strArray9[0]),
  3542. float.Parse(strArray9[1]),
  3543. float.Parse(strArray9[2]));
  3544. break;
  3545. case 63:
  3546. if (index1 <= 0)
  3547. {
  3548. hanten[i] = false;
  3549. hantenn[i] = false;
  3550. TMorph morph = maid.body0.Face.morph;
  3551. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  3552. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  3553. if (!isVR)
  3554. maid.boMabataki = false;
  3555. fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray9[0]);
  3556. fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray9[1]);
  3557. fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray9[2]);
  3558. fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray9[3]);
  3559. fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray9[4]);
  3560. fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray9[5]);
  3561. fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray9[6]);
  3562. fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray9[7]);
  3563. fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray9[8]);
  3564. fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray9[9]);
  3565. fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray9[10]);
  3566. fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray9[11]);
  3567. fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray9[12]);
  3568. fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray9[13]);
  3569. fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray9[14]);
  3570. fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray9[15]);
  3571. fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray9[16]);
  3572. fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray9[17]);
  3573. fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray9[18]);
  3574. fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray9[19]);
  3575. fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray9[20]);
  3576. fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray9[21]);
  3577. fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray9[22]) + 0.01f;
  3578. isLoadFace[i] = true;
  3579. try
  3580. {
  3581. fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray9[23]);
  3582. }
  3583. catch { }
  3584. if ((double) float.Parse(strArray9[24]) == 1.0)
  3585. fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
  3586. else
  3587. fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
  3588. if ((double) float.Parse(strArray9[25]) == 1.0)
  3589. fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
  3590. else
  3591. fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
  3592. if ((double) float.Parse(strArray9[26]) == 1.0)
  3593. fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
  3594. else
  3595. fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
  3596. if ((double) float.Parse(strArray9[27]) == 1.0)
  3597. fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
  3598. else
  3599. fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
  3600. if ((double) float.Parse(strArray9[28]) == 1.0)
  3601. fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
  3602. else
  3603. fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
  3604. if ((double) float.Parse(strArray9[29]) == 1.0)
  3605. fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
  3606. else
  3607. fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
  3608. if ((double) float.Parse(strArray9[30]) == 1.0)
  3609. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
  3610. else
  3611. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
  3612. if ((double) float.Parse(strArray9[31]) == 1.0)
  3613. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
  3614. else
  3615. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
  3616. if ((double) float.Parse(strArray9[32]) == 1.0)
  3617. fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
  3618. else
  3619. fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
  3620. if ((double) float.Parse(strArray9[33]) == 1.0)
  3621. fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
  3622. else
  3623. fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
  3624. if ((double) float.Parse(strArray9[34]) == 1.0)
  3625. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
  3626. else
  3627. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
  3628. if (strArray9.Length > 35)
  3629. morph.boNoseFook = (double) float.Parse(strArray9[35]) == 1.0;
  3630. isFace[i] = true;
  3631. isFaceInit = true;
  3632. break;
  3633. }
  3634. break;
  3635. case 64:
  3636. if (index1 <= 0 && !isVR)
  3637. {
  3638. if (int.Parse(strArray9[0]) == 1)
  3639. {
  3640. isLook[i] = true;
  3641. lookX[i] = float.Parse(strArray9[1]);
  3642. lookY[i] = float.Parse(strArray9[2]);
  3643. if ((double) maid.body0.offsetLookTarget.x != (double) lookY[i])
  3644. {
  3645. int num = !isLock[i] ? 1 : ((double) lookY[i] >= 0.0 ? 1 : 0);
  3646. maid.body0.offsetLookTarget =
  3647. num != 0
  3648. ? new Vector3(lookY[i], 1f, lookX[i])
  3649. : new Vector3(lookY[i] * 0.6f, 1f, lookX[i]);
  3650. }
  3651. if ((double) lookX[i] != (double) lookXn[i])
  3652. {
  3653. lookXn[i] = lookX[i];
  3654. maid.body0.offsetLookTarget = new Vector3(lookY[i], 1f, lookX[i]);
  3655. }
  3656. if ((double) lookY[i] != (double) lookYn[i])
  3657. {
  3658. lookYn[i] = lookY[i];
  3659. int num = !isLock[i] ? 1 : ((double) lookY[i] >= 0.0 ? 1 : 0);
  3660. maid.body0.offsetLookTarget =
  3661. num != 0
  3662. ? new Vector3(lookY[i], 1f, lookX[i])
  3663. : new Vector3(lookY[i] * 0.6f, 1f, lookX[i]);
  3664. }
  3665. }
  3666. else
  3667. isLook[i] = false;
  3668. if (isLook[i])
  3669. {
  3670. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  3671. maid.body0.boHeadToCam = true;
  3672. maid.body0.boEyeToCam = true;
  3673. maid.body0.trsLookTarget = (Transform) null;
  3674. }
  3675. else
  3676. {
  3677. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  3678. maid.body0.boHeadToCam = true;
  3679. maid.body0.boEyeToCam = true;
  3680. }
  3681. break;
  3682. }
  3683. break;
  3684. case 65:
  3685. if (index1 <= 0)
  3686. {
  3687. if (itemIndex[i] != int.Parse(strArray9[0]))
  3688. {
  3689. itemIndex[i] = int.Parse(strArray9[0]);
  3690. if (itemIndex[i] == itemArray.Length - 1)
  3691. itemIndex[i] = 0;
  3692. string[] strArray10 = new string[2];
  3693. string[] strArray11 = itemArray[itemIndex[i]].Split(',');
  3694. if (itemIndex[i] > 13)
  3695. strArray11 = itemArray[itemIndex[i] + 1].Split(',');
  3696. maid.DelProp(MPN.handitem, true);
  3697. maid.DelProp(MPN.accvag, true);
  3698. maid.DelProp(MPN.accanl, true);
  3699. bool flag2 = false;
  3700. if (itemIndex[i] == 12 || itemIndex[i] == 13)
  3701. flag2 = true;
  3702. if (!flag2)
  3703. {
  3704. maid.DelProp(MPN.kousoku_upper, true);
  3705. maid.DelProp(MPN.kousoku_lower, true);
  3706. }
  3707. if (strArray11[0] != "")
  3708. maid.SetProp(strArray11[0], strArray11[1], 0, true, false);
  3709. if (itemIndex[i] == 12)
  3710. {
  3711. string[] strArray12 = itemArray[itemIndex[i] - 1].Split(',');
  3712. maid.SetProp(strArray12[0], strArray12[1], 0, true, false);
  3713. }
  3714. if (itemIndex[i] == 13)
  3715. {
  3716. string[] strArray12 = itemArray[itemIndex[i] + 1].Split(',');
  3717. maid.SetProp(strArray12[0], strArray12[1], 0, true, false);
  3718. }
  3719. if (itemIndex[i] == 23)
  3720. {
  3721. string[] strArray12 = itemArray[itemIndex[i]].Split(',');
  3722. maid.SetProp(strArray12[0], strArray12[1], 0, true, false);
  3723. cafeFlg[i] = true;
  3724. }
  3725. maid.AllProcPropSeqStart();
  3726. }
  3727. IK_hand = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true);
  3728. break;
  3729. }
  3730. break;
  3731. case 66:
  3732. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true).localEulerAngles =
  3733. new Vector3(float.Parse(strArray9[0]),
  3734. float.Parse(strArray9[1]),
  3735. float.Parse(strArray9[2]));
  3736. break;
  3737. case 67:
  3738. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true).localEulerAngles =
  3739. new Vector3(float.Parse(strArray9[0]),
  3740. float.Parse(strArray9[1]),
  3741. float.Parse(strArray9[2]));
  3742. break;
  3743. case 68:
  3744. if (strArray9.Length >= 2)
  3745. {
  3746. ClavicleL1[i].eulerAngles =
  3747. new Vector3(float.Parse(strArray9[0]),
  3748. float.Parse(strArray9[1]),
  3749. float.Parse(strArray9[2]));
  3750. break;
  3751. }
  3752. break;
  3753. case 69:
  3754. ClavicleR1[i].eulerAngles =
  3755. new Vector3(float.Parse(strArray9[0]),
  3756. float.Parse(strArray9[1]),
  3757. float.Parse(strArray9[2]));
  3758. break;
  3759. case 70:
  3760. if (int.Parse(strArray9[0]) == 1)
  3761. {
  3762. hanten[i] = true;
  3763. hantenn[i] = true;
  3764. break;
  3765. }
  3766. break;
  3767. case 71:
  3768. transform1.eulerAngles =
  3769. new Vector3(float.Parse(strArray9[0]),
  3770. float.Parse(strArray9[1]),
  3771. float.Parse(strArray9[2]));
  3772. break;
  3773. case 72:
  3774. transform2.localEulerAngles =
  3775. new Vector3(float.Parse(strArray9[0]),
  3776. float.Parse(strArray9[1]),
  3777. float.Parse(strArray9[2]));
  3778. break;
  3779. case 73:
  3780. transform3.localEulerAngles =
  3781. new Vector3(float.Parse(strArray9[0]),
  3782. float.Parse(strArray9[1]),
  3783. float.Parse(strArray9[2]));
  3784. break;
  3785. case 74:
  3786. transform4.localEulerAngles =
  3787. new Vector3(float.Parse(strArray9[0]),
  3788. float.Parse(strArray9[1]),
  3789. float.Parse(strArray9[2]));
  3790. break;
  3791. case 75:
  3792. transform5.localEulerAngles =
  3793. new Vector3(float.Parse(strArray9[0]),
  3794. float.Parse(strArray9[1]),
  3795. float.Parse(strArray9[2]));
  3796. break;
  3797. case 76:
  3798. transform6.localEulerAngles =
  3799. new Vector3(float.Parse(strArray9[0]),
  3800. float.Parse(strArray9[1]),
  3801. float.Parse(strArray9[2]));
  3802. break;
  3803. case 77:
  3804. transform7.localEulerAngles =
  3805. new Vector3(float.Parse(strArray9[0]),
  3806. float.Parse(strArray9[1]),
  3807. float.Parse(strArray9[2]));
  3808. break;
  3809. case 78:
  3810. transform8.localEulerAngles =
  3811. new Vector3(float.Parse(strArray9[0]),
  3812. float.Parse(strArray9[1]),
  3813. float.Parse(strArray9[2]));
  3814. break;
  3815. case 79:
  3816. transform9.localEulerAngles =
  3817. new Vector3(float.Parse(strArray9[0]),
  3818. float.Parse(strArray9[1]),
  3819. float.Parse(strArray9[2]));
  3820. break;
  3821. case 80:
  3822. transform10.localEulerAngles =
  3823. new Vector3(float.Parse(strArray9[0]),
  3824. float.Parse(strArray9[1]),
  3825. float.Parse(strArray9[2]));
  3826. break;
  3827. case 81:
  3828. transform11.localEulerAngles =
  3829. new Vector3(float.Parse(strArray9[0]),
  3830. float.Parse(strArray9[1]),
  3831. float.Parse(strArray9[2]));
  3832. break;
  3833. case 82:
  3834. transform12.localEulerAngles =
  3835. new Vector3(float.Parse(strArray9[0]),
  3836. float.Parse(strArray9[1]),
  3837. float.Parse(strArray9[2]));
  3838. break;
  3839. case 83:
  3840. transform13.localEulerAngles =
  3841. new Vector3(float.Parse(strArray9[0]),
  3842. float.Parse(strArray9[1]),
  3843. float.Parse(strArray9[2]));
  3844. break;
  3845. case 84:
  3846. transform14.localEulerAngles =
  3847. new Vector3(float.Parse(strArray9[0]),
  3848. float.Parse(strArray9[1]),
  3849. float.Parse(strArray9[2]));
  3850. break;
  3851. case 85:
  3852. transform15.localEulerAngles =
  3853. new Vector3(float.Parse(strArray9[0]),
  3854. float.Parse(strArray9[1]),
  3855. float.Parse(strArray9[2]));
  3856. break;
  3857. case 86:
  3858. transform16.localEulerAngles =
  3859. new Vector3(float.Parse(strArray9[0]),
  3860. float.Parse(strArray9[1]),
  3861. float.Parse(strArray9[2]));
  3862. break;
  3863. case 87:
  3864. transform17.localEulerAngles =
  3865. new Vector3(float.Parse(strArray9[0]),
  3866. float.Parse(strArray9[1]),
  3867. float.Parse(strArray9[2]));
  3868. break;
  3869. case 88:
  3870. transform18.localEulerAngles =
  3871. new Vector3(float.Parse(strArray9[0]),
  3872. float.Parse(strArray9[1]),
  3873. float.Parse(strArray9[2]));
  3874. break;
  3875. case 89:
  3876. transform19.localEulerAngles =
  3877. new Vector3(float.Parse(strArray9[0]),
  3878. float.Parse(strArray9[1]),
  3879. float.Parse(strArray9[2]));
  3880. break;
  3881. case 90:
  3882. if (!isVR)
  3883. {
  3884. maid.body0.quaDefEyeL.eulerAngles =
  3885. new Vector3(float.Parse(strArray9[0]),
  3886. float.Parse(strArray9[1]),
  3887. float.Parse(strArray9[2]));
  3888. break;
  3889. }
  3890. break;
  3891. case 91:
  3892. if (!isVR)
  3893. {
  3894. maid.body0.quaDefEyeR.eulerAngles =
  3895. new Vector3(float.Parse(strArray9[0]),
  3896. float.Parse(strArray9[1]),
  3897. float.Parse(strArray9[2]));
  3898. break;
  3899. }
  3900. break;
  3901. case 92:
  3902. vIKMuneL[i] = new Vector3(float.Parse(strArray9[0]),
  3903. float.Parse(strArray9[1]),
  3904. float.Parse(strArray9[2]));
  3905. muneIKL[i] = true;
  3906. break;
  3907. case 93:
  3908. vIKMuneLSub[i] = new Vector3(float.Parse(strArray9[0]),
  3909. float.Parse(strArray9[1]),
  3910. float.Parse(strArray9[2]));
  3911. break;
  3912. case 94:
  3913. vIKMuneR[i] = new Vector3(float.Parse(strArray9[0]),
  3914. float.Parse(strArray9[1]),
  3915. float.Parse(strArray9[2]));
  3916. muneIKR[i] = true;
  3917. break;
  3918. case 95:
  3919. vIKMuneRSub[i] = new Vector3(float.Parse(strArray9[0]),
  3920. float.Parse(strArray9[1]),
  3921. float.Parse(strArray9[2]));
  3922. break;
  3923. case 96:
  3924. haraCount[i] = 2;
  3925. haraPosition[i] = new Vector3(float.Parse(strArray9[0]),
  3926. float.Parse(strArray9[1]),
  3927. float.Parse(strArray9[2]));
  3928. transform1.position = new Vector3(float.Parse(strArray9[0]),
  3929. float.Parse(strArray9[1]),
  3930. float.Parse(strArray9[2]));
  3931. break;
  3932. }
  3933. }
  3934. }
  3935. isStop[i] = true;
  3936. isLock[i] = true;
  3937. }
  3938. }
  3939. }
  3940. isBloom = false;
  3941. bloom1 = 2.85f;
  3942. bloom2 = 3f;
  3943. bloom3 = 0.0f;
  3944. bloom4 = 0.0f;
  3945. bloom5 = 0.0f;
  3946. isBloomA = false;
  3947. isBlur = false;
  3948. blur1 = -3.98f;
  3949. blur4 = -0.75f;
  3950. blur2 = 0.9f;
  3951. blur3 = 4.19f;
  3952. bokashi = 0.0f;
  3953. kamiyure = 0.0f;
  3954. isDepth = false;
  3955. isDepthA = false;
  3956. depth1 = 3f;
  3957. depth2 = 0.1f;
  3958. depth3 = 15f;
  3959. depth4 = 3f;
  3960. isFog = false;
  3961. fog1 = 4f;
  3962. fog2 = 1f;
  3963. fog3 = 1f;
  3964. fog4 = 0.0f;
  3965. fog5 = 1f;
  3966. fog6 = 1f;
  3967. fog7 = 1f;
  3968. isSepia = false;
  3969. if (strArray4 != null)
  3970. {
  3971. lightKage[0] = float.Parse(strArray4[0]);
  3972. if (int.Parse(strArray4[1]) == 1)
  3973. {
  3974. isBloom = true;
  3975. bloom1 = float.Parse(strArray4[2]);
  3976. bloom2 = float.Parse(strArray4[3]);
  3977. bloom3 = float.Parse(strArray4[4]);
  3978. bloom4 = float.Parse(strArray4[5]);
  3979. bloom5 = float.Parse(strArray4[6]);
  3980. if (int.Parse(strArray4[7]) == 1)
  3981. isBloomA = true;
  3982. }
  3983. if (int.Parse(strArray4[8]) == 1)
  3984. {
  3985. isBlur = true;
  3986. blur1 = float.Parse(strArray4[9]);
  3987. blur2 = float.Parse(strArray4[10]);
  3988. blur3 = float.Parse(strArray4[11]);
  3989. blur4 = float.Parse(strArray4[12]);
  3990. }
  3991. bokashi = float.Parse(strArray4[13]);
  3992. kamiyure = float.Parse(strArray4[14]);
  3993. if (strArray4.Length > 15)
  3994. {
  3995. if (int.Parse(strArray4[15]) == 1)
  3996. {
  3997. isDepth = true;
  3998. depth1 = float.Parse(strArray4[16]);
  3999. depth2 = float.Parse(strArray4[17]);
  4000. depth3 = float.Parse(strArray4[18]);
  4001. depth4 = float.Parse(strArray4[19]);
  4002. if (int.Parse(strArray4[20]) == 1)
  4003. isDepthA = true;
  4004. }
  4005. if (int.Parse(strArray4[21]) == 1)
  4006. {
  4007. isFog = true;
  4008. fog1 = float.Parse(strArray4[22]);
  4009. fog2 = float.Parse(strArray4[23]);
  4010. fog3 = float.Parse(strArray4[24]);
  4011. fog4 = float.Parse(strArray4[25]);
  4012. fog5 = float.Parse(strArray4[26]);
  4013. fog6 = float.Parse(strArray4[27]);
  4014. fog7 = float.Parse(strArray4[28]);
  4015. }
  4016. if (int.Parse(strArray4[29]) == 1)
  4017. isSepia = true;
  4018. }
  4019. }
  4020. if (strArray5 != null)
  4021. {
  4022. for (int index1 = 0; index1 < strArray5.Length - 1; ++index1)
  4023. {
  4024. string[] strArray8 = strArray5[index1].Split(',');
  4025. GameObject gameObject = new GameObject("Light");
  4026. gameObject.AddComponent<Light>();
  4027. lightList.Add(gameObject);
  4028. lightIndex.Add(int.Parse(strArray8[0]));
  4029. lightColorR.Add(float.Parse(strArray8[1]));
  4030. lightColorG.Add(float.Parse(strArray8[2]));
  4031. lightColorB.Add(float.Parse(strArray8[3]));
  4032. lightX.Add(float.Parse(strArray8[4]));
  4033. lightY.Add(float.Parse(strArray8[5]));
  4034. lightAkarusa.Add(float.Parse(strArray8[6]));
  4035. lightRange.Add(float.Parse(strArray8[7]));
  4036. lightKage.Add(0.098f);
  4037. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  4038. selectLightIndex = lightList.Count - 1;
  4039. lightComboList = new GUIContent[lightList.Count];
  4040. for (int index2 = 0; index2 < lightList.Count; ++index2)
  4041. lightComboList[index2] = index2 != 0 ? new GUIContent("追加" + (object) index2) : new GUIContent("メイン");
  4042. lightCombo.selectedItemIndex = selectLightIndex;
  4043. gameObject.GetComponent<Light>().intensity = lightAkarusa[index1];
  4044. gameObject.GetComponent<Light>().spotAngle = lightRange[index1];
  4045. gameObject.GetComponent<Light>().range = lightRange[index1] / 5f;
  4046. if (lightIndex[selectLightIndex] == 0)
  4047. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  4048. else if (lightIndex[selectLightIndex] == 1)
  4049. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Spot;
  4050. else if (lightIndex[selectLightIndex] == 2)
  4051. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Point;
  4052. else if (lightIndex[selectLightIndex] == 3)
  4053. {
  4054. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  4055. lightList[selectLightIndex].SetActive(false);
  4056. }
  4057. }
  4058. }
  4059. if (strArray7 != null)
  4060. {
  4061. for (int index = 0; index < lightList.Count; ++index)
  4062. {
  4063. string[] strArray8 = strArray7[index].Split(',');
  4064. lightList[index].transform.position =
  4065. new Vector3(float.Parse(strArray8[0]), float.Parse(strArray8[1]), float.Parse(strArray8[2]));
  4066. if ((Object) gLight[index] == (Object) null)
  4067. {
  4068. gLight[index] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4069. gLight[index].GetComponent<Renderer>().material =
  4070. new Material(Shader.Find("Transparent/Diffuse")) {color = new Color(0.5f, 0.5f, 1f, 0.8f)};
  4071. gLight[index].layer = 8;
  4072. gLight[index].GetComponent<Renderer>().enabled = false;
  4073. gLight[index].SetActive(false);
  4074. gLight[index].transform.position = lightList[index].transform.position;
  4075. mLight[index] = gLight[index].AddComponent<MouseDrag6>();
  4076. mLight[index].obj = gLight[index];
  4077. mLight[index].maid = lightList[index].gameObject;
  4078. mLight[index].angles = lightList[index].transform.eulerAngles;
  4079. gLight[index].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  4080. mLight[index].ido = 1;
  4081. mLight[index].isScale = false;
  4082. }
  4083. }
  4084. }
  4085. if (strArray6 != null)
  4086. {
  4087. for (int index = 0; index < doguBObject.Count; ++index)
  4088. Destroy((Object) doguBObject[index]);
  4089. doguBObject = new List<GameObject>();
  4090. for (int index1 = 0; index1 < strArray6.Length - 1; ++index1)
  4091. {
  4092. string[] strArray8 = strArray6[index1].Split(',');
  4093. string str1 = strArray8[0].Replace(" ", "_");
  4094. GameObject original1 = (GameObject) null;
  4095. bool flag1 = false;
  4096. if (str1.Contains(".menu"))
  4097. {
  4098. string str2 = str1;
  4099. byte[] f_byBuf = (byte[]) null;
  4100. try
  4101. {
  4102. using (AFileBase afileBase = GameUty.FileOpen(str2, (AFileSystemBase) null))
  4103. {
  4104. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + str2);
  4105. if (f_byBuf == null)
  4106. f_byBuf = new byte[Math.Max(500000, afileBase.GetSize())];
  4107. else if (f_byBuf.Length < afileBase.GetSize())
  4108. f_byBuf = new byte[afileBase.GetSize()];
  4109. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  4110. }
  4111. string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, str2, false);
  4112. original1 = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  4113. doguBObject.Add(original1);
  4114. original1.name = str2;
  4115. Vector3 zero1 = Vector3.zero;
  4116. Vector3 zero2 = Vector3.zero;
  4117. zero1.z = 0.4f;
  4118. if (str1.Contains("HandItem"))
  4119. {
  4120. switch (str1)
  4121. {
  4122. case "HandItemR_WineGlass_I_.menu":
  4123. zero2.z = 90f;
  4124. zero1.y = 0.04f;
  4125. goto case "HandItemL_Dance_Hataki_I_.menu";
  4126. case "HandItemR_WineBottle_I_.menu":
  4127. zero2.z = 90f;
  4128. goto case "HandItemL_Dance_Hataki_I_.menu";
  4129. case "HandItemR_Mop_I_.menu":
  4130. zero2.x = 90f;
  4131. goto case "HandItemL_Dance_Hataki_I_.menu";
  4132. case "HandItemL_Dance_Hataki_I_.menu":
  4133. case "HandItemL_Dance_Mop_I_.menu": break;
  4134. default:
  4135. zero2.x = -90f;
  4136. goto case "HandItemL_Dance_Hataki_I_.menu";
  4137. }
  4138. }
  4139. original1.transform.localPosition = zero1;
  4140. original1.transform.localRotation = Quaternion.Euler(zero2);
  4141. }
  4142. catch
  4143. {
  4144. flag1 = true;
  4145. }
  4146. }
  4147. else
  4148. {
  4149. try
  4150. {
  4151. bool flag2 = false;
  4152. bool flag3 = false;
  4153. if (str1.StartsWith("BG_"))
  4154. {
  4155. Object original2 = (Object) GameMain.Instance.BgMgr.CreateAssetBundle(str1.Replace("BG_", ""));
  4156. if (original2 == (Object) null)
  4157. original2 = Resources.Load(str1.Replace("BG_", "BG/"));
  4158. original1 = Instantiate(original2) as GameObject;
  4159. doguBObject.Add(original1);
  4160. }
  4161. else if (str1.Contains("#"))
  4162. {
  4163. original1 = GameMain.Instance.BgMgr.CreateAssetBundle(str1.Split('#')[1]);
  4164. if ((Object) original1 != (Object) null)
  4165. {
  4166. original1 = Instantiate<GameObject>(original1);
  4167. MeshRenderer[] componentsInChildren = original1.GetComponentsInChildren<MeshRenderer>();
  4168. for (int index2 = 0; index2 < componentsInChildren.Length; ++index2)
  4169. {
  4170. if ((Object) componentsInChildren[index2] != (Object) null)
  4171. componentsInChildren[index2].shadowCastingMode = ShadowCastingMode.Off;
  4172. }
  4173. }
  4174. flag2 = true;
  4175. if (!parArray[parIndex].Contains("Odogu_"))
  4176. flag3 = true;
  4177. doguBObject.Add(original1);
  4178. }
  4179. else if (!str1.StartsWith("mirror") && str1.IndexOf(":") < 0)
  4180. {
  4181. Object original2;
  4182. if (str1.StartsWith("BG"))
  4183. {
  4184. string name = str1.Replace("BG", "");
  4185. original2 = (Object) GameMain.Instance.BgMgr.CreateAssetBundle(name);
  4186. if (original2 == (Object) null)
  4187. original2 = Resources.Load("BG/" + name);
  4188. }
  4189. else
  4190. original2 = Resources.Load("Prefab/" + str1);
  4191. original1 = Instantiate(original2) as GameObject;
  4192. doguBObject.Add(original1);
  4193. }
  4194. else if (str1.StartsWith("mirror"))
  4195. {
  4196. Material material = new Material(Shader.Find("Mirror"));
  4197. GameObject primitive = GameObject.CreatePrimitive(PrimitiveType.Plane);
  4198. primitive.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  4199. primitive.GetComponent<Renderer>().material = material;
  4200. primitive.AddComponent<MirrorReflection2>();
  4201. MirrorReflection2 component = primitive.GetComponent<MirrorReflection2>();
  4202. component.m_TextureSize = 2048;
  4203. component.m_ClipPlaneOffset = 0.0f;
  4204. primitive.GetComponent<Renderer>().enabled = true;
  4205. original1 = primitive;
  4206. doguBObject.Add(original1);
  4207. }
  4208. else
  4209. {
  4210. string[] strArray9 = str1.Split(':');
  4211. Object original2 = (Object) GameMain.Instance.BgMgr.CreateAssetBundle(strArray9[0]);
  4212. if (original2 == (Object) null)
  4213. original2 = Resources.Load("BG/" + strArray9[0]);
  4214. GameObject gameObject = Instantiate(original2) as GameObject;
  4215. int num = 0;
  4216. int result = 0;
  4217. int.TryParse(strArray9[1], out result);
  4218. foreach (Transform transform in gameObject.transform)
  4219. {
  4220. if (result == num)
  4221. {
  4222. original1 = transform.gameObject;
  4223. break;
  4224. }
  4225. ++num;
  4226. }
  4227. doguBObject.Add(original1);
  4228. original1.transform.parent = (Transform) null;
  4229. Destroy((Object) gameObject);
  4230. gameObject.SetActive(false);
  4231. }
  4232. original1.name = str1;
  4233. Vector3 zero1 = Vector3.zero;
  4234. Vector3 zero2 = Vector3.zero;
  4235. if (str1.StartsWith("BG_"))
  4236. original1.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
  4237. switch (str1)
  4238. {
  4239. case "Odogu_XmasTreeMini_photo_ver":
  4240. zero1.z = 0.6f;
  4241. original1.transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  4242. IEnumerator enumerator1 = original1.transform.GetEnumerator();
  4243. try
  4244. {
  4245. while (enumerator1.MoveNext())
  4246. {
  4247. Transform current = (Transform) enumerator1.Current;
  4248. if ((Object) current.GetComponent<Collider>() != (Object) null)
  4249. current.GetComponent<Collider>().enabled = false;
  4250. }
  4251. break;
  4252. }
  4253. finally
  4254. {
  4255. (enumerator1 as IDisposable)?.Dispose();
  4256. }
  4257. case "Odogu_KadomatsuMini_photo_ver":
  4258. zero1.z = 0.6f;
  4259. original1.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  4260. IEnumerator enumerator2 = original1.transform.GetEnumerator();
  4261. try
  4262. {
  4263. while (enumerator2.MoveNext())
  4264. {
  4265. Transform current = (Transform) enumerator2.Current;
  4266. if ((Object) current.GetComponent<Collider>() != (Object) null)
  4267. current.GetComponent<Collider>().enabled = false;
  4268. }
  4269. break;
  4270. }
  4271. finally
  4272. {
  4273. (enumerator2 as IDisposable)?.Dispose();
  4274. }
  4275. case "Odogu_ClassRoomDesk":
  4276. zero1.z = 0.5f;
  4277. zero2.x = -90f;
  4278. break;
  4279. case "mirror1":
  4280. zero1.z = -0.6f;
  4281. zero1.y = 0.96f;
  4282. zero2.z = 180f;
  4283. zero2.x = -90f;
  4284. original1.transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  4285. break;
  4286. case "mirror2":
  4287. zero1.z = -0.6f;
  4288. zero1.y = 0.96f;
  4289. zero2.z = 180f;
  4290. zero2.x = -90f;
  4291. original1.transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  4292. break;
  4293. case "mirror3":
  4294. zero1.z = -0.6f;
  4295. zero1.y = 0.85f;
  4296. zero2.z = 180f;
  4297. zero2.x = -90f;
  4298. original1.transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  4299. break;
  4300. case "Particle/pLineY":
  4301. case "Particle/pLineP02":
  4302. case "Particle/pLine_act2":
  4303. original1.transform.localScale = new Vector3(3f, 3f, 3f);
  4304. break;
  4305. case "Mob_Man_Stand001":
  4306. case "Mob_Man_Stand002":
  4307. case "Mob_Man_Stand003":
  4308. case "Mob_Man_Sit001":
  4309. case "Mob_Man_Sit002":
  4310. case "Mob_Man_Sit003":
  4311. case "Mob_Girl_Stand001":
  4312. case "Mob_Girl_Stand002":
  4313. case "Mob_Girl_Stand003":
  4314. case "Mob_Girl_Sit001":
  4315. case "Mob_Girl_Sit002":
  4316. case "Mob_Girl_Sit003":
  4317. case "Salon:63":
  4318. case "Salon:65":
  4319. case "Salon:69":
  4320. case "Salon_Entrance:0":
  4321. case "Salon_Entrance:1":
  4322. case "Salon_Entrance:2":
  4323. case "Salon_Entrance:3":
  4324. case "Salon_Entrance:4":
  4325. case "Pool:26":
  4326. case "Shitsumu:23":
  4327. case "Shitsumu_Night:23":
  4328. zero1.z = 0.5f;
  4329. zero2.x = -90f;
  4330. break;
  4331. case "Odogu_Dresser_photo_ver":
  4332. GameObject.Find("Prim.00000000").GetComponent<Collider>().enabled = false;
  4333. GameObject.Find("Prim.00000001").GetComponent<Collider>().enabled = false;
  4334. GameObject.Find("Prim.00000002").GetComponent<Collider>().enabled = false;
  4335. GameObject.Find("Prim.00000004").GetComponent<Collider>().enabled = false;
  4336. break;
  4337. default:
  4338. zero1.z = 0.5f;
  4339. if (str1.StartsWith("Odogu_"))
  4340. {
  4341. IEnumerator enumerator3 = original1.transform.GetEnumerator();
  4342. try
  4343. {
  4344. while (enumerator3.MoveNext())
  4345. {
  4346. Transform current = (Transform) enumerator3.Current;
  4347. if ((Object) current.GetComponent<Collider>() != (Object) null)
  4348. current.GetComponent<Collider>().enabled = false;
  4349. }
  4350. break;
  4351. }
  4352. finally
  4353. {
  4354. (enumerator3 as IDisposable)?.Dispose();
  4355. }
  4356. }
  4357. else
  4358. {
  4359. if ((Object) original1.GetComponent<Collider>() != (Object) null)
  4360. original1.GetComponent<Collider>().enabled = false;
  4361. break;
  4362. }
  4363. }
  4364. if (flag2)
  4365. {
  4366. zero1.z = 0.4f;
  4367. if (flag3)
  4368. zero2.x = -90f;
  4369. }
  4370. original1.transform.localPosition = zero1;
  4371. original1.transform.localRotation = Quaternion.Euler(zero2);
  4372. }
  4373. catch
  4374. {
  4375. flag1 = true;
  4376. }
  4377. }
  4378. if (!flag1)
  4379. {
  4380. doguCnt = doguBObject.Count - 1;
  4381. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4382. Vector3 localEulerAngles = original1.transform.localEulerAngles;
  4383. original1.transform.localEulerAngles =
  4384. new Vector3(float.Parse(strArray8[1]), float.Parse(strArray8[2]), float.Parse(strArray8[3]));
  4385. original1.transform.position =
  4386. new Vector3(float.Parse(strArray8[4]), float.Parse(strArray8[5]), float.Parse(strArray8[6]));
  4387. gDogu[doguCnt].transform.localEulerAngles =
  4388. new Vector3(float.Parse(strArray8[1]), float.Parse(strArray8[2]), float.Parse(strArray8[3]));
  4389. gDogu[doguCnt].transform.position =
  4390. new Vector3(float.Parse(strArray8[4]), float.Parse(strArray8[5]), float.Parse(strArray8[6]));
  4391. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  4392. gDogu[doguCnt].layer = 8;
  4393. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  4394. gDogu[doguCnt].SetActive(false);
  4395. gDogu[doguCnt].transform.position = original1.transform.position;
  4396. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  4397. mDogu[doguCnt].obj = gDogu[doguCnt];
  4398. mDogu[doguCnt].maid = original1;
  4399. mDogu[doguCnt].angles = localEulerAngles;
  4400. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  4401. mDogu[doguCnt].ido = 1;
  4402. mDogu[doguCnt].isScale = false;
  4403. if (str1 == "Particle/pLineY")
  4404. mDogu[doguCnt].count = 180;
  4405. if (str1 == "Particle/pLineP02")
  4406. mDogu[doguCnt].count = 115;
  4407. if (original1.name == "Particle/pLine_act2")
  4408. {
  4409. mDogu[doguCnt].count = 80;
  4410. original1.transform.localScale = new Vector3(3f, 3f, 3f);
  4411. }
  4412. if (original1.name == "Particle/pHeart01")
  4413. mDogu[doguCnt].count = 80;
  4414. if (str1 == "mirror1" || str1 == "mirror2" || str1 == "mirror3")
  4415. {
  4416. mDogu[doguCnt].isScale = true;
  4417. mDogu[doguCnt].isScale2 = true;
  4418. mDogu[doguCnt].scale2 = original1.transform.localScale;
  4419. if (str1 == "mirror1")
  4420. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 5f,
  4421. original1.transform.localScale.y * 5f,
  4422. original1.transform.localScale.z * 5f);
  4423. if (str1 == "mirror2")
  4424. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 10f,
  4425. original1.transform.localScale.y * 10f,
  4426. original1.transform.localScale.z * 10f);
  4427. if (str1 == "mirror3")
  4428. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 33f,
  4429. original1.transform.localScale.y * 33f,
  4430. original1.transform.localScale.z * 33f);
  4431. }
  4432. if (str1 == "Odogu_XmasTreeMini_photo_ver" || str1 == "Odogu_KadomatsuMini_photo_ver")
  4433. {
  4434. mDogu[doguCnt].isScale2 = true;
  4435. mDogu[doguCnt].scale2 = original1.transform.localScale;
  4436. }
  4437. original1.transform.localScale =
  4438. new Vector3(float.Parse(strArray8[7]), float.Parse(strArray8[8]), float.Parse(strArray8[9]));
  4439. }
  4440. }
  4441. }
  4442. loadScene = 0;
  4443. kankyoLoadFlg = false;
  4444. }
  4445. for (int i = 0; i < maidCnt; ++i)
  4446. {
  4447. if (loadPose[i] != "" && isLoadPose[i])
  4448. {
  4449. IniKey iniKey = this.Preferences["pose"][loadPose[i]];
  4450. if (iniKey.Value == null || !(iniKey.Value.ToString() != "") || !(iniKey.Value.ToString() != "del"))
  4451. {
  4452. loadPose[i] = "";
  4453. isLoadPose[i] = false;
  4454. }
  4455. else
  4456. {
  4457. if (loadCount[i] > 4)
  4458. {
  4459. isLoadPose[i] = false;
  4460. loadPose[i] = "";
  4461. loadCount[i] = 0;
  4462. }
  4463. int num = 0;
  4464. while (num < 10)
  4465. ++num;
  4466. ++loadCount[i];
  4467. Maid maid = maidArray[i];
  4468. isStop[i] = true;
  4469. if ((bool) ((Object) maid) && maid.Visible)
  4470. {
  4471. this.SetIK(maid, i);
  4472. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  4473. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  4474. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  4475. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  4476. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  4477. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  4478. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  4479. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  4480. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  4481. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  4482. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  4483. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  4484. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  4485. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  4486. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  4487. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  4488. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  4489. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  4490. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  4491. string[] strArray1 = iniKey.Value.Split('_')[1].Split(':');
  4492. for (int index = 0; index < 40; ++index)
  4493. {
  4494. string[] strArray2 = strArray1[index].Split(',');
  4495. Finger[i, index].localEulerAngles =
  4496. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4497. }
  4498. bool flag = false;
  4499. if (strArray1.Length == 64)
  4500. flag = true;
  4501. Vector3 localEulerAngles = maid.transform.localEulerAngles;
  4502. maid.transform.localEulerAngles = new Vector3(0.0f, 0.0f, 0.0f);
  4503. Vector3 position = maid.transform.position;
  4504. maid.transform.position = new Vector3(0.0f, 0.0f, 0.0f);
  4505. for (int index1 = 0; index1 < 3; ++index1)
  4506. {
  4507. for (int index2 = 40; index2 < strArray1.Length; ++index2)
  4508. {
  4509. string[] strArray2 = strArray1[index2].Split(',');
  4510. switch (index2)
  4511. {
  4512. case 40:
  4513. if (flag)
  4514. Spine.localEulerAngles =
  4515. new Vector3(float.Parse(strArray2[0]),
  4516. float.Parse(strArray2[1]),
  4517. float.Parse(strArray2[2]));
  4518. if (!flag)
  4519. {
  4520. Spine.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4521. float.Parse(strArray2[1]),
  4522. float.Parse(strArray2[2]));
  4523. break;
  4524. }
  4525. break;
  4526. case 41:
  4527. if (flag)
  4528. Spine0a.localEulerAngles =
  4529. new Vector3(float.Parse(strArray2[0]),
  4530. float.Parse(strArray2[1]),
  4531. float.Parse(strArray2[2]));
  4532. if (!flag)
  4533. {
  4534. Spine0a.eulerAngles =
  4535. new Vector3(float.Parse(strArray2[0]),
  4536. float.Parse(strArray2[1]),
  4537. float.Parse(strArray2[2]));
  4538. break;
  4539. }
  4540. break;
  4541. case 42:
  4542. if (flag)
  4543. Spine1.localEulerAngles =
  4544. new Vector3(float.Parse(strArray2[0]),
  4545. float.Parse(strArray2[1]),
  4546. float.Parse(strArray2[2]));
  4547. if (!flag)
  4548. {
  4549. Spine1.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4550. float.Parse(strArray2[1]),
  4551. float.Parse(strArray2[2]));
  4552. break;
  4553. }
  4554. break;
  4555. case 43:
  4556. if (flag)
  4557. Spine1a.localEulerAngles =
  4558. new Vector3(float.Parse(strArray2[0]),
  4559. float.Parse(strArray2[1]),
  4560. float.Parse(strArray2[2]));
  4561. if (!flag)
  4562. {
  4563. Spine1a.eulerAngles =
  4564. new Vector3(float.Parse(strArray2[0]),
  4565. float.Parse(strArray2[1]),
  4566. float.Parse(strArray2[2]));
  4567. break;
  4568. }
  4569. break;
  4570. case 44:
  4571. if (flag)
  4572. Pelvis.localEulerAngles =
  4573. new Vector3(float.Parse(strArray2[0]),
  4574. float.Parse(strArray2[1]),
  4575. float.Parse(strArray2[2]));
  4576. if (!flag)
  4577. {
  4578. Pelvis.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4579. float.Parse(strArray2[1]),
  4580. float.Parse(strArray2[2]));
  4581. break;
  4582. }
  4583. break;
  4584. case 45:
  4585. HandL1[i].localEulerAngles =
  4586. new Vector3(float.Parse(strArray2[0]),
  4587. float.Parse(strArray2[1]),
  4588. float.Parse(strArray2[2]));
  4589. break;
  4590. case 46:
  4591. if (flag)
  4592. UpperArmL1[i].localEulerAngles =
  4593. new Vector3(float.Parse(strArray2[0]),
  4594. float.Parse(strArray2[1]),
  4595. float.Parse(strArray2[2]));
  4596. if (!flag)
  4597. {
  4598. UpperArmL1[i].eulerAngles =
  4599. new Vector3(float.Parse(strArray2[0]),
  4600. float.Parse(strArray2[1]),
  4601. float.Parse(strArray2[2]));
  4602. break;
  4603. }
  4604. break;
  4605. case 47:
  4606. if (flag)
  4607. ForearmL1[i].localEulerAngles =
  4608. new Vector3(float.Parse(strArray2[0]),
  4609. float.Parse(strArray2[1]),
  4610. float.Parse(strArray2[2]));
  4611. if (!flag)
  4612. {
  4613. ForearmL1[i].eulerAngles =
  4614. new Vector3(float.Parse(strArray2[0]),
  4615. float.Parse(strArray2[1]),
  4616. float.Parse(strArray2[2]));
  4617. break;
  4618. }
  4619. break;
  4620. case 48:
  4621. HandR1[i].localEulerAngles =
  4622. new Vector3(float.Parse(strArray2[0]),
  4623. float.Parse(strArray2[1]),
  4624. float.Parse(strArray2[2]));
  4625. break;
  4626. case 49:
  4627. if (flag)
  4628. UpperArmR1[i].localEulerAngles =
  4629. new Vector3(float.Parse(strArray2[0]),
  4630. float.Parse(strArray2[1]),
  4631. float.Parse(strArray2[2]));
  4632. if (!flag)
  4633. {
  4634. UpperArmR1[i].eulerAngles =
  4635. new Vector3(float.Parse(strArray2[0]),
  4636. float.Parse(strArray2[1]),
  4637. float.Parse(strArray2[2]));
  4638. break;
  4639. }
  4640. break;
  4641. case 50:
  4642. if (flag)
  4643. ForearmR1[i].localEulerAngles =
  4644. new Vector3(float.Parse(strArray2[0]),
  4645. float.Parse(strArray2[1]),
  4646. float.Parse(strArray2[2]));
  4647. if (!flag)
  4648. {
  4649. ForearmR1[i].eulerAngles =
  4650. new Vector3(float.Parse(strArray2[0]),
  4651. float.Parse(strArray2[1]),
  4652. float.Parse(strArray2[2]));
  4653. break;
  4654. }
  4655. break;
  4656. case 51:
  4657. HandL2[i].localEulerAngles =
  4658. new Vector3(float.Parse(strArray2[0]),
  4659. float.Parse(strArray2[1]),
  4660. float.Parse(strArray2[2]));
  4661. break;
  4662. case 52:
  4663. if (flag)
  4664. UpperArmL2[i].localEulerAngles =
  4665. new Vector3(float.Parse(strArray2[0]),
  4666. float.Parse(strArray2[1]),
  4667. float.Parse(strArray2[2]));
  4668. if (!flag)
  4669. {
  4670. UpperArmL2[i].eulerAngles =
  4671. new Vector3(float.Parse(strArray2[0]),
  4672. float.Parse(strArray2[1]),
  4673. float.Parse(strArray2[2]));
  4674. break;
  4675. }
  4676. break;
  4677. case 53:
  4678. if (flag)
  4679. ForearmL2[i].localEulerAngles =
  4680. new Vector3(float.Parse(strArray2[0]),
  4681. float.Parse(strArray2[1]),
  4682. float.Parse(strArray2[2]));
  4683. if (!flag)
  4684. {
  4685. ForearmL2[i].eulerAngles =
  4686. new Vector3(float.Parse(strArray2[0]),
  4687. float.Parse(strArray2[1]),
  4688. float.Parse(strArray2[2]));
  4689. break;
  4690. }
  4691. break;
  4692. case 54:
  4693. HandR2[i].localEulerAngles =
  4694. new Vector3(float.Parse(strArray2[0]),
  4695. float.Parse(strArray2[1]),
  4696. float.Parse(strArray2[2]));
  4697. break;
  4698. case 55:
  4699. if (flag)
  4700. UpperArmR2[i].localEulerAngles =
  4701. new Vector3(float.Parse(strArray2[0]),
  4702. float.Parse(strArray2[1]),
  4703. float.Parse(strArray2[2]));
  4704. if (!flag)
  4705. {
  4706. UpperArmR2[i].eulerAngles =
  4707. new Vector3(float.Parse(strArray2[0]),
  4708. float.Parse(strArray2[1]),
  4709. float.Parse(strArray2[2]));
  4710. break;
  4711. }
  4712. break;
  4713. case 56:
  4714. if (flag)
  4715. ForearmR2[i].localEulerAngles =
  4716. new Vector3(float.Parse(strArray2[0]),
  4717. float.Parse(strArray2[1]),
  4718. float.Parse(strArray2[2]));
  4719. if (!flag)
  4720. {
  4721. ForearmR2[i].eulerAngles =
  4722. new Vector3(float.Parse(strArray2[0]),
  4723. float.Parse(strArray2[1]),
  4724. float.Parse(strArray2[2]));
  4725. break;
  4726. }
  4727. break;
  4728. case 57:
  4729. if (flag)
  4730. Head.localEulerAngles =
  4731. new Vector3(float.Parse(strArray2[0]),
  4732. float.Parse(strArray2[1]),
  4733. float.Parse(strArray2[2]));
  4734. if (!flag)
  4735. {
  4736. Head.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4737. float.Parse(strArray2[1]),
  4738. float.Parse(strArray2[2]));
  4739. break;
  4740. }
  4741. break;
  4742. case 66:
  4743. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true).localEulerAngles =
  4744. new Vector3(float.Parse(strArray2[0]),
  4745. float.Parse(strArray2[1]),
  4746. float.Parse(strArray2[2]));
  4747. break;
  4748. case 67:
  4749. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true).localEulerAngles =
  4750. new Vector3(float.Parse(strArray2[0]),
  4751. float.Parse(strArray2[1]),
  4752. float.Parse(strArray2[2]));
  4753. break;
  4754. case 68:
  4755. if (strArray2.Length >= 2)
  4756. {
  4757. ClavicleL1[i].eulerAngles =
  4758. new Vector3(float.Parse(strArray2[0]),
  4759. float.Parse(strArray2[1]),
  4760. float.Parse(strArray2[2]));
  4761. break;
  4762. }
  4763. break;
  4764. case 69:
  4765. ClavicleR1[i].eulerAngles =
  4766. new Vector3(float.Parse(strArray2[0]),
  4767. float.Parse(strArray2[1]),
  4768. float.Parse(strArray2[2]));
  4769. break;
  4770. case 71:
  4771. transform1.eulerAngles =
  4772. new Vector3(float.Parse(strArray2[0]),
  4773. float.Parse(strArray2[1]),
  4774. float.Parse(strArray2[2]));
  4775. break;
  4776. case 72:
  4777. transform2.localEulerAngles =
  4778. new Vector3(float.Parse(strArray2[0]),
  4779. float.Parse(strArray2[1]),
  4780. float.Parse(strArray2[2]));
  4781. break;
  4782. case 73:
  4783. transform3.localEulerAngles =
  4784. new Vector3(float.Parse(strArray2[0]),
  4785. float.Parse(strArray2[1]),
  4786. float.Parse(strArray2[2]));
  4787. break;
  4788. case 74:
  4789. transform4.localEulerAngles =
  4790. new Vector3(float.Parse(strArray2[0]),
  4791. float.Parse(strArray2[1]),
  4792. float.Parse(strArray2[2]));
  4793. break;
  4794. case 75:
  4795. transform5.localEulerAngles =
  4796. new Vector3(float.Parse(strArray2[0]),
  4797. float.Parse(strArray2[1]),
  4798. float.Parse(strArray2[2]));
  4799. break;
  4800. case 76:
  4801. transform6.localEulerAngles =
  4802. new Vector3(float.Parse(strArray2[0]),
  4803. float.Parse(strArray2[1]),
  4804. float.Parse(strArray2[2]));
  4805. break;
  4806. case 77:
  4807. transform7.localEulerAngles =
  4808. new Vector3(float.Parse(strArray2[0]),
  4809. float.Parse(strArray2[1]),
  4810. float.Parse(strArray2[2]));
  4811. break;
  4812. case 78:
  4813. transform8.localEulerAngles =
  4814. new Vector3(float.Parse(strArray2[0]),
  4815. float.Parse(strArray2[1]),
  4816. float.Parse(strArray2[2]));
  4817. break;
  4818. case 79:
  4819. transform9.localEulerAngles =
  4820. new Vector3(float.Parse(strArray2[0]),
  4821. float.Parse(strArray2[1]),
  4822. float.Parse(strArray2[2]));
  4823. break;
  4824. case 80:
  4825. transform10.localEulerAngles =
  4826. new Vector3(float.Parse(strArray2[0]),
  4827. float.Parse(strArray2[1]),
  4828. float.Parse(strArray2[2]));
  4829. break;
  4830. case 81:
  4831. transform11.localEulerAngles =
  4832. new Vector3(float.Parse(strArray2[0]),
  4833. float.Parse(strArray2[1]),
  4834. float.Parse(strArray2[2]));
  4835. break;
  4836. case 82:
  4837. transform12.localEulerAngles =
  4838. new Vector3(float.Parse(strArray2[0]),
  4839. float.Parse(strArray2[1]),
  4840. float.Parse(strArray2[2]));
  4841. break;
  4842. case 83:
  4843. transform13.localEulerAngles =
  4844. new Vector3(float.Parse(strArray2[0]),
  4845. float.Parse(strArray2[1]),
  4846. float.Parse(strArray2[2]));
  4847. break;
  4848. case 84:
  4849. transform14.localEulerAngles =
  4850. new Vector3(float.Parse(strArray2[0]),
  4851. float.Parse(strArray2[1]),
  4852. float.Parse(strArray2[2]));
  4853. break;
  4854. case 85:
  4855. transform15.localEulerAngles =
  4856. new Vector3(float.Parse(strArray2[0]),
  4857. float.Parse(strArray2[1]),
  4858. float.Parse(strArray2[2]));
  4859. break;
  4860. case 86:
  4861. transform16.localEulerAngles =
  4862. new Vector3(float.Parse(strArray2[0]),
  4863. float.Parse(strArray2[1]),
  4864. float.Parse(strArray2[2]));
  4865. break;
  4866. case 87:
  4867. transform17.localEulerAngles =
  4868. new Vector3(float.Parse(strArray2[0]),
  4869. float.Parse(strArray2[1]),
  4870. float.Parse(strArray2[2]));
  4871. break;
  4872. case 88:
  4873. transform18.localEulerAngles =
  4874. new Vector3(float.Parse(strArray2[0]),
  4875. float.Parse(strArray2[1]),
  4876. float.Parse(strArray2[2]));
  4877. break;
  4878. case 89:
  4879. transform19.localEulerAngles =
  4880. new Vector3(float.Parse(strArray2[0]),
  4881. float.Parse(strArray2[1]),
  4882. float.Parse(strArray2[2]));
  4883. break;
  4884. case 92:
  4885. vIKMuneL[i] = new Vector3(float.Parse(strArray2[0]),
  4886. float.Parse(strArray2[1]),
  4887. float.Parse(strArray2[2]));
  4888. muneIKL[i] = true;
  4889. break;
  4890. case 93:
  4891. vIKMuneLSub[i] = new Vector3(float.Parse(strArray2[0]),
  4892. float.Parse(strArray2[1]),
  4893. float.Parse(strArray2[2]));
  4894. break;
  4895. case 94:
  4896. vIKMuneR[i] = new Vector3(float.Parse(strArray2[0]),
  4897. float.Parse(strArray2[1]),
  4898. float.Parse(strArray2[2]));
  4899. muneIKR[i] = true;
  4900. break;
  4901. case 95:
  4902. vIKMuneRSub[i] = new Vector3(float.Parse(strArray2[0]),
  4903. float.Parse(strArray2[1]),
  4904. float.Parse(strArray2[2]));
  4905. break;
  4906. case 96:
  4907. transform1.position = new Vector3(float.Parse(strArray2[0]),
  4908. float.Parse(strArray2[1]),
  4909. float.Parse(strArray2[2]));
  4910. break;
  4911. }
  4912. }
  4913. }
  4914. maid.transform.localEulerAngles = localEulerAngles;
  4915. maid.transform.position = position;
  4916. }
  4917. }
  4918. }
  4919. if (loadPose[i] != "" && !isLoadPose[i])
  4920. {
  4921. IniKey iniKey = this.Preferences["pose"][loadPose[i]];
  4922. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  4923. isStop[i] = true;
  4924. isLoadPose[i] = true;
  4925. }
  4926. }
  4927. if (loadScene > 0)
  4928. {
  4929. IniKey iniKey = this.Preferences["scene"]["s" + (object) loadScene];
  4930. if (iniKey.Value == null || !(iniKey.Value.ToString() != ""))
  4931. {
  4932. loadScene = 0;
  4933. }
  4934. else
  4935. {
  4936. isScene = true;
  4937. if (!kankyoLoadFlg)
  4938. {
  4939. string[] strArray1 = iniKey.Value.Split('_')[1].Split(';');
  4940. for (int i = 0; i < strArray1.Length; ++i)
  4941. {
  4942. if (maidCnt > i)
  4943. {
  4944. Maid maid = maidArray[i];
  4945. for (int index = 0; index < 10; ++index)
  4946. {
  4947. Transform transform1 = maid.transform;
  4948. Vector3 position1 = maid.transform.position;
  4949. Vector3 right = Vector3.right;
  4950. rotation = maid.transform.rotation;
  4951. double num1 = -(double) rotation.eulerAngles.x;
  4952. transform1.RotateAround(position1, right, (float) num1);
  4953. Transform transform2 = maid.transform;
  4954. Vector3 position2 = maid.transform.position;
  4955. Vector3 forward = Vector3.forward;
  4956. rotation = maid.transform.rotation;
  4957. double num2 = -(double) rotation.eulerAngles.z;
  4958. transform2.RotateAround(position2, forward, (float) num2);
  4959. }
  4960. string[] array2 = strArray1[i].Split(':');
  4961. if (!int.TryParse(array2[61], out poseIndex[i]))
  4962. {
  4963. string str = array2[61].Replace(" ", "_").Replace("|", ",");
  4964. for (int index = 0; index < poseArray.Length; ++index)
  4965. {
  4966. if (str == poseArray[index])
  4967. {
  4968. poseIndex[i] = index;
  4969. break;
  4970. }
  4971. }
  4972. }
  4973. string[] strArray2 = poseArray[poseIndex[i]].Split(',');
  4974. isStop[i] = true;
  4975. poseCount[i] = 20;
  4976. if (array2[61].Contains("MultipleMaidsPose"))
  4977. {
  4978. string url = "";
  4979. ((Action<string, List<string>>) ((path, result_list) =>
  4980. {
  4981. string[] files = Directory.GetFiles(path);
  4982. for (int index1 = 0; index1 < files.Length; ++index1)
  4983. {
  4984. if (Path.GetExtension(files[index1]) == ".anm")
  4985. {
  4986. string str1 =
  4987. files[index1].Split('\\')[files[index1]
  4988. .Split('\\').Length
  4989. - 1].Split('.')[0];
  4990. if (str1 == array2[61].Replace("MultipleMaidsPose", ""))
  4991. {
  4992. url = files[index1];
  4993. for (int index2 = 0;
  4994. index2 < poseArray.Length;
  4995. ++index2)
  4996. {
  4997. string str2 = poseArray[index2]
  4998. .Replace(" ", "").Split('/')[0];
  4999. if (str1 == str2)
  5000. poseIndex[i] = index2;
  5001. }
  5002. break;
  5003. }
  5004. }
  5005. }
  5006. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose",
  5007. new List<string>());
  5008. if (url != "")
  5009. {
  5010. string path = url;
  5011. byte[] numArray = new byte[0];
  5012. try
  5013. {
  5014. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  5015. {
  5016. numArray = new byte[fileStream.Length];
  5017. fileStream.Read(numArray, 0, numArray.Length);
  5018. }
  5019. }
  5020. catch { }
  5021. if (0 < numArray.Length)
  5022. {
  5023. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  5024. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  5025. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  5026. {
  5027. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
  5028. Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  5029. };
  5030. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  5031. maid.SetAutoTwist(f_eType, true);
  5032. }
  5033. }
  5034. }
  5035. else
  5036. {
  5037. int result;
  5038. if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  5039. loadPose[i] = strArray2[0];
  5040. else if (!strArray2[0].StartsWith("dance_"))
  5041. {
  5042. maidArray[i].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  5043. }
  5044. else
  5045. {
  5046. if (!(bool) ((Object) maidArray[i]
  5047. .body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  5048. maidArray[i].body0.LoadAnime(strArray2[0] + ".anm",
  5049. GameUty.FileSystem,
  5050. strArray2[0] + ".anm",
  5051. false,
  5052. false);
  5053. maidArray[i].body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  5054. }
  5055. }
  5056. if (strArray2.Length > 1)
  5057. {
  5058. maidArray[i].body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time =
  5059. float.Parse(strArray2[1]);
  5060. isStop[i] = true;
  5061. if (strArray2.Length > 2)
  5062. {
  5063. CMT.SearchObjName(maidArray[i].body0.m_Bones.transform, "Bip01", true);
  5064. isPoseIti[i] = true;
  5065. poseIti[i] = maidArray[i].transform.position;
  5066. maidArray[i].transform.position = new Vector3(100f, 100f, 100f);
  5067. }
  5068. }
  5069. faceIndex[i] = int.Parse(array2[62]);
  5070. if (faceIndex[i] < faceArray.Length)
  5071. maid.FaceAnime(faceArray[faceIndex[i]], 0.01f, 0);
  5072. else
  5073. faceIndex[i] = 0;
  5074. TMorph morph = maid.body0.Face.morph;
  5075. if (!isVR)
  5076. {
  5077. maid.boMabataki = false;
  5078. morph.EyeMabataki = 0.0f;
  5079. maid.body0.Face.morph.FixBlendValues_Face();
  5080. }
  5081. }
  5082. else
  5083. break;
  5084. }
  5085. }
  5086. }
  5087. }
  5088. if (allowUpdate || sceneLevel == 14 || sceneLevel == 24)
  5089. {
  5090. if (isF6 && !(bool) ((Object) cameraObj) && !isVR)
  5091. {
  5092. cameraObj = new GameObject("subCamera");
  5093. subcamera = cameraObj.AddComponent<Camera>();
  5094. subcamera.CopyFrom(Camera.main);
  5095. cameraObj.SetActive(true);
  5096. subcamera.clearFlags = CameraClearFlags.Depth;
  5097. subcamera.cullingMask = 256;
  5098. subcamera.depth = 1f;
  5099. subcamera.transform.parent = mainCamera.transform;
  5100. float num = 2f;
  5101. if (Application.unityVersion.StartsWith("4"))
  5102. num = 1f;
  5103. GameObject gameObject = new GameObject("Light");
  5104. gameObject.AddComponent<Light>();
  5105. lightList.Add(gameObject);
  5106. lightColorR.Add(1f);
  5107. lightColorG.Add(1f);
  5108. lightColorB.Add(1f);
  5109. lightIndex.Add(0);
  5110. lightX.Add(40f);
  5111. lightY.Add(180f);
  5112. lightAkarusa.Add(num);
  5113. lightKage.Add(0.098f);
  5114. lightRange.Add(50f);
  5115. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  5116. gameObject.GetComponent<Light>().intensity = 2f;
  5117. gameObject.GetComponent<Light>().spotAngle = 50f;
  5118. gameObject.GetComponent<Light>().range = 10f;
  5119. gameObject.GetComponent<Light>().type = LightType.Directional;
  5120. gameObject.GetComponent<Light>().color = new Color(0.5f, 1f, 0.0f);
  5121. gameObject.GetComponent<Light>().cullingMask = 256;
  5122. }
  5123. if ((!isF6S || !this.getModKeyPressing(modKey.Shift) || !Input.GetKeyDown(KeyCode.F6))
  5124. && (isF6S || !this.getModKeyPressing(modKey.Shift) || !Input.GetKeyDown(KeyCode.F6)))
  5125. {
  5126. if (!isF6 && Input.GetKeyDown(KeyCode.F6) && (sceneLevel != 5 && sceneLevel != 3)
  5127. && (!isVR && (bool) ((Object) maidArray[0])) && maidArray[0].Visible)
  5128. {
  5129. isF6 = true;
  5130. bGui = true;
  5131. isFaceInit = true;
  5132. isGuiInit = true;
  5133. maidArray[0].boMabataki = false;
  5134. selectMaidIndex = 0;
  5135. maidCnt = 1;
  5136. isFace[0] = true;
  5137. faceFlg = true;
  5138. kankyoFlg = false;
  5139. string bgName = GameMain.Instance.BgMgr.GetBGName();
  5140. int num = 0;
  5141. foreach (string bg in bgArray)
  5142. {
  5143. if (bg == bgName)
  5144. {
  5145. bgIndex = num;
  5146. bgIndex6 = num;
  5147. break;
  5148. }
  5149. ++num;
  5150. }
  5151. bgCombo.selectedItemIndex = bgIndex6;
  5152. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5153. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5154. }
  5155. else if (!isF6 && Input.GetKeyDown(KeyCode.F7) && (sceneLevel != 5 && sceneLevel != 3)
  5156. && (!isVR && (bool) ((Object) maidArray[0])) && maidArray[0].Visible)
  5157. {
  5158. isF6 = true;
  5159. bGui = true;
  5160. isGuiInit = true;
  5161. selectMaidIndex = 0;
  5162. maidCnt = 1;
  5163. isFace[0] = false;
  5164. faceFlg = false;
  5165. kankyoFlg = true;
  5166. string bgName = GameMain.Instance.BgMgr.GetBGName();
  5167. int num = 0;
  5168. foreach (string bg in bgArray)
  5169. {
  5170. if (bg == bgName)
  5171. {
  5172. bgIndex = num;
  5173. bgIndex6 = num;
  5174. break;
  5175. }
  5176. ++num;
  5177. }
  5178. bgmCombo.selectedItemIndex = bgmIndex;
  5179. bgCombo.selectedItemIndex = bgIndex6;
  5180. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5181. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5182. lightX6 = lightX[0];
  5183. lightY6 = lightY[0];
  5184. }
  5185. else if (isVR && Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.BackQuote)
  5186. || isF6 && (Input.GetKeyDown(KeyCode.F6) || Input.GetKeyDown(KeyCode.F7)))
  5187. {
  5188. isF6 = false;
  5189. bGui = false;
  5190. maidArray[0].boMabataki = true;
  5191. bgIndex = bgIndex6;
  5192. bg.localScale = new Vector3(1f, 1f, 1f);
  5193. if (!isVR)
  5194. {
  5195. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  5196. fieldValue.enabled = true;
  5197. fieldValue.bloomIntensity = 2.85f;
  5198. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  5199. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  5200. fieldValue.bloomBlurIterations = 3;
  5201. }
  5202. else if (bgArray[bgIndex].Length == 36)
  5203. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5204. else
  5205. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5206. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  5207. maidCnt = 0;
  5208. wearIndex = 0;
  5209. faceFlg = false;
  5210. faceFlg2 = false;
  5211. sceneFlg = false;
  5212. poseFlg = false;
  5213. kankyoFlg = false;
  5214. kankyo2Flg = false;
  5215. unLockFlg = false;
  5216. ikMaid = 0;
  5217. ikBui = 0;
  5218. isNamida = false;
  5219. isTear1 = false;
  5220. isTear2 = false;
  5221. isTear3 = false;
  5222. isShock = false;
  5223. isYodare = false;
  5224. isHoho = false;
  5225. isHoho2 = false;
  5226. isHohos = false;
  5227. isHohol = false;
  5228. isToothoff = false;
  5229. isNosefook = false;
  5230. isFaceInit = false;
  5231. isPoseInit = false;
  5232. isWear = true;
  5233. isSkirt = true;
  5234. isBra = true;
  5235. isPanz = true;
  5236. isHeadset = true;
  5237. isAccUde = true;
  5238. isStkg = true;
  5239. isShoes = true;
  5240. isGlove = true;
  5241. isMegane = true;
  5242. isAccSenaka = true;
  5243. isPanel = true;
  5244. isBloom = false;
  5245. isBloomA = false;
  5246. isBlur = false;
  5247. isBlur2 = false;
  5248. bloom1 = 2.85f;
  5249. bloom2 = 3f;
  5250. bloom3 = 0.0f;
  5251. bloom4 = 0.0f;
  5252. bloom5 = 0.0f;
  5253. blur1 = -3.98f;
  5254. blur4 = -0.75f;
  5255. blur2 = 0.9f;
  5256. blur3 = 4.19f;
  5257. bokashi = 0.0f;
  5258. kamiyure = 0.0f;
  5259. isDepth = false;
  5260. isDepthA = false;
  5261. depth1 = 3f;
  5262. depth2 = 0.1f;
  5263. depth3 = 15f;
  5264. depth4 = 2.5f;
  5265. isFog = false;
  5266. fog1 = 4f;
  5267. fog2 = 1f;
  5268. fog3 = 1f;
  5269. fog4 = 0.0f;
  5270. fog5 = 1f;
  5271. fog6 = 1f;
  5272. fog7 = 1f;
  5273. isSepia = false;
  5274. isBloomS = true;
  5275. isDepthS = false;
  5276. isBlurS = false;
  5277. isFogS = false;
  5278. if ((Object) depth_field_ != (Object) null)
  5279. depth_field_.enabled = false;
  5280. if ((Object) fog_ != (Object) null)
  5281. fog_.enabled = false;
  5282. if ((Object) sepia_tone_ != (Object) null)
  5283. sepia_tone_.enabled = false;
  5284. isCube = false;
  5285. isCube2 = true;
  5286. isCube3 = false;
  5287. isCube4 = true;
  5288. effectIndex = 0;
  5289. selectMaidIndex = 0;
  5290. copyIndex = 0;
  5291. selectLightIndex = 0;
  5292. doguBIndex = 0;
  5293. parIndex = 0;
  5294. isEditNo = 0;
  5295. editSelectMaid = (Maid) null;
  5296. for (int index = 0; index < 10; ++index)
  5297. {
  5298. date[index] = "";
  5299. ninzu[index] = "";
  5300. }
  5301. if ((bool) ((Object) kami))
  5302. kami.SetActive(false);
  5303. lightIndex = new List<int>();
  5304. lightIndex.Add(0);
  5305. lightColorR = new List<float>();
  5306. lightColorR.Add(1f);
  5307. lightColorG = new List<float>();
  5308. lightColorG.Add(1f);
  5309. lightColorB = new List<float>();
  5310. lightColorB.Add(1f);
  5311. lightX = new List<float>();
  5312. lightX.Add(lightX6);
  5313. lightY = new List<float>();
  5314. lightY.Add(lightY6);
  5315. lightAkarusa = new List<float>();
  5316. lightAkarusa.Add(0.95f);
  5317. lightKage = new List<float>();
  5318. lightKage.Add(0.098f);
  5319. lightRange = new List<float>();
  5320. lightRange.Add(50f);
  5321. isIdx1 = false;
  5322. isIdx2 = false;
  5323. isIdx3 = false;
  5324. isIdx4 = false;
  5325. bgObject.SetActive(true);
  5326. GameMain.Instance.MainLight.Reset();
  5327. GameMain.Instance.MainLight.SetIntensity(0.95f);
  5328. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 30f;
  5329. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  5330. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  5331. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  5332. GameMain.Instance.MainLight.transform.eulerAngles =
  5333. new Vector3(lightX6, lightY6, GameMain.Instance.MainLight.transform.eulerAngles.z);
  5334. for (int index = 0; index < doguBObject.Count; ++index)
  5335. Destroy((Object) doguBObject[index]);
  5336. doguBObject.Clear();
  5337. doguBIndex = 0;
  5338. parIndex = 0;
  5339. doguCombo.selectedItemIndex = 0;
  5340. parCombo.selectedItemIndex = 0;
  5341. for (int index = 1; index < lightList.Count; ++index)
  5342. Destroy((Object) lightList[index]);
  5343. lightList = new List<GameObject>();
  5344. lightList.Add(GameMain.Instance.MainLight.gameObject);
  5345. lightComboList = new GUIContent[lightList.Count];
  5346. lightComboList[0] = new GUIContent("メイン");
  5347. lightCombo.selectedItemIndex = 0;
  5348. selectLightIndex = 0;
  5349. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex6]);
  5350. bgCombo.selectedItemIndex = bgIndex6;
  5351. bgCombo2.selectedItemIndex = 0;
  5352. itemCombo2.selectedItemIndex = 0;
  5353. slotCombo.selectedItemIndex = 0;
  5354. sortList.Clear();
  5355. scrollPos = new Vector2(0.0f, 0.0f);
  5356. if (!isVR)
  5357. {
  5358. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  5359. component.mode = Vignetting.AberrationMode.Simple;
  5360. component.intensity = -3.98f;
  5361. component.chromaticAberration = -0.75f;
  5362. component.axialAberration = 1.18f;
  5363. component.blurSpread = 4.19f;
  5364. component.luminanceDependency = 0.494f;
  5365. component.blurDistance = 1.71f;
  5366. component.enabled = false;
  5367. }
  5368. doguIndex.Clear();
  5369. doguSelectIndex = 0;
  5370. for (int index = 0; index < doguObject.Count; ++index)
  5371. {
  5372. if ((Object) doguObject[index] != (Object) null)
  5373. {
  5374. Destroy((Object) doguObject[index]);
  5375. doguObject[index] = (GameObject) null;
  5376. }
  5377. }
  5378. doguObject.Clear();
  5379. }
  5380. }
  5381. for (int index = 0; index < maidCnt; ++index)
  5382. {
  5383. if ((bool) ((Object) maidArray[index]) && maidArray[index].Visible)
  5384. {
  5385. Maid maid = maidArray[index];
  5386. if (isLook[index] != isLookn[index])
  5387. {
  5388. isLookn[index] = isLook[index];
  5389. if (isLook[index])
  5390. {
  5391. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5392. maid.body0.boHeadToCam = true;
  5393. maid.body0.boEyeToCam = true;
  5394. maid.body0.trsLookTarget = (Transform) null;
  5395. }
  5396. else
  5397. {
  5398. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5399. maid.body0.boHeadToCam = true;
  5400. maid.body0.boEyeToCam = true;
  5401. }
  5402. }
  5403. }
  5404. }
  5405. if ((bool) ((Object) maidArray[selectMaidIndex]) && maidArray[selectMaidIndex].Visible
  5406. && (!faceFlg && !poseFlg && (!sceneFlg && !kankyoFlg) && !kankyo2Flg
  5407. || (sceneFlg || kankyoFlg) || kankyo2Flg))
  5408. {
  5409. for (int index = 0; index < maidCnt; ++index)
  5410. {
  5411. if ((bool) ((Object) maidArray[index]) && !maidArray[index].boMabataki)
  5412. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5413. }
  5414. }
  5415. if ((bool) ((Object) maidArray[selectMaidIndex]) && maidArray[selectMaidIndex].Visible && poseFlg)
  5416. {
  5417. if (isPoseInit)
  5418. {
  5419. if (!isDanceChu)
  5420. {
  5421. Maid maid = maidArray[selectMaidIndex];
  5422. isPoseInit = false;
  5423. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  5424. || maid.body0.GetMask(TBody.SlotID.onepiece);
  5425. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  5426. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  5427. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  5428. isMaid = maid.body0.GetMask(TBody.SlotID.body);
  5429. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  5430. || (maid.body0.GetMask(TBody.SlotID.accHead)
  5431. || maid.body0.GetMask(TBody.SlotID.accKamiSubL))
  5432. || (maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  5433. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  5434. || maid.body0.GetMask(TBody.SlotID.accKami_2_))
  5435. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  5436. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  5437. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  5438. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  5439. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  5440. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  5441. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  5442. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5443. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5444. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5445. eyeclose = fieldValue2[(int) morph.hash[(object) "eyeclose"]];
  5446. eyeclose2 = fieldValue2[(int) morph.hash[(object) "eyeclose2"]];
  5447. eyeclose3 = fieldValue2[(int) morph.hash[(object) "eyeclose3"]];
  5448. eyeclose6 = fieldValue2[(int) morph.hash[(object) "eyeclose6"]];
  5449. hitomih = fieldValue1[(int) morph.hash[(object) "hitomih"]];
  5450. hitomis = fieldValue1[(int) morph.hash[(object) "hitomis"]];
  5451. mayuha = fieldValue1[(int) morph.hash[(object) "mayuha"]];
  5452. mayuup = fieldValue1[(int) morph.hash[(object) "mayuup"]];
  5453. mayuv = fieldValue1[(int) morph.hash[(object) "mayuv"]];
  5454. mayuvhalf = fieldValue1[(int) morph.hash[(object) "mayuvhalf"]];
  5455. moutha = fieldValue1[(int) morph.hash[(object) "moutha"]];
  5456. mouths = fieldValue1[(int) morph.hash[(object) "mouths"]];
  5457. mouthdw = fieldValue1[(int) morph.hash[(object) "mouthdw"]];
  5458. mouthup = fieldValue1[(int) morph.hash[(object) "mouthup"]];
  5459. tangout = fieldValue1[(int) morph.hash[(object) "tangout"]];
  5460. tangup = fieldValue1[(int) morph.hash[(object) "tangup"]];
  5461. eyebig = fieldValue1[(int) morph.hash[(object) "eyebig"]];
  5462. eyeclose5 = fieldValue2[(int) morph.hash[(object) "eyeclose5"]];
  5463. mayuw = fieldValue1[(int) morph.hash[(object) "mayuw"]];
  5464. mouthhe = fieldValue1[(int) morph.hash[(object) "mouthhe"]];
  5465. mouthc = fieldValue1[(int) morph.hash[(object) "mouthc"]];
  5466. mouthi = fieldValue1[(int) morph.hash[(object) "mouthi"]];
  5467. mouthuphalf = fieldValue1[(int) morph.hash[(object) "mouthuphalf"]];
  5468. try
  5469. {
  5470. tangopen = fieldValue1[(int) morph.hash[(object) "tangopen"]];
  5471. }
  5472. catch { }
  5473. isNamida = (double) fieldValue1[(int) morph.hash[(object) "namida"]] > 0.0;
  5474. isTear1 = (double) fieldValue1[(int) morph.hash[(object) "tear1"]] > 0.0;
  5475. isTear2 = (double) fieldValue1[(int) morph.hash[(object) "tear2"]] > 0.0;
  5476. isTear3 = (double) fieldValue1[(int) morph.hash[(object) "tear3"]] > 0.0;
  5477. isShock = (double) fieldValue1[(int) morph.hash[(object) "shock"]] > 0.0;
  5478. isYodare = (double) fieldValue1[(int) morph.hash[(object) "yodare"]] > 0.0;
  5479. isHoho = (double) fieldValue1[(int) morph.hash[(object) "hoho"]] > 0.0;
  5480. isHoho2 = (double) fieldValue1[(int) morph.hash[(object) "hoho2"]] > 0.0;
  5481. isHohos = (double) fieldValue1[(int) morph.hash[(object) "hohos"]] > 0.0;
  5482. isHohol = (double) fieldValue1[(int) morph.hash[(object) "hohol"]] > 0.0;
  5483. isToothoff = (double) fieldValue1[(int) morph.hash[(object) "toothoff"]] > 0.0;
  5484. isNosefook = (double) fieldValue1[(int) morph.hash[(object) "nosefook"]] > 0.0;
  5485. }
  5486. }
  5487. else
  5488. {
  5489. Maid maid = maidArray[selectMaidIndex];
  5490. if (goSlot[(int) selectList[selectMaidIndex]] != null)
  5491. {
  5492. maidArray[selectMaidIndex].body0.goSlot =
  5493. new List<TBodySkin>((IEnumerable<TBodySkin>) goSlot[(int) selectList[selectMaidIndex]]);
  5494. for (int index = 0; index < bodyHit[(int) selectList[selectMaidIndex]].Count; ++index)
  5495. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit =
  5496. bodyHit[(int) selectList[selectMaidIndex]][index];
  5497. }
  5498. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  5499. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  5500. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  5501. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  5502. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  5503. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  5504. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  5505. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  5506. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  5507. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  5508. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  5509. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  5510. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  5511. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  5512. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  5513. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  5514. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  5515. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  5516. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  5517. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  5518. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  5519. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  5520. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  5521. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  5522. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  5523. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  5524. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  5525. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  5526. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  5527. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  5528. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  5529. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  5530. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  5531. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  5532. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  5533. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  5534. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  5535. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  5536. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  5537. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  5538. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  5539. {
  5540. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  5541. if (mekure1[selectMaidIndex])
  5542. {
  5543. maid.ItemChangeTemp("skirt", "めくれスカート");
  5544. maid.ItemChangeTemp("onepiece", "めくれスカート");
  5545. mekure2[selectMaidIndex] = false;
  5546. mekure2n[selectMaidIndex] = false;
  5547. }
  5548. else
  5549. {
  5550. this.ResetProp(maid, MPN.skirt);
  5551. this.ResetProp(maid, MPN.onepiece);
  5552. }
  5553. maid.AllProcPropSeqStart();
  5554. }
  5555. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  5556. {
  5557. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  5558. if (mekure2[selectMaidIndex])
  5559. {
  5560. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  5561. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  5562. mekure1[selectMaidIndex] = false;
  5563. mekure1n[selectMaidIndex] = false;
  5564. }
  5565. else
  5566. {
  5567. this.ResetProp(maid, MPN.skirt);
  5568. this.ResetProp(maid, MPN.onepiece);
  5569. }
  5570. maid.AllProcPropSeqStart();
  5571. }
  5572. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  5573. {
  5574. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  5575. if (zurasi[selectMaidIndex])
  5576. {
  5577. maid.ItemChangeTemp("panz", "パンツずらし");
  5578. maid.ItemChangeTemp("mizugi", "パンツずらし");
  5579. }
  5580. else
  5581. {
  5582. this.ResetProp(maid, MPN.panz);
  5583. this.ResetProp(maid, MPN.mizugi);
  5584. }
  5585. maid.AllProcPropSeqStart();
  5586. }
  5587. if (!isDanceChu)
  5588. {
  5589. if (maid.body0.GetMask(TBody.SlotID.body) != isMaid)
  5590. {
  5591. Hashtable fieldValue = GetFieldValue<TBody, Hashtable>(maid.body0, "m_hFoceHide");
  5592. fieldValue[(object) TBody.SlotID.body] = (object) isMaid;
  5593. fieldValue[(object) TBody.SlotID.head] = (object) isMaid;
  5594. fieldValue[(object) TBody.SlotID.eye] = (object) isMaid;
  5595. fieldValue[(object) TBody.SlotID.hairF] = (object) isMaid;
  5596. fieldValue[(object) TBody.SlotID.hairR] = (object) isMaid;
  5597. fieldValue[(object) TBody.SlotID.hairS] = (object) isMaid;
  5598. fieldValue[(object) TBody.SlotID.hairT] = (object) isMaid;
  5599. fieldValue[(object) TBody.SlotID.hairAho] = (object) isMaid;
  5600. fieldValue[(object) TBody.SlotID.chikubi] = (object) isMaid;
  5601. fieldValue[(object) TBody.SlotID.underhair] = (object) isMaid;
  5602. fieldValue[(object) TBody.SlotID.moza] = (object) isMaid;
  5603. if (maid.body0.goSlot[19].m_strModelFileName.Contains("melala_body"))
  5604. fieldValue[(object) TBody.SlotID.accHana] = (object) isMaid;
  5605. maid.body0.FixMaskFlag();
  5606. maid.body0.FixVisibleFlag(false);
  5607. }
  5608. if (isLook[selectMaidIndex] != isLookn[selectMaidIndex])
  5609. {
  5610. isLookn[selectMaidIndex] = isLook[selectMaidIndex];
  5611. if (isLook[selectMaidIndex])
  5612. {
  5613. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5614. maid.body0.boHeadToCam = true;
  5615. maid.body0.boEyeToCam = true;
  5616. maid.body0.trsLookTarget = (Transform) null;
  5617. }
  5618. else
  5619. {
  5620. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5621. maid.body0.boHeadToCam = true;
  5622. maid.body0.boEyeToCam = true;
  5623. }
  5624. }
  5625. if (isLook[selectMaidIndex])
  5626. {
  5627. if ((double) maid.body0.offsetLookTarget.x != (double) lookY[selectMaidIndex])
  5628. {
  5629. int num = !isLock[selectMaidIndex] ? 1 : ((double) lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  5630. maid.body0.offsetLookTarget =
  5631. num != 0
  5632. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  5633. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  5634. }
  5635. if ((double) lookX[selectMaidIndex] != (double) lookXn[selectMaidIndex])
  5636. {
  5637. lookXn[selectMaidIndex] = lookX[selectMaidIndex];
  5638. maid.body0.offsetLookTarget = new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex]);
  5639. }
  5640. if ((double) lookY[selectMaidIndex] != (double) lookYn[selectMaidIndex])
  5641. {
  5642. lookYn[selectMaidIndex] = lookY[selectMaidIndex];
  5643. int num = !isLock[selectMaidIndex] ? 1 : ((double) lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  5644. maid.body0.offsetLookTarget =
  5645. num != 0
  5646. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  5647. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  5648. }
  5649. }
  5650. if (isHanten)
  5651. {
  5652. isHanten = false;
  5653. this.SetHanten(maid, selectMaidIndex);
  5654. }
  5655. if (hanten[selectMaidIndex] != hantenn[selectMaidIndex])
  5656. {
  5657. hantenn[selectMaidIndex] = hanten[selectMaidIndex];
  5658. isStop[selectMaidIndex] = true;
  5659. isLock[selectMaidIndex] = true;
  5660. isHanten = true;
  5661. }
  5662. if (voice1[selectMaidIndex] != voice1n[selectMaidIndex])
  5663. {
  5664. voice1n[selectMaidIndex] = voice1[selectMaidIndex];
  5665. if (voice1[selectMaidIndex])
  5666. {
  5667. zFlg[selectMaidIndex] = true;
  5668. xFlg[selectMaidIndex] = false;
  5669. voice2[selectMaidIndex] = false;
  5670. voice2n[selectMaidIndex] = false;
  5671. }
  5672. else
  5673. zFlg[selectMaidIndex] = false;
  5674. }
  5675. if (voice2[selectMaidIndex] != voice2n[selectMaidIndex])
  5676. {
  5677. voice2n[selectMaidIndex] = voice2[selectMaidIndex];
  5678. if (voice2[selectMaidIndex])
  5679. {
  5680. xFlg[selectMaidIndex] = true;
  5681. zFlg[selectMaidIndex] = false;
  5682. voice1[selectMaidIndex] = false;
  5683. voice1n[selectMaidIndex] = false;
  5684. }
  5685. else
  5686. xFlg[selectMaidIndex] = false;
  5687. }
  5688. for (int index = 0; index < maidCnt; ++index)
  5689. {
  5690. if (!maidArray[index].boMabataki)
  5691. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5692. }
  5693. }
  5694. }
  5695. }
  5696. if ((bool) ((Object) maidArray[selectMaidIndex]) && maidArray[selectMaidIndex].Visible && (isF6 || okFlg && faceFlg))
  5697. {
  5698. if (isFaceInit)
  5699. {
  5700. if (!isDanceChu)
  5701. {
  5702. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5703. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5704. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5705. Maid maid = maidArray[selectMaidIndex];
  5706. maidArray[selectMaidIndex].boMabataki = false;
  5707. morph.EyeMabataki = 0.0f;
  5708. isFaceInit = false;
  5709. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  5710. eyeclose = fieldValue2[(int) morph.hash[(object) "eyeclose"]];
  5711. eyeclose2 = fieldValue2[(int) morph.hash[(object) "eyeclose2"]];
  5712. eyeclose3 = fieldValue2[(int) morph.hash[(object) "eyeclose3"]];
  5713. eyeclose6 = fieldValue2[(int) morph.hash[(object) "eyeclose6"]];
  5714. hitomih = fieldValue1[(int) morph.hash[(object) "hitomih"]];
  5715. hitomis = fieldValue1[(int) morph.hash[(object) "hitomis"]];
  5716. mayuha = fieldValue1[(int) morph.hash[(object) "mayuha"]];
  5717. mayuup = fieldValue1[(int) morph.hash[(object) "mayuup"]];
  5718. mayuv = fieldValue1[(int) morph.hash[(object) "mayuv"]];
  5719. mayuvhalf = fieldValue1[(int) morph.hash[(object) "mayuvhalf"]];
  5720. moutha = fieldValue1[(int) morph.hash[(object) "moutha"]];
  5721. mouths = fieldValue1[(int) morph.hash[(object) "mouths"]];
  5722. mouthdw = fieldValue1[(int) morph.hash[(object) "mouthdw"]];
  5723. mouthup = fieldValue1[(int) morph.hash[(object) "mouthup"]];
  5724. tangout = fieldValue1[(int) morph.hash[(object) "tangout"]];
  5725. tangup = fieldValue1[(int) morph.hash[(object) "tangup"]];
  5726. eyebig = fieldValue1[(int) morph.hash[(object) "eyebig"]];
  5727. eyeclose5 = fieldValue2[(int) morph.hash[(object) "eyeclose5"]];
  5728. mayuw = fieldValue1[(int) morph.hash[(object) "mayuw"]];
  5729. mouthhe = fieldValue1[(int) morph.hash[(object) "mouthhe"]];
  5730. mouthc = fieldValue1[(int) morph.hash[(object) "mouthc"]];
  5731. mouthi = fieldValue1[(int) morph.hash[(object) "mouthi"]];
  5732. mouthuphalf = fieldValue1[(int) morph.hash[(object) "mouthuphalf"]];
  5733. try
  5734. {
  5735. tangopen = fieldValue1[(int) morph.hash[(object) "tangopen"]];
  5736. }
  5737. catch { }
  5738. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  5739. || maid.body0.GetMask(TBody.SlotID.onepiece);
  5740. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  5741. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  5742. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  5743. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  5744. || (maid.body0.GetMask(TBody.SlotID.accHead)
  5745. || maid.body0.GetMask(TBody.SlotID.accKamiSubL))
  5746. || (maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  5747. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  5748. || maid.body0.GetMask(TBody.SlotID.accKami_2_))
  5749. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  5750. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  5751. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  5752. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  5753. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  5754. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  5755. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  5756. isNamida = (double) fieldValue1[(int) morph.hash[(object) "namida"]] > 0.0;
  5757. isTear1 = (double) fieldValue1[(int) morph.hash[(object) "tear1"]] > 0.0;
  5758. isTear2 = (double) fieldValue1[(int) morph.hash[(object) "tear2"]] > 0.0;
  5759. isTear3 = (double) fieldValue1[(int) morph.hash[(object) "tear3"]] > 0.0;
  5760. isShock = (double) fieldValue1[(int) morph.hash[(object) "shock"]] > 0.0;
  5761. isYodare = (double) fieldValue1[(int) morph.hash[(object) "yodare"]] > 0.0;
  5762. isHoho = (double) fieldValue1[(int) morph.hash[(object) "hoho"]] > 0.0;
  5763. isHoho2 = (double) fieldValue1[(int) morph.hash[(object) "hoho2"]] > 0.0;
  5764. isHohos = (double) fieldValue1[(int) morph.hash[(object) "hohos"]] > 0.0;
  5765. isHohol = (double) fieldValue1[(int) morph.hash[(object) "hohol"]] > 0.0;
  5766. isToothoff = (double) fieldValue1[(int) morph.hash[(object) "toothoff"]] > 0.0;
  5767. isNosefook = (double) fieldValue1[(int) morph.hash[(object) "nosefook"]] > 0.0;
  5768. }
  5769. }
  5770. else
  5771. {
  5772. Maid maid = maidArray[selectMaidIndex];
  5773. if (!yotogiFlg && sceneLevel != 5 && sceneLevel != 3)
  5774. {
  5775. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  5776. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  5777. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  5778. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  5779. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  5780. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  5781. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  5782. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  5783. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  5784. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  5785. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  5786. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  5787. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  5788. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  5789. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  5790. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  5791. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  5792. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  5793. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  5794. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  5795. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  5796. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  5797. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  5798. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  5799. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  5800. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  5801. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  5802. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  5803. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  5804. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  5805. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  5806. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  5807. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  5808. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  5809. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  5810. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  5811. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  5812. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  5813. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  5814. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  5815. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  5816. {
  5817. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  5818. if (mekure1[selectMaidIndex])
  5819. {
  5820. maid.ItemChangeTemp("skirt", "めくれスカート");
  5821. maid.ItemChangeTemp("onepiece", "めくれスカート");
  5822. mekure2[selectMaidIndex] = false;
  5823. mekure2n[selectMaidIndex] = false;
  5824. }
  5825. else
  5826. {
  5827. this.ResetProp(maid, MPN.skirt);
  5828. this.ResetProp(maid, MPN.onepiece);
  5829. }
  5830. maid.AllProcPropSeqStart();
  5831. }
  5832. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  5833. {
  5834. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  5835. if (mekure2[selectMaidIndex])
  5836. {
  5837. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  5838. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  5839. mekure1[selectMaidIndex] = false;
  5840. mekure1n[selectMaidIndex] = false;
  5841. }
  5842. else
  5843. {
  5844. this.ResetProp(maid, MPN.skirt);
  5845. this.ResetProp(maid, MPN.onepiece);
  5846. }
  5847. maid.AllProcPropSeqStart();
  5848. }
  5849. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  5850. {
  5851. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  5852. if (zurasi[selectMaidIndex])
  5853. {
  5854. maid.ItemChangeTemp("panz", "パンツずらし");
  5855. maid.ItemChangeTemp("mizugi", "パンツずらし");
  5856. }
  5857. else
  5858. {
  5859. this.ResetProp(maid, MPN.panz);
  5860. this.ResetProp(maid, MPN.mizugi);
  5861. }
  5862. maid.AllProcPropSeqStart();
  5863. }
  5864. }
  5865. if (!isDanceChu)
  5866. {
  5867. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5868. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5869. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5870. fieldValue2[(int) morph.hash[(object) "eyeclose"]] = eyeclose;
  5871. fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = eyeclose2;
  5872. fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = eyeclose3;
  5873. fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = eyeclose6;
  5874. fieldValue1[(int) morph.hash[(object) "hitomih"]] = hitomih;
  5875. fieldValue1[(int) morph.hash[(object) "hitomis"]] = hitomis;
  5876. fieldValue1[(int) morph.hash[(object) "mayuha"]] = mayuha;
  5877. fieldValue1[(int) morph.hash[(object) "mayuup"]] = mayuup;
  5878. fieldValue1[(int) morph.hash[(object) "mayuv"]] = mayuv;
  5879. fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = mayuvhalf;
  5880. fieldValue1[(int) morph.hash[(object) "tangout"]] = tangout;
  5881. fieldValue1[(int) morph.hash[(object) "tangup"]] = tangup;
  5882. fieldValue1[(int) morph.hash[(object) "eyebig"]] = eyebig;
  5883. fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = eyeclose5;
  5884. fieldValue1[(int) morph.hash[(object) "mayuw"]] = mayuw;
  5885. try
  5886. {
  5887. fieldValue1[(int) morph.hash[(object) "tangopen"]] = tangopen;
  5888. }
  5889. catch { }
  5890. if (!isDanceChu)
  5891. {
  5892. fieldValue1[(int) morph.hash[(object) "moutha"]] = moutha;
  5893. fieldValue1[(int) morph.hash[(object) "mouths"]] = mouths;
  5894. fieldValue1[(int) morph.hash[(object) "mouthdw"]] = mouthdw;
  5895. fieldValue1[(int) morph.hash[(object) "mouthup"]] = mouthup;
  5896. fieldValue1[(int) morph.hash[(object) "mouthhe"]] = mouthhe;
  5897. fieldValue1[(int) morph.hash[(object) "mouthc"]] = mouthc;
  5898. fieldValue1[(int) morph.hash[(object) "mouthi"]] = mouthi;
  5899. fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = mouthuphalf;
  5900. }
  5901. if (isNamida)
  5902. fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
  5903. else
  5904. fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
  5905. if (isTear1)
  5906. fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
  5907. else
  5908. fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
  5909. if (isTear2)
  5910. fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
  5911. else
  5912. fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
  5913. if (isTear3)
  5914. fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
  5915. else
  5916. fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
  5917. if (isShock)
  5918. fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
  5919. else
  5920. fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
  5921. if (isYodare)
  5922. fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
  5923. else
  5924. fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
  5925. if (isHoho)
  5926. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
  5927. else
  5928. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
  5929. if (isHoho2)
  5930. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
  5931. else
  5932. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
  5933. if (isHohos)
  5934. fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
  5935. else
  5936. fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
  5937. if (isHohol)
  5938. fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
  5939. else
  5940. fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
  5941. if (isToothoff)
  5942. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
  5943. else
  5944. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
  5945. morph.boNoseFook = isNosefook;
  5946. for (int index = 0; index < maidCnt; ++index)
  5947. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5948. }
  5949. }
  5950. }
  5951. if (isF6 && !okFlg && (!escFlg && Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Tab)))
  5952. bGui = !bGui;
  5953. if (isF6 && (Object) maidArray[0] != (Object) null && maidArray[0].Visible)
  5954. {
  5955. for (int index = 0; index < 999; ++index)
  5956. {
  5957. if ((Object) gDogu[index] != (Object) null)
  5958. {
  5959. gDogu[index].GetComponent<Renderer>().enabled = false;
  5960. gDogu[index].SetActive(false);
  5961. if (mDogu[index].del)
  5962. {
  5963. mDogu[index].del = false;
  5964. Destroy((Object) doguBObject[index]);
  5965. doguBObject.RemoveAt(index);
  5966. }
  5967. else if (mDogu[index].count > 0)
  5968. {
  5969. --mDogu[index].count;
  5970. if (doguBObject.Count > index && (Object) doguBObject[index] != (Object) null
  5971. && doguBObject[index].name.StartsWith("Particle/p"))
  5972. {
  5973. if (mDogu[index].count == 1)
  5974. doguBObject[index].SetActive(false);
  5975. if (mDogu[index].count == 0)
  5976. {
  5977. doguBObject[index].SetActive(true);
  5978. switch (doguBObject[index].name)
  5979. {
  5980. case "Particle/pLineY":
  5981. mDogu[index].count = 180;
  5982. break;
  5983. case "Particle/pLineP02":
  5984. mDogu[index].count = 115;
  5985. break;
  5986. case "Particle/pLine_act2":
  5987. mDogu[index].count = 90;
  5988. break;
  5989. case "Particle/pHeart01":
  5990. mDogu[index].count = 77;
  5991. break;
  5992. }
  5993. }
  5994. }
  5995. }
  5996. }
  5997. }
  5998. ikMode2 = !Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(modKey.Shift)
  5999. ? (!Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(modKey.Ctrl)
  6000. ? (!Input.GetKey(KeyCode.X) || !this.getModKeyPressing(modKey.Shift)
  6001. ? (!Input.GetKey(KeyCode.X)
  6002. ? (!Input.GetKey(KeyCode.Z)
  6003. ? (!Input.GetKey(KeyCode.C)
  6004. ? (!Input.GetKey(KeyCode.D) ? 0 : 15)
  6005. : 13)
  6006. : 10)
  6007. : 9)
  6008. : 14)
  6009. : 12)
  6010. : 11;
  6011. if ((Object) gBg != (Object) null)
  6012. {
  6013. if (!isCube3)
  6014. {
  6015. gBg.GetComponent<Renderer>().enabled = false;
  6016. gBg.SetActive(false);
  6017. }
  6018. else
  6019. {
  6020. if (ikMode2 > 0 && ikMode2 != 15)
  6021. {
  6022. gBg.GetComponent<Renderer>().enabled = true;
  6023. gBg.SetActive(true);
  6024. }
  6025. else
  6026. {
  6027. gBg.GetComponent<Renderer>().enabled = false;
  6028. gBg.SetActive(false);
  6029. }
  6030. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  6031. gBg.GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  6032. if (ikMode2 == 9 || ikMode2 == 14)
  6033. {
  6034. gBg.GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  6035. mBg.Update();
  6036. }
  6037. if (ikMode2 == 13)
  6038. {
  6039. gBg.GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  6040. mBg.Update();
  6041. }
  6042. if (ikMode2 == 13)
  6043. {
  6044. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && (bool) ((Object) gBg))
  6045. {
  6046. mBg.ido = 5;
  6047. mBg.reset = true;
  6048. }
  6049. else
  6050. {
  6051. gBg.transform.position = bg.position;
  6052. gBg.transform.eulerAngles = bg.eulerAngles;
  6053. mBg.maid = bgObject;
  6054. mBg.ido = 5;
  6055. }
  6056. }
  6057. else if (ikMode2 == 11)
  6058. {
  6059. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && (bool) ((Object) gBg))
  6060. {
  6061. mBg.ido = 3;
  6062. mBg.reset = true;
  6063. }
  6064. else
  6065. {
  6066. gBg.transform.position = bg.position;
  6067. gBg.transform.eulerAngles = bg.eulerAngles;
  6068. mBg.maid = bgObject;
  6069. mBg.ido = 3;
  6070. }
  6071. }
  6072. else if (ikMode2 == 12)
  6073. {
  6074. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && (bool) ((Object) gBg))
  6075. {
  6076. mBg.ido = 2;
  6077. mBg.reset = true;
  6078. }
  6079. else
  6080. {
  6081. gBg.transform.position = bg.position;
  6082. gBg.transform.eulerAngles = bg.eulerAngles;
  6083. mBg.maid = bgObject;
  6084. mBg.ido = 2;
  6085. }
  6086. }
  6087. else if (ikMode2 == 10)
  6088. {
  6089. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && (bool) ((Object) gBg))
  6090. {
  6091. mBg.ido = 1;
  6092. mBg.reset = true;
  6093. }
  6094. else
  6095. {
  6096. gBg.transform.position = bg.position;
  6097. gBg.transform.eulerAngles = bg.eulerAngles;
  6098. mBg.maid = bgObject;
  6099. mBg.ido = 1;
  6100. }
  6101. }
  6102. else if (ikMode2 == 9)
  6103. {
  6104. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && (bool) ((Object) gBg))
  6105. {
  6106. mBg.ido = 4;
  6107. mBg.reset = true;
  6108. }
  6109. else
  6110. {
  6111. gBg.transform.position = bg.position;
  6112. gBg.transform.eulerAngles = bg.eulerAngles;
  6113. mBg.maid = bgObject;
  6114. mBg.ido = 4;
  6115. }
  6116. }
  6117. else if (ikMode2 == 14)
  6118. {
  6119. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && (bool) ((Object) gBg))
  6120. {
  6121. mBg.ido = 6;
  6122. mBg.reset = true;
  6123. }
  6124. else
  6125. {
  6126. gBg.transform.position = bg.position;
  6127. gBg.transform.eulerAngles = bg.eulerAngles;
  6128. mBg.maid = bgObject;
  6129. mBg.ido = 6;
  6130. }
  6131. }
  6132. }
  6133. }
  6134. for (int index = 0; index < lightIndex.Count; ++index)
  6135. {
  6136. if ((Object) gLight[0] == (Object) null)
  6137. {
  6138. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  6139. gLight[0].GetComponent<Renderer>().material =
  6140. new Material(Shader.Find("Transparent/Diffuse")) {color = new Color(0.5f, 0.5f, 1f, 0.8f)};
  6141. gLight[0].layer = 8;
  6142. gLight[0].GetComponent<Renderer>().enabled = false;
  6143. gLight[0].SetActive(false);
  6144. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  6145. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  6146. mLight[0].obj = gLight[0];
  6147. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  6148. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  6149. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  6150. mLight[0].ido = 1;
  6151. mLight[0].isScale = false;
  6152. }
  6153. if ((Object) gLight[index] != (Object) null)
  6154. {
  6155. if (!isCube4)
  6156. {
  6157. gLight[index].GetComponent<Renderer>().enabled = false;
  6158. gLight[index].SetActive(false);
  6159. }
  6160. else if (lightList[index].GetComponent<Light>().type == LightType.Spot
  6161. || lightList[index].GetComponent<Light>().type == LightType.Point)
  6162. {
  6163. if (ikMode2 > 0 && ikMode2 != 15)
  6164. {
  6165. gLight[index].GetComponent<Renderer>().enabled = true;
  6166. gLight[index].SetActive(true);
  6167. }
  6168. else
  6169. {
  6170. gLight[index].GetComponent<Renderer>().enabled = false;
  6171. gLight[index].SetActive(false);
  6172. mLight[index].isAlt = false;
  6173. }
  6174. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  6175. {
  6176. gLight[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  6177. if (mLight[index].isAlt)
  6178. gLight[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  6179. }
  6180. if (ikMode2 == 9 || ikMode2 == 14)
  6181. {
  6182. gLight[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  6183. mLight[index].Update();
  6184. }
  6185. if (ikMode2 == 13)
  6186. {
  6187. gLight[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  6188. mLight[index].Update();
  6189. }
  6190. if (ikMode2 == 13)
  6191. {
  6192. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && (bool) ((Object) gLight[index]))
  6193. {
  6194. mLight[index].ido = 15;
  6195. mLight[index].reset = true;
  6196. }
  6197. else
  6198. {
  6199. if ((double) lightList[index].transform.localScale.x == 1.0)
  6200. lightList[index].transform.localScale =
  6201. new Vector3(lightRange[index], lightRange[index], lightRange[index]);
  6202. lightRange[index] = lightList[index].transform.localScale.x;
  6203. gLight[index].transform.position = lightList[index].transform.position;
  6204. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6205. mLight[index].maid = lightList[index];
  6206. mLight[index].ido = 15;
  6207. }
  6208. }
  6209. else if (ikMode2 == 11)
  6210. {
  6211. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && (bool) ((Object) gLight[index]))
  6212. {
  6213. mLight[index].ido = 3;
  6214. mLight[index].reset = true;
  6215. }
  6216. else
  6217. {
  6218. gLight[index].transform.position = lightList[index].transform.position;
  6219. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6220. lightX[index] = gLight[index].transform.eulerAngles.x;
  6221. lightY[index] = gLight[index].transform.eulerAngles.y;
  6222. mLight[index].maid = lightList[index];
  6223. mLight[index].ido = 3;
  6224. }
  6225. }
  6226. else if (ikMode2 == 12)
  6227. {
  6228. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && (bool) ((Object) gLight[index]))
  6229. {
  6230. mLight[index].ido = 2;
  6231. mLight[index].reset = true;
  6232. }
  6233. else
  6234. {
  6235. gLight[index].transform.position = lightList[index].transform.position;
  6236. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6237. mLight[index].maid = lightList[index];
  6238. mLight[index].ido = 2;
  6239. }
  6240. }
  6241. else if (ikMode2 == 10)
  6242. {
  6243. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && (bool) ((Object) gLight[index]))
  6244. {
  6245. mLight[index].ido = 1;
  6246. mLight[index].reset = true;
  6247. }
  6248. else
  6249. {
  6250. gLight[index].transform.position = lightList[index].transform.position;
  6251. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6252. mLight[index].maid = lightList[index];
  6253. mLight[index].ido = 1;
  6254. }
  6255. }
  6256. else if (ikMode2 == 9)
  6257. {
  6258. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && (bool) ((Object) gLight[index]))
  6259. {
  6260. mLight[index].ido = 4;
  6261. mLight[index].reset = true;
  6262. }
  6263. else
  6264. {
  6265. gLight[index].transform.position = lightList[index].transform.position;
  6266. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6267. lightX[index] = gLight[index].transform.eulerAngles.x;
  6268. lightY[index] = gLight[index].transform.eulerAngles.y;
  6269. mLight[index].maid = lightList[index];
  6270. mLight[index].ido = 4;
  6271. }
  6272. }
  6273. else if (ikMode2 == 14)
  6274. {
  6275. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && (bool) ((Object) gLight[index]))
  6276. {
  6277. mLight[index].ido = 6;
  6278. mLight[index].reset = true;
  6279. }
  6280. else
  6281. {
  6282. gLight[index].transform.position = lightList[index].transform.position;
  6283. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6284. lightX[index] = gLight[index].transform.eulerAngles.x;
  6285. lightY[index] = gLight[index].transform.eulerAngles.y;
  6286. mLight[index].maid = lightList[index];
  6287. mLight[index].ido = 6;
  6288. }
  6289. }
  6290. }
  6291. }
  6292. }
  6293. for (int index = 0; index < doguBObject.Count; ++index)
  6294. {
  6295. if (!isCube2)
  6296. {
  6297. gDogu[index].GetComponent<Renderer>().enabled = false;
  6298. gDogu[index].SetActive(false);
  6299. }
  6300. else
  6301. {
  6302. if (ikMode2 > 0)
  6303. {
  6304. gDogu[index].GetComponent<Renderer>().enabled = true;
  6305. gDogu[index].SetActive(true);
  6306. }
  6307. else
  6308. {
  6309. gDogu[index].GetComponent<Renderer>().enabled = false;
  6310. gDogu[index].SetActive(false);
  6311. mDogu[index].isAlt = false;
  6312. }
  6313. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  6314. {
  6315. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  6316. if (mDogu[index].isAlt)
  6317. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  6318. }
  6319. if (ikMode2 == 9 || ikMode2 == 14)
  6320. {
  6321. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  6322. mDogu[index].Update();
  6323. }
  6324. if (ikMode2 == 15)
  6325. gDogu[index].GetComponent<Renderer>().material.color = new Color(1f, 0.3f, 0.3f, 0.5f);
  6326. if (ikMode2 == 13)
  6327. {
  6328. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  6329. mDogu[index].Update();
  6330. }
  6331. if (ikMode2 == 13)
  6332. {
  6333. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && (bool) ((Object) gDogu[index]))
  6334. {
  6335. mDogu[index].ido = 5;
  6336. mDogu[index].reset = true;
  6337. }
  6338. else
  6339. {
  6340. gDogu[index].transform.position = doguBObject[index].transform.position;
  6341. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6342. mDogu[index].maid = doguBObject[index];
  6343. mDogu[index].ido = 5;
  6344. }
  6345. }
  6346. else if (ikMode2 == 11)
  6347. {
  6348. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && (bool) ((Object) gDogu[index]))
  6349. {
  6350. mDogu[index].ido = 3;
  6351. mDogu[index].reset = true;
  6352. }
  6353. else
  6354. {
  6355. gDogu[index].transform.position = doguBObject[index].transform.position;
  6356. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6357. mDogu[index].maid = doguBObject[index];
  6358. mDogu[index].ido = 3;
  6359. }
  6360. }
  6361. else if (ikMode2 == 12)
  6362. {
  6363. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && (bool) ((Object) gDogu[index]))
  6364. {
  6365. mDogu[index].ido = 2;
  6366. mDogu[index].reset = true;
  6367. }
  6368. else
  6369. {
  6370. gDogu[index].transform.position = doguBObject[index].transform.position;
  6371. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6372. mDogu[index].maid = doguBObject[index];
  6373. mDogu[index].ido = 2;
  6374. }
  6375. }
  6376. else if (ikMode2 == 10)
  6377. {
  6378. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && (bool) ((Object) gDogu[index]))
  6379. {
  6380. mDogu[index].ido = 1;
  6381. mDogu[index].reset = true;
  6382. }
  6383. else
  6384. {
  6385. gDogu[index].transform.position = doguBObject[index].transform.position;
  6386. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6387. mDogu[index].maid = doguBObject[index];
  6388. mDogu[index].maidArray = doguBObject.ToArray();
  6389. mDogu[index].mArray = ((IEnumerable<MouseDrag6>) mDogu).ToArray<MouseDrag6>();
  6390. mDogu[index].ido = 1;
  6391. }
  6392. }
  6393. else if (ikMode2 == 9)
  6394. {
  6395. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && (bool) ((Object) gDogu[index]))
  6396. {
  6397. mDogu[index].ido = 4;
  6398. mDogu[index].reset = true;
  6399. }
  6400. else
  6401. {
  6402. gDogu[index].transform.position = doguBObject[index].transform.position;
  6403. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6404. mDogu[index].maid = doguBObject[index];
  6405. mDogu[index].ido = 4;
  6406. }
  6407. }
  6408. else if (ikMode2 == 14)
  6409. {
  6410. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && (bool) ((Object) gDogu[index]))
  6411. {
  6412. mDogu[index].ido = 6;
  6413. mDogu[index].reset = true;
  6414. }
  6415. else
  6416. {
  6417. gDogu[index].transform.position = doguBObject[index].transform.position;
  6418. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6419. mDogu[index].maid = doguBObject[index];
  6420. mDogu[index].ido = 6;
  6421. }
  6422. }
  6423. else if (ikMode2 == 15)
  6424. {
  6425. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 15 && (bool) ((Object) gDogu[index]))
  6426. {
  6427. mDogu[index].ido = 7;
  6428. mDogu[index].reset = true;
  6429. }
  6430. else
  6431. {
  6432. gDogu[index].transform.position = doguBObject[index].transform.position;
  6433. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6434. mDogu[index].maid = doguBObject[index];
  6435. mDogu[index].ido = 7;
  6436. }
  6437. }
  6438. }
  6439. }
  6440. ikModeOld2 = ikMode2;
  6441. Vector3 vector3_2 = mainCameraTransform.TransformDirection(Vector3.forward);
  6442. Vector3 vector3_3 = mainCameraTransform.TransformDirection(Vector3.right);
  6443. vector3_1 = mainCameraTransform.TransformDirection(Vector3.up);
  6444. if (Input.GetKeyDown(KeyCode.Y) && this.getModKeyPressing(modKey.Shift))
  6445. {
  6446. keyFlg = true;
  6447. --bgIndex;
  6448. if (bgIndex <= -1)
  6449. bgIndex = bgArray.Length - 1;
  6450. if (!moveBg)
  6451. {
  6452. bg.localScale = new Vector3(1f, 1f, 1f);
  6453. if (bgArray[bgIndex].Length == 36)
  6454. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  6455. else
  6456. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  6457. bgCombo.selectedItemIndex = bgIndex;
  6458. }
  6459. }
  6460. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.E))
  6461. {
  6462. keyFlg = true;
  6463. bg.localScale = new Vector3(bg.localScale.x * 1.005f, bg.localScale.y * 1.005f, bg.localScale.z * 1.005f);
  6464. }
  6465. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.D))
  6466. {
  6467. keyFlg = true;
  6468. bg.localScale = new Vector3(bg.localScale.x * 0.995f, bg.localScale.y * 0.995f, bg.localScale.z * 0.995f);
  6469. }
  6470. else if (Input.GetKey(KeyCode.Y) && Input.GetKeyDown(KeyCode.C))
  6471. {
  6472. keyFlg = true;
  6473. bg.localScale = new Vector3(1f, 1f, 1f);
  6474. }
  6475. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.J))
  6476. {
  6477. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  6478. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  6479. if (Input.GetKey(KeyCode.Y))
  6480. keyFlg = true;
  6481. }
  6482. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.L))
  6483. {
  6484. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  6485. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  6486. if (Input.GetKey(KeyCode.Y))
  6487. keyFlg = true;
  6488. }
  6489. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.J))
  6490. {
  6491. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  6492. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  6493. if (Input.GetKey(KeyCode.Y))
  6494. keyFlg = true;
  6495. }
  6496. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.L))
  6497. {
  6498. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  6499. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  6500. if (Input.GetKey(KeyCode.Y))
  6501. keyFlg = true;
  6502. }
  6503. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I))
  6504. {
  6505. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed;
  6506. if (Input.GetKey(KeyCode.Y))
  6507. keyFlg = true;
  6508. }
  6509. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K))
  6510. {
  6511. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed;
  6512. if (Input.GetKey(KeyCode.Y))
  6513. keyFlg = true;
  6514. }
  6515. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.J))
  6516. {
  6517. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  6518. if (Input.GetKey(KeyCode.Y))
  6519. keyFlg = true;
  6520. }
  6521. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.L))
  6522. {
  6523. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  6524. if (Input.GetKey(KeyCode.Y))
  6525. keyFlg = true;
  6526. }
  6527. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.Alpha0))
  6528. {
  6529. Vector3 position = bg.position;
  6530. position.y -= 0.015f * speed;
  6531. bg.localPosition = position;
  6532. if (Input.GetKey(KeyCode.Y))
  6533. keyFlg = true;
  6534. }
  6535. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.P))
  6536. {
  6537. Vector3 position = bg.position;
  6538. position.y += 0.015f * speed;
  6539. bg.localPosition = position;
  6540. if (Input.GetKey(KeyCode.Y))
  6541. keyFlg = true;
  6542. }
  6543. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.U))
  6544. {
  6545. bg.RotateAround(maidArray[0].transform.position, Vector3.up, 0.7f);
  6546. if (Input.GetKey(KeyCode.Y))
  6547. keyFlg = true;
  6548. }
  6549. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.O))
  6550. {
  6551. bg.RotateAround(maidArray[0].transform.position, Vector3.up, -0.7f);
  6552. if (Input.GetKey(KeyCode.Y))
  6553. keyFlg = true;
  6554. }
  6555. else if (Input.GetKeyUp(KeyCode.Y))
  6556. {
  6557. if (keyFlg)
  6558. {
  6559. keyFlg = false;
  6560. }
  6561. else
  6562. {
  6563. ++bgIndex;
  6564. if (bgIndex == bgArray.Length)
  6565. bgIndex = 0;
  6566. if (!moveBg)
  6567. {
  6568. bg.localScale = new Vector3(1f, 1f, 1f);
  6569. if (bgArray[bgIndex].Length == 36)
  6570. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  6571. else
  6572. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  6573. bgCombo.selectedItemIndex = bgIndex;
  6574. }
  6575. }
  6576. }
  6577. speed = !this.getModKeyPressing(modKey.Shift)
  6578. ? (float) (1.0 * (double) Time.deltaTime * 60.0)
  6579. : (float) (5.0 * (double) Time.deltaTime * 60.0);
  6580. if (!isVR || isVR2)
  6581. {
  6582. if (!isVR)
  6583. {
  6584. if (isBloom)
  6585. {
  6586. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  6587. fieldValue.enabled = true;
  6588. fieldValue.bloomIntensity = bloom1;
  6589. fieldValue.bloomBlurIterations = (int) bloom2;
  6590. fieldValue.bloomThreshholdColor = new Color(1f - bloom3, 1f - bloom4, 1f - bloom5);
  6591. fieldValue.hdr = !isBloomA ? Bloom.HDRBloomMode.Auto : Bloom.HDRBloomMode.On;
  6592. isBloom2 = true;
  6593. }
  6594. else if (isBloom2)
  6595. {
  6596. isBloom2 = false;
  6597. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  6598. fieldValue.enabled = true;
  6599. fieldValue.bloomIntensity = 2.85f;
  6600. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  6601. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  6602. fieldValue.bloomBlurIterations = 3;
  6603. }
  6604. if (isDepth)
  6605. {
  6606. depth_field_.enabled = true;
  6607. depth_field_.focalLength = depth1;
  6608. depth_field_.focalSize = depth2;
  6609. depth_field_.aperture = depth3;
  6610. depth_field_.maxBlurSize = depth4;
  6611. depth_field_.visualizeFocus = isDepthA;
  6612. }
  6613. else
  6614. {
  6615. if ((Object) depth_field_ == (Object) null)
  6616. {
  6617. depth_field_ = GameMain.Instance.MainCamera.gameObject.AddComponent<DepthOfFieldScatter>();
  6618. if ((Object) depth_field_.dofHdrShader == (Object) null)
  6619. depth_field_.dofHdrShader = Shader.Find("Hidden/Dof/DepthOfFieldHdr");
  6620. if ((Object) depth_field_.dx11BokehShader == (Object) null)
  6621. depth_field_.dx11BokehShader = Shader.Find("Hidden/Dof/DX11Dof");
  6622. if ((Object) depth_field_.dx11BokehTexture == (Object) null)
  6623. depth_field_.dx11BokehTexture = Resources.Load("Textures/hexShape") as Texture2D;
  6624. }
  6625. depth_field_.enabled = false;
  6626. }
  6627. if (isFog)
  6628. {
  6629. if ((Object) fog_.fogShader == (Object) null)
  6630. fog_.fogShader = Shader.Find("Hidden/GlobalFog");
  6631. fog_.enabled = true;
  6632. fog_.startDistance = fog1;
  6633. fog_.globalDensity = fog2;
  6634. fog_.heightScale = fog3;
  6635. fog_.height = fog4;
  6636. fog_.globalFogColor.r = fog5;
  6637. fog_.globalFogColor.g = fog6;
  6638. fog_.globalFogColor.b = fog7;
  6639. }
  6640. else
  6641. {
  6642. if ((Object) fog_ == (Object) null)
  6643. fog_ = GameMain.Instance.MainCamera.gameObject.AddComponent<GlobalFog>();
  6644. fog_.enabled = false;
  6645. }
  6646. if (isSepia)
  6647. {
  6648. if ((Object) sepia_tone_.shader == (Object) null)
  6649. sepia_tone_.shader = Shader.Find("Hidden/Sepiatone Effect");
  6650. sepia_tone_.enabled = true;
  6651. }
  6652. else
  6653. {
  6654. if ((Object) sepia_tone_ == (Object) null)
  6655. sepia_tone_ = GameMain.Instance.MainCamera.gameObject.AddComponent<SepiaToneEffect>();
  6656. sepia_tone_.enabled = false;
  6657. }
  6658. if ((double) bokashi > 0.0)
  6659. {
  6660. Blur component = GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>();
  6661. component.enabled = true;
  6662. component.blurSize = bokashi / 10f;
  6663. component.blurIterations = 0;
  6664. component.downsample = 0;
  6665. if ((double) bokashi > 3.0)
  6666. {
  6667. component.blurSize -= 0.3f;
  6668. component.blurIterations = 1;
  6669. component.downsample = 1;
  6670. }
  6671. }
  6672. else
  6673. GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>().enabled = false;
  6674. if ((double) kamiyure > 0.0)
  6675. {
  6676. for (int index1 = 0; index1 < maidCnt; ++index1)
  6677. {
  6678. Maid maid = maidArray[index1];
  6679. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6680. {
  6681. if ((Object) maid.body0.goSlot[index2].obj != (Object) null)
  6682. {
  6683. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  6684. if ((Object) component != (Object) null && component.enabled)
  6685. component.m_Gravity = new Vector3(softG.x * 5f, softG.y * 5f + kamiyure, softG.z * 5f);
  6686. }
  6687. List<THair1> fieldValue =
  6688. GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
  6689. for (int index3 = 0; index3 < fieldValue.Count; ++index3)
  6690. fieldValue[index3].SoftG = new Vector3(softG.x, softG.y + kamiyure, softG.z);
  6691. }
  6692. }
  6693. }
  6694. if (isBlur)
  6695. {
  6696. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  6697. component.mode = Vignetting.AberrationMode.Simple;
  6698. component.intensity = blur1;
  6699. component.chromaticAberration = blur4;
  6700. component.blur = blur2;
  6701. component.blurSpread = blur3;
  6702. component.enabled = true;
  6703. isBlur2 = true;
  6704. }
  6705. else if (isBlur2)
  6706. {
  6707. isBlur2 = false;
  6708. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  6709. component.mode = Vignetting.AberrationMode.Simple;
  6710. component.intensity = -3.98f;
  6711. component.chromaticAberration = -0.75f;
  6712. component.axialAberration = 1.18f;
  6713. component.blurSpread = 4.19f;
  6714. component.luminanceDependency = 0.494f;
  6715. component.blurDistance = 1.71f;
  6716. component.enabled = false;
  6717. }
  6718. }
  6719. if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.I))
  6720. {
  6721. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  6722. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6723. }
  6724. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.K))
  6725. {
  6726. if ((double) GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  6727. {
  6728. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  6729. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6730. }
  6731. }
  6732. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.J))
  6733. {
  6734. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  6735. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  6736. }
  6737. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.L))
  6738. {
  6739. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  6740. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  6741. }
  6742. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  6743. {
  6744. GameMain.Instance.MainLight.Reset();
  6745. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6746. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6747. lightIndex[0] = 0;
  6748. lightColorR[0] = 1f;
  6749. lightColorG[0] = 1f;
  6750. lightColorB[0] = 1f;
  6751. lightX[0] = 40f;
  6752. lightY[0] = 180f;
  6753. lightAkarusa[0] = 0.95f;
  6754. lightKage[0] = 0.098f;
  6755. lightRange[0] = 50f;
  6756. bgObject.SetActive(true);
  6757. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  6758. isIdx1 = false;
  6759. isIdx2 = false;
  6760. isIdx3 = false;
  6761. isIdx4 = false;
  6762. }
  6763. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus) && this.getModKeyPressing(modKey.Shift))
  6764. {
  6765. List<float> lightColorR;
  6766. (lightColorR = this.lightColorR)[0] = lightColorR[0] + 0.01f;
  6767. if ((double) this.lightColorR[0] > 1.0)
  6768. this.lightColorR[0] = 1f;
  6769. if (lightIndex[0] != 3)
  6770. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6771. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6772. else
  6773. mainCamera.GetComponent<Camera>().backgroundColor =
  6774. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6775. }
  6776. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote) && this.getModKeyPressing(modKey.Shift))
  6777. {
  6778. List<float> lightColorG;
  6779. (lightColorG = this.lightColorG)[0] = lightColorG[0] + 0.01f;
  6780. if ((double) this.lightColorG[0] > 1.0)
  6781. this.lightColorG[0] = 1f;
  6782. if (lightIndex[0] != 3)
  6783. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6784. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6785. else
  6786. mainCamera.GetComponent<Camera>().backgroundColor =
  6787. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6788. }
  6789. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket) && this.getModKeyPressing(modKey.Shift))
  6790. {
  6791. List<float> lightColorB;
  6792. (lightColorB = this.lightColorB)[0] = lightColorB[0] + 0.01f;
  6793. if ((double) this.lightColorB[0] > 1.0)
  6794. this.lightColorB[0] = 1f;
  6795. if (lightIndex[0] != 3)
  6796. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6797. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6798. else
  6799. mainCamera.GetComponent<Camera>().backgroundColor =
  6800. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6801. }
  6802. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus))
  6803. {
  6804. List<float> lightColorR;
  6805. (lightColorR = this.lightColorR)[0] = lightColorR[0] - 0.01f;
  6806. if ((double) this.lightColorR[0] < 0.0)
  6807. this.lightColorR[0] = 0.0f;
  6808. if (lightIndex[0] != 3)
  6809. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6810. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6811. else
  6812. mainCamera.GetComponent<Camera>().backgroundColor =
  6813. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6814. }
  6815. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6816. {
  6817. List<float> lightColorG;
  6818. (lightColorG = this.lightColorG)[0] = lightColorG[0] - 0.01f;
  6819. if ((double) this.lightColorG[0] < 0.0)
  6820. this.lightColorG[0] = 0.0f;
  6821. if (lightIndex[0] != 3)
  6822. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6823. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6824. else
  6825. mainCamera.GetComponent<Camera>().backgroundColor =
  6826. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6827. }
  6828. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6829. {
  6830. List<float> lightColorB;
  6831. (lightColorB = this.lightColorB)[0] = lightColorB[0] - 0.01f;
  6832. if ((double) this.lightColorB[0] < 0.0)
  6833. this.lightColorB[0] = 0.0f;
  6834. if (lightIndex[0] != 3)
  6835. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6836. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6837. else
  6838. mainCamera.GetComponent<Camera>().backgroundColor =
  6839. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6840. }
  6841. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha0))
  6842. {
  6843. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.12f * Time.deltaTime;
  6844. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  6845. }
  6846. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.P))
  6847. {
  6848. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.12f * Time.deltaTime;
  6849. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  6850. }
  6851. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha9))
  6852. {
  6853. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  6854. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  6855. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  6856. }
  6857. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.O))
  6858. {
  6859. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  6860. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  6861. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  6862. }
  6863. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.U))
  6864. {
  6865. List<int> lightIndex;
  6866. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6867. if (this.lightIndex[0] == 4)
  6868. this.lightIndex[0] = 0;
  6869. lightColorR[0] = 1f;
  6870. lightColorG[0] = 1f;
  6871. lightColorB[0] = 1f;
  6872. lightX[0] = 40f;
  6873. lightY[0] = 180f;
  6874. lightAkarusa[0] = 0.95f;
  6875. lightKage[0] = 0.098f;
  6876. lightRange[0] = 50f;
  6877. GameMain.Instance.MainLight.Reset();
  6878. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6879. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  6880. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  6881. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6882. if (this.lightIndex[0] == 0)
  6883. {
  6884. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6885. bgObject.SetActive(true);
  6886. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  6887. }
  6888. else if (this.lightIndex[0] == 1)
  6889. {
  6890. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6891. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6892. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  6893. if ((Object) gLight[0] == (Object) null)
  6894. {
  6895. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  6896. gLight[0].GetComponent<Renderer>().material =
  6897. new Material(Shader.Find("Transparent/Diffuse")) {color = new Color(0.5f, 0.5f, 1f, 0.8f)};
  6898. gLight[0].layer = 8;
  6899. gLight[0].GetComponent<Renderer>().enabled = false;
  6900. gLight[0].SetActive(false);
  6901. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  6902. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  6903. mLight[0].obj = gLight[0];
  6904. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  6905. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  6906. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  6907. mLight[0].ido = 1;
  6908. mLight[0].isScale = false;
  6909. }
  6910. }
  6911. else if (this.lightIndex[0] == 2)
  6912. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  6913. else if (this.lightIndex[0] == 3)
  6914. {
  6915. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6916. mainCamera.GetComponent<Camera>().backgroundColor =
  6917. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6918. bgObject.SetActive(false);
  6919. }
  6920. isIdx1 = false;
  6921. isIdx2 = false;
  6922. isIdx3 = false;
  6923. isIdx4 = false;
  6924. }
  6925. }
  6926. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Insert))
  6927. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  6928. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Delete))
  6929. {
  6930. if ((double) GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  6931. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  6932. }
  6933. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Home))
  6934. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  6935. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.End))
  6936. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  6937. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  6938. {
  6939. GameMain.Instance.MainLight.Reset();
  6940. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6941. }
  6942. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageUp))
  6943. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.1f * Time.deltaTime;
  6944. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageDown))
  6945. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.1f * Time.deltaTime;
  6946. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6947. {
  6948. if (lightIndex[0] == 1)
  6949. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  6950. else
  6951. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  6952. }
  6953. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6954. {
  6955. if (lightIndex[0] == 1)
  6956. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  6957. else
  6958. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  6959. }
  6960. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.Minus))
  6961. {
  6962. List<int> lightIndex;
  6963. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6964. if (this.lightIndex[0] == 3)
  6965. this.lightIndex[0] = 0;
  6966. GameMain.Instance.MainLight.Reset();
  6967. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6968. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  6969. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  6970. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6971. if (this.lightIndex[0] == 0)
  6972. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6973. else if (this.lightIndex[0] == 1)
  6974. {
  6975. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6976. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  6977. }
  6978. else if (this.lightIndex[0] == 2)
  6979. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  6980. }
  6981. for (int index = 0; index < lightList.Count; ++index)
  6982. {
  6983. if (index > 0)
  6984. {
  6985. lightList[index].GetComponent<Light>().color =
  6986. new Color(lightColorR[index], lightColorG[index], lightColorB[index]);
  6987. lightList[index].GetComponent<Light>().intensity = lightAkarusa[index];
  6988. lightList[index].GetComponent<Light>().spotAngle = lightRange[index];
  6989. lightList[index].GetComponent<Light>().range = lightRange[index] / 5f;
  6990. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(modKey.Shift)))
  6991. lightList[index].transform.eulerAngles = new Vector3(lightX[index], lightY[index], 18f);
  6992. }
  6993. else
  6994. {
  6995. GameMain.Instance.MainLight.SetIntensity(lightAkarusa[0]);
  6996. GameMain.Instance.MainLight.GetComponent<Light>().shadowStrength = lightKage[0];
  6997. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(modKey.Shift)))
  6998. GameMain.Instance.MainLight.SetRotation(new Vector3(lightX[0], lightY[0], 18f));
  6999. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = lightRange[index];
  7000. GameMain.Instance.MainLight.GetComponent<Light>().range = lightRange[index] / 5f;
  7001. if (lightIndex[index] != 3)
  7002. GameMain.Instance.MainLight.GetComponent<Light>().color =
  7003. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  7004. else
  7005. mainCamera.GetComponent<Camera>().backgroundColor =
  7006. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  7007. }
  7008. }
  7009. }
  7010. if (isF6S)
  7011. {
  7012. if (maidCnt < 1)
  7013. ++F6cnt;
  7014. if (F6cnt > 10)
  7015. {
  7016. maidCnt = 1;
  7017. F6cnt = 0;
  7018. }
  7019. for (int index1 = 0; index1 < maidCnt; ++index1)
  7020. {
  7021. if ((bool) ((Object) maidArray[index1]) && maidArray[index1].Visible && maidArray[index1].body0.isLoadedBody)
  7022. {
  7023. Maid maid = maidArray[index1];
  7024. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  7025. {
  7026. if (maid.body0.goSlot[index2].bonehair.bodyhit != null
  7027. && maid.body0.goSlot[index2].bonehair.bodyhit.spherelist.Count == 17 && (index2 == 3 || index2 == 4))
  7028. {
  7029. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine", true);
  7030. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine0a", true);
  7031. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1", true);
  7032. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1a", true);
  7033. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Pelvis", true);
  7034. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Hand", true);
  7035. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L UpperArm", true);
  7036. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Forearm", true);
  7037. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Hand", true);
  7038. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R UpperArm", true);
  7039. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Forearm", true);
  7040. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Foot", true);
  7041. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Thigh", true);
  7042. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Calf", true);
  7043. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Foot", true);
  7044. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Thigh", true);
  7045. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Calf", true);
  7046. List<THitSphere> spherelist = maid.body0.goSlot[index2].bonehair.bodyhit.spherelist;
  7047. THitSphere thitSphere1 = new THitSphere();
  7048. THitSphere thitSphere2 = spherelist[0];
  7049. THitSphere thitSphere3 = new THitSphere();
  7050. thitSphere3.wv = thitSphere2.wv;
  7051. thitSphere3.len = thitSphere2.len * 0.8f;
  7052. thitSphere3.t = thitSphere2.t;
  7053. thitSphere3.vs = thitSphere2.vs;
  7054. thitSphere3.vs.y -= 0.04f;
  7055. thitSphere3.vs.x += 0.05f;
  7056. spherelist.Add(thitSphere3);
  7057. THitSphere thitSphere4 = new THitSphere();
  7058. thitSphere4.len = 0.09f;
  7059. thitSphere4.t = transform4;
  7060. thitSphere4.vs.z += 0.04f;
  7061. thitSphere4.vs.x -= 0.04f;
  7062. thitSphere4.vs.y -= 0.01f;
  7063. spherelist.Add(thitSphere4);
  7064. THitSphere thitSphere5 = new THitSphere();
  7065. thitSphere5.len = 0.09f;
  7066. thitSphere5.t = transform4;
  7067. thitSphere5.vs.z -= 0.04f;
  7068. thitSphere5.vs.x -= 0.04f;
  7069. thitSphere5.vs.y -= 0.01f;
  7070. spherelist.Add(thitSphere5);
  7071. THitSphere thitSphere6 = new THitSphere();
  7072. thitSphere6.len = 0.09f;
  7073. thitSphere6.t = transform3;
  7074. thitSphere6.vs.z += 0.035f;
  7075. spherelist.Add(thitSphere6);
  7076. THitSphere thitSphere7 = new THitSphere();
  7077. thitSphere7.len = 0.09f;
  7078. thitSphere7.t = transform3;
  7079. thitSphere7.vs.z -= 0.035f;
  7080. spherelist.Add(thitSphere7);
  7081. THitSphere thitSphere8 = new THitSphere();
  7082. thitSphere8.len = 0.08f;
  7083. thitSphere8.t = transform2;
  7084. thitSphere8.vs.z += 0.035f;
  7085. spherelist.Add(thitSphere8);
  7086. THitSphere thitSphere9 = new THitSphere();
  7087. thitSphere9.len = 0.08f;
  7088. thitSphere9.t = transform2;
  7089. thitSphere9.vs.z -= 0.035f;
  7090. spherelist.Add(thitSphere9);
  7091. THitSphere thitSphere10 = new THitSphere();
  7092. thitSphere10.len = 0.09f;
  7093. thitSphere10.t = transform1;
  7094. thitSphere10.vs.z += 0.04f;
  7095. thitSphere10.vs.y -= 0.02f;
  7096. spherelist.Add(thitSphere10);
  7097. THitSphere thitSphere11 = new THitSphere();
  7098. thitSphere11.len = 0.09f;
  7099. thitSphere11.t = transform1;
  7100. thitSphere11.vs.z -= 0.04f;
  7101. thitSphere11.vs.y -= 0.02f;
  7102. spherelist.Add(thitSphere11);
  7103. THitSphere thitSphere12 = new THitSphere();
  7104. thitSphere12.len = 0.11f;
  7105. thitSphere12.t = transform5;
  7106. thitSphere12.vs.z += 0.05f;
  7107. thitSphere12.vs.y -= 0.03f;
  7108. spherelist.Add(thitSphere12);
  7109. THitSphere thitSphere13 = new THitSphere();
  7110. thitSphere13.len = 0.11f;
  7111. thitSphere13.t = transform5;
  7112. thitSphere13.vs.z -= 0.05f;
  7113. thitSphere13.vs.y -= 0.03f;
  7114. spherelist.Add(thitSphere13);
  7115. THitSphere thitSphere14 = new THitSphere();
  7116. thitSphere14.len = 0.11f;
  7117. thitSphere14.t = transform10;
  7118. thitSphere14.vs.x -= 0.03f;
  7119. spherelist.Add(thitSphere14);
  7120. THitSphere thitSphere15 = new THitSphere();
  7121. thitSphere15.len = 0.11f;
  7122. thitSphere15.t = transform11;
  7123. thitSphere15.vs.x -= 0.03f;
  7124. spherelist.Add(thitSphere15);
  7125. spherelist.Add(new THitSphere() {len = 0.05f, t = transform6});
  7126. spherelist.Add(new THitSphere() {len = 0.05f, t = transform8});
  7127. THitSphere thitSphere16 = new THitSphere();
  7128. thitSphere16.len = 0.05f;
  7129. thitSphere16.t = transform7;
  7130. thitSphere16.vs.x -= 0.04f;
  7131. spherelist.Add(thitSphere16);
  7132. THitSphere thitSphere17 = new THitSphere();
  7133. thitSphere17.len = 0.05f;
  7134. thitSphere17.t = transform9;
  7135. thitSphere17.vs.x -= 0.04f;
  7136. spherelist.Add(thitSphere17);
  7137. THitSphere thitSphere18 = new THitSphere();
  7138. thitSphere18.len = 0.05f;
  7139. thitSphere18.t = transform7;
  7140. thitSphere18.vs.x -= 0.08f;
  7141. spherelist.Add(thitSphere18);
  7142. THitSphere thitSphere19 = new THitSphere();
  7143. thitSphere19.len = 0.05f;
  7144. thitSphere19.t = transform9;
  7145. thitSphere19.vs.x -= 0.08f;
  7146. spherelist.Add(thitSphere19);
  7147. THitSphere thitSphere20 = new THitSphere();
  7148. thitSphere20.len = 0.05f;
  7149. thitSphere20.t = transform7;
  7150. thitSphere20.vs.x -= 0.12f;
  7151. spherelist.Add(thitSphere20);
  7152. THitSphere thitSphere21 = new THitSphere();
  7153. thitSphere21.len = 0.05f;
  7154. thitSphere21.t = transform9;
  7155. thitSphere21.vs.x -= 0.12f;
  7156. spherelist.Add(thitSphere21);
  7157. THitSphere thitSphere22 = new THitSphere();
  7158. thitSphere22.len = 0.05f;
  7159. thitSphere22.t = transform7;
  7160. thitSphere22.vs.x -= 0.16f;
  7161. spherelist.Add(thitSphere22);
  7162. THitSphere thitSphere23 = new THitSphere();
  7163. thitSphere23.len = 0.05f;
  7164. thitSphere23.t = transform9;
  7165. thitSphere23.vs.x -= 0.16f;
  7166. spherelist.Add(thitSphere23);
  7167. }
  7168. }
  7169. }
  7170. }
  7171. }
  7172. }
  7173. }
  7174. }
  7175. }