MultipleMaids.Update.cs 446 KB

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