MultipleMaids.Update.cs 448 KB

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