MultipleMaids.Update.cs 454 KB

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