1
0

MultipleMaids.Update.cs 452 KB

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