MultipleMaids.Update.cs 444 KB

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