MultipleMaids.Update.cs 445 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499
  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. float num = 2f;
  4025. if (Application.unityVersion.StartsWith("4"))
  4026. {
  4027. num = 1f;
  4028. }
  4029. GameObject gameObject = new GameObject("Light");
  4030. gameObject.AddComponent<Light>();
  4031. lightList.Add(gameObject);
  4032. lightColorR.Add(1f);
  4033. lightColorG.Add(1f);
  4034. lightColorB.Add(1f);
  4035. lightIndex.Add(0);
  4036. lightX.Add(40f);
  4037. lightY.Add(180f);
  4038. lightAkarusa.Add(num);
  4039. lightKage.Add(0.098f);
  4040. lightRange.Add(50f);
  4041. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  4042. gameObject.GetComponent<Light>().intensity = 2f;
  4043. gameObject.GetComponent<Light>().spotAngle = 50f;
  4044. gameObject.GetComponent<Light>().range = 10f;
  4045. gameObject.GetComponent<Light>().type = LightType.Directional;
  4046. gameObject.GetComponent<Light>().color = new Color(0.5f, 1f, 0.0f);
  4047. gameObject.GetComponent<Light>().cullingMask = 256;
  4048. }
  4049. if ((!isF6S || !getModKeyPressing(modKey.Shift) || !Input.GetKeyDown(KeyCode.F6))
  4050. && (isF6S || !getModKeyPressing(modKey.Shift) || !Input.GetKeyDown(KeyCode.F6)))
  4051. {
  4052. if (!isF6 && Input.GetKeyDown(KeyCode.F6) && sceneLevel != 5 && sceneLevel != 3
  4053. && !isVR && maidArray[0] && maidArray[0].Visible)
  4054. {
  4055. isF6 = true;
  4056. bGui = true;
  4057. isFaceInit = true;
  4058. isGuiInit = true;
  4059. maidArray[0].boMabataki = false;
  4060. selectMaidIndex = 0;
  4061. maidCnt = 1;
  4062. isFace[0] = true;
  4063. faceFlg = true;
  4064. kankyoFlg = false;
  4065. string bgName = GameMain.Instance.BgMgr.GetBGName();
  4066. int num = 0;
  4067. foreach (string bg in bgArray)
  4068. {
  4069. if (bg == bgName)
  4070. {
  4071. bgIndex = num;
  4072. bgIndex6 = num;
  4073. break;
  4074. }
  4075. ++num;
  4076. }
  4077. bgCombo.selectedItemIndex = bgIndex6;
  4078. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  4079. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  4080. }
  4081. else if (!isF6 && Input.GetKeyDown(KeyCode.F7) && sceneLevel != 5 && sceneLevel != 3
  4082. && !isVR && maidArray[0] && maidArray[0].Visible)
  4083. {
  4084. isF6 = true;
  4085. bGui = true;
  4086. isGuiInit = true;
  4087. selectMaidIndex = 0;
  4088. maidCnt = 1;
  4089. isFace[0] = false;
  4090. faceFlg = false;
  4091. kankyoFlg = true;
  4092. string bgName = GameMain.Instance.BgMgr.GetBGName();
  4093. int num = 0;
  4094. foreach (string bg in bgArray)
  4095. {
  4096. if (bg == bgName)
  4097. {
  4098. bgIndex = num;
  4099. bgIndex6 = num;
  4100. break;
  4101. }
  4102. ++num;
  4103. }
  4104. bgmCombo.selectedItemIndex = bgmIndex;
  4105. bgCombo.selectedItemIndex = bgIndex6;
  4106. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  4107. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  4108. lightX6 = lightX[0];
  4109. lightY6 = lightY[0];
  4110. }
  4111. else if (isVR && Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.BackQuote)
  4112. || isF6 && (Input.GetKeyDown(KeyCode.F6) || Input.GetKeyDown(KeyCode.F7)))
  4113. {
  4114. isF6 = false;
  4115. bGui = false;
  4116. maidArray[0].boMabataki = true;
  4117. bgIndex = bgIndex6;
  4118. bg.localScale = new Vector3(1f, 1f, 1f);
  4119. if (!isVR)
  4120. {
  4121. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  4122. fieldValue.enabled = true;
  4123. fieldValue.bloomIntensity = 2.85f;
  4124. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  4125. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  4126. fieldValue.bloomBlurIterations = 3;
  4127. }
  4128. else if (bgArray[bgIndex].Length == 36)
  4129. {
  4130. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  4131. }
  4132. else
  4133. {
  4134. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  4135. }
  4136. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  4137. maidCnt = 0;
  4138. wearIndex = 0;
  4139. faceFlg = false;
  4140. faceFlg2 = false;
  4141. sceneFlg = false;
  4142. poseFlg = false;
  4143. kankyoFlg = false;
  4144. kankyo2Flg = false;
  4145. unLockFlg = false;
  4146. ikMaid = 0;
  4147. ikBui = 0;
  4148. isNamida = false;
  4149. isTear1 = false;
  4150. isTear2 = false;
  4151. isTear3 = false;
  4152. isShock = false;
  4153. isYodare = false;
  4154. isHoho = false;
  4155. isHoho2 = false;
  4156. isHohos = false;
  4157. isHohol = false;
  4158. isToothoff = false;
  4159. isNosefook = false;
  4160. isFaceInit = false;
  4161. isPoseInit = false;
  4162. isWear = true;
  4163. isSkirt = true;
  4164. isBra = true;
  4165. isPanz = true;
  4166. isHeadset = true;
  4167. isAccUde = true;
  4168. isStkg = true;
  4169. isShoes = true;
  4170. isGlove = true;
  4171. isMegane = true;
  4172. isAccSenaka = true;
  4173. isPanel = true;
  4174. isBloom = false;
  4175. isBloomA = false;
  4176. isBlur = false;
  4177. isBlur2 = false;
  4178. bloom1 = 2.85f;
  4179. bloom2 = 3f;
  4180. bloom3 = 0.0f;
  4181. bloom4 = 0.0f;
  4182. bloom5 = 0.0f;
  4183. blur1 = -3.98f;
  4184. blur4 = -0.75f;
  4185. blur2 = 0.9f;
  4186. blur3 = 4.19f;
  4187. bokashi = 0.0f;
  4188. kamiyure = 0.0f;
  4189. isDepth = false;
  4190. isDepthA = false;
  4191. depth1 = 3f;
  4192. depth2 = 0.1f;
  4193. depth3 = 15f;
  4194. depth4 = 2.5f;
  4195. isFog = false;
  4196. fog1 = 4f;
  4197. fog2 = 1f;
  4198. fog3 = 1f;
  4199. fog4 = 0.0f;
  4200. fog5 = 1f;
  4201. fog6 = 1f;
  4202. fog7 = 1f;
  4203. isSepia = false;
  4204. isBloomS = true;
  4205. isDepthS = false;
  4206. isBlurS = false;
  4207. isFogS = false;
  4208. if (depth_field_ != null)
  4209. {
  4210. depth_field_.enabled = false;
  4211. }
  4212. if (fog_ != null)
  4213. {
  4214. fog_.enabled = false;
  4215. }
  4216. if (sepia_tone_ != null)
  4217. {
  4218. sepia_tone_.enabled = false;
  4219. }
  4220. isCube = false;
  4221. isCube2 = true;
  4222. isCube3 = false;
  4223. isCube4 = true;
  4224. effectIndex = 0;
  4225. selectMaidIndex = 0;
  4226. copyIndex = 0;
  4227. selectLightIndex = 0;
  4228. doguBIndex = 0;
  4229. parIndex = 0;
  4230. isEditNo = 0;
  4231. editSelectMaid = null;
  4232. for (int index = 0; index < 10; ++index)
  4233. {
  4234. date[index] = "";
  4235. ninzu[index] = "";
  4236. }
  4237. if (kami)
  4238. {
  4239. kami.SetActive(false);
  4240. }
  4241. lightIndex = new List<int>
  4242. {
  4243. 0
  4244. };
  4245. lightColorR = new List<float>
  4246. {
  4247. 1f
  4248. };
  4249. lightColorG = new List<float>
  4250. {
  4251. 1f
  4252. };
  4253. lightColorB = new List<float>
  4254. {
  4255. 1f
  4256. };
  4257. lightX = new List<float>
  4258. {
  4259. lightX6
  4260. };
  4261. lightY = new List<float>
  4262. {
  4263. lightY6
  4264. };
  4265. lightAkarusa = new List<float>
  4266. {
  4267. 0.95f
  4268. };
  4269. lightKage = new List<float>
  4270. {
  4271. 0.098f
  4272. };
  4273. lightRange = new List<float>
  4274. {
  4275. 50f
  4276. };
  4277. isIdx1 = false;
  4278. isIdx2 = false;
  4279. isIdx3 = false;
  4280. isIdx4 = false;
  4281. bgObject.SetActive(true);
  4282. GameMain.Instance.MainLight.Reset();
  4283. GameMain.Instance.MainLight.SetIntensity(0.95f);
  4284. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 30f;
  4285. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  4286. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  4287. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  4288. GameMain.Instance.MainLight.transform.eulerAngles =
  4289. new Vector3(lightX6, lightY6, GameMain.Instance.MainLight.transform.eulerAngles.z);
  4290. for (int index = 0; index < doguBObject.Count; ++index)
  4291. {
  4292. GraphicsUtils.Destroy(doguBObject[index]);
  4293. }
  4294. doguBObject.Clear();
  4295. doguBIndex = 0;
  4296. parIndex = 0;
  4297. doguCombo.selectedItemIndex = 0;
  4298. parCombo.selectedItemIndex = 0;
  4299. for (int index = 1; index < lightList.Count; ++index)
  4300. {
  4301. GraphicsUtils.Destroy(lightList[index]);
  4302. }
  4303. lightList = new List<GameObject>
  4304. {
  4305. GameMain.Instance.MainLight.gameObject
  4306. };
  4307. lightComboList = new GUIContent[lightList.Count];
  4308. lightComboList[0] = new GUIContent("メイン");
  4309. lightCombo.selectedItemIndex = 0;
  4310. selectLightIndex = 0;
  4311. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex6]);
  4312. bgCombo.selectedItemIndex = bgIndex6;
  4313. bgCombo2.selectedItemIndex = 0;
  4314. itemCombo2.selectedItemIndex = 0;
  4315. slotCombo.selectedItemIndex = 0;
  4316. sortList.Clear();
  4317. scrollPos = new Vector2(0.0f, 0.0f);
  4318. if (!isVR)
  4319. {
  4320. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  4321. component.mode = Vignetting.AberrationMode.Simple;
  4322. component.intensity = -3.98f;
  4323. component.chromaticAberration = -0.75f;
  4324. component.axialAberration = 1.18f;
  4325. component.blurSpread = 4.19f;
  4326. component.luminanceDependency = 0.494f;
  4327. component.blurDistance = 1.71f;
  4328. component.enabled = false;
  4329. }
  4330. doguIndex.Clear();
  4331. doguSelectIndex = 0;
  4332. for (int index = 0; index < doguObject.Count; ++index)
  4333. {
  4334. if (doguObject[index] != null)
  4335. {
  4336. GraphicsUtils.Destroy(doguObject[index]);
  4337. doguObject[index] = null;
  4338. }
  4339. }
  4340. doguObject.Clear();
  4341. }
  4342. }
  4343. for (int index = 0; index < maidCnt; ++index)
  4344. {
  4345. if (maidArray[index] && maidArray[index].Visible)
  4346. {
  4347. Maid maid = maidArray[index];
  4348. if (isLook[index] != isLookn[index])
  4349. {
  4350. isLookn[index] = isLook[index];
  4351. if (isLook[index])
  4352. {
  4353. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4354. maid.body0.boHeadToCam = true;
  4355. maid.body0.boEyeToCam = true;
  4356. maid.body0.trsLookTarget = null;
  4357. }
  4358. else
  4359. {
  4360. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4361. maid.body0.boHeadToCam = true;
  4362. maid.body0.boEyeToCam = true;
  4363. }
  4364. }
  4365. }
  4366. }
  4367. if (maidArray[selectMaidIndex] && maidArray[selectMaidIndex].Visible
  4368. && (!faceFlg && !poseFlg && !sceneFlg && !kankyoFlg && !kankyo2Flg
  4369. || sceneFlg || kankyoFlg || kankyo2Flg))
  4370. {
  4371. for (int index = 0; index < maidCnt; ++index)
  4372. {
  4373. if (maidArray[index] && !maidArray[index].boMabataki)
  4374. {
  4375. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  4376. }
  4377. }
  4378. }
  4379. if (maidArray[selectMaidIndex] && maidArray[selectMaidIndex].Visible && poseFlg)
  4380. {
  4381. if (isPoseInit)
  4382. {
  4383. if (!isDanceChu)
  4384. {
  4385. Maid maid = maidArray[selectMaidIndex];
  4386. isPoseInit = false;
  4387. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  4388. || maid.body0.GetMask(TBody.SlotID.onepiece);
  4389. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  4390. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  4391. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  4392. isMaid = maid.body0.GetMask(TBody.SlotID.body);
  4393. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  4394. || maid.body0.GetMask(TBody.SlotID.accHead)
  4395. || maid.body0.GetMask(TBody.SlotID.accKamiSubL)
  4396. || maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  4397. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  4398. || maid.body0.GetMask(TBody.SlotID.accKami_2_)
  4399. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  4400. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  4401. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  4402. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  4403. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  4404. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  4405. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  4406. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  4407. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  4408. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  4409. eyeclose = fieldValue2[(int)morph.hash["eyeclose"]];
  4410. eyeclose2 = fieldValue2[(int)morph.hash["eyeclose2"]];
  4411. eyeclose3 = fieldValue2[(int)morph.hash["eyeclose3"]];
  4412. eyeclose6 = fieldValue2[(int)morph.hash["eyeclose6"]];
  4413. hitomih = fieldValue1[(int)morph.hash["hitomih"]];
  4414. hitomis = fieldValue1[(int)morph.hash["hitomis"]];
  4415. mayuha = fieldValue1[(int)morph.hash["mayuha"]];
  4416. mayuup = fieldValue1[(int)morph.hash["mayuup"]];
  4417. mayuv = fieldValue1[(int)morph.hash["mayuv"]];
  4418. mayuvhalf = fieldValue1[(int)morph.hash["mayuvhalf"]];
  4419. moutha = fieldValue1[(int)morph.hash["moutha"]];
  4420. mouths = fieldValue1[(int)morph.hash["mouths"]];
  4421. mouthdw = fieldValue1[(int)morph.hash["mouthdw"]];
  4422. mouthup = fieldValue1[(int)morph.hash["mouthup"]];
  4423. tangout = fieldValue1[(int)morph.hash["tangout"]];
  4424. tangup = fieldValue1[(int)morph.hash["tangup"]];
  4425. eyebig = fieldValue1[(int)morph.hash["eyebig"]];
  4426. eyeclose5 = fieldValue2[(int)morph.hash["eyeclose5"]];
  4427. mayuw = fieldValue1[(int)morph.hash["mayuw"]];
  4428. mouthhe = fieldValue1[(int)morph.hash["mouthhe"]];
  4429. mouthc = fieldValue1[(int)morph.hash["mouthc"]];
  4430. mouthi = fieldValue1[(int)morph.hash["mouthi"]];
  4431. mouthuphalf = fieldValue1[(int)morph.hash["mouthuphalf"]];
  4432. try
  4433. {
  4434. tangopen = fieldValue1[(int)morph.hash["tangopen"]];
  4435. }
  4436. catch { }
  4437. isNamida = fieldValue1[(int)morph.hash["namida"]] > 0.0;
  4438. isTear1 = fieldValue1[(int)morph.hash["tear1"]] > 0.0;
  4439. isTear2 = fieldValue1[(int)morph.hash["tear2"]] > 0.0;
  4440. isTear3 = fieldValue1[(int)morph.hash["tear3"]] > 0.0;
  4441. isShock = fieldValue1[(int)morph.hash["shock"]] > 0.0;
  4442. isYodare = fieldValue1[(int)morph.hash["yodare"]] > 0.0;
  4443. isHoho = fieldValue1[(int)morph.hash["hoho"]] > 0.0;
  4444. isHoho2 = fieldValue1[(int)morph.hash["hoho2"]] > 0.0;
  4445. isHohos = fieldValue1[(int)morph.hash["hohos"]] > 0.0;
  4446. isHohol = fieldValue1[(int)morph.hash["hohol"]] > 0.0;
  4447. isToothoff = fieldValue1[(int)morph.hash["toothoff"]] > 0.0;
  4448. isNosefook = fieldValue1[(int)morph.hash["nosefook"]] > 0.0;
  4449. }
  4450. }
  4451. else
  4452. {
  4453. Maid maid = maidArray[selectMaidIndex];
  4454. if (goSlot[(int)selectList[selectMaidIndex]] != null)
  4455. {
  4456. maidArray[selectMaidIndex].body0.goSlot =
  4457. new List<TBodySkin>(goSlot[(int)selectList[selectMaidIndex]]);
  4458. for (int index = 0; index < bodyHit[(int)selectList[selectMaidIndex]].Count; ++index)
  4459. {
  4460. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit =
  4461. bodyHit[(int)selectList[selectMaidIndex]][index];
  4462. }
  4463. }
  4464. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  4465. {
  4466. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  4467. }
  4468. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  4469. {
  4470. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  4471. }
  4472. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  4473. {
  4474. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  4475. }
  4476. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  4477. {
  4478. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  4479. }
  4480. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  4481. {
  4482. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  4483. }
  4484. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  4485. {
  4486. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  4487. }
  4488. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  4489. {
  4490. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  4491. }
  4492. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  4493. {
  4494. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  4495. }
  4496. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  4497. {
  4498. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  4499. }
  4500. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  4501. {
  4502. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  4503. }
  4504. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  4505. {
  4506. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  4507. }
  4508. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  4509. {
  4510. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  4511. }
  4512. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  4513. {
  4514. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  4515. }
  4516. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  4517. {
  4518. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  4519. }
  4520. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  4521. {
  4522. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  4523. }
  4524. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  4525. {
  4526. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  4527. }
  4528. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  4529. {
  4530. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  4531. }
  4532. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  4533. {
  4534. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  4535. }
  4536. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  4537. {
  4538. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  4539. }
  4540. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  4541. {
  4542. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  4543. }
  4544. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  4545. {
  4546. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  4547. if (mekure1[selectMaidIndex])
  4548. {
  4549. maid.ItemChangeTemp("skirt", "めくれスカート");
  4550. maid.ItemChangeTemp("onepiece", "めくれスカート");
  4551. mekure2[selectMaidIndex] = false;
  4552. mekure2n[selectMaidIndex] = false;
  4553. }
  4554. else
  4555. {
  4556. ResetProp(maid, MPN.skirt);
  4557. ResetProp(maid, MPN.onepiece);
  4558. }
  4559. maid.AllProcPropSeqStart();
  4560. }
  4561. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  4562. {
  4563. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  4564. if (mekure2[selectMaidIndex])
  4565. {
  4566. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  4567. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  4568. mekure1[selectMaidIndex] = false;
  4569. mekure1n[selectMaidIndex] = false;
  4570. }
  4571. else
  4572. {
  4573. ResetProp(maid, MPN.skirt);
  4574. ResetProp(maid, MPN.onepiece);
  4575. }
  4576. maid.AllProcPropSeqStart();
  4577. }
  4578. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  4579. {
  4580. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  4581. if (zurasi[selectMaidIndex])
  4582. {
  4583. maid.ItemChangeTemp("panz", "パンツずらし");
  4584. maid.ItemChangeTemp("mizugi", "パンツずらし");
  4585. }
  4586. else
  4587. {
  4588. ResetProp(maid, MPN.panz);
  4589. ResetProp(maid, MPN.mizugi);
  4590. }
  4591. maid.AllProcPropSeqStart();
  4592. }
  4593. if (!isDanceChu)
  4594. {
  4595. if (maid.body0.GetMask(TBody.SlotID.body) != isMaid)
  4596. {
  4597. Hashtable fieldValue = GetFieldValue<TBody, Hashtable>(maid.body0, "m_hFoceHide");
  4598. fieldValue[TBody.SlotID.body] = isMaid;
  4599. fieldValue[TBody.SlotID.head] = isMaid;
  4600. fieldValue[TBody.SlotID.eye] = isMaid;
  4601. fieldValue[TBody.SlotID.hairF] = isMaid;
  4602. fieldValue[TBody.SlotID.hairR] = isMaid;
  4603. fieldValue[TBody.SlotID.hairS] = isMaid;
  4604. fieldValue[TBody.SlotID.hairT] = isMaid;
  4605. fieldValue[TBody.SlotID.hairAho] = isMaid;
  4606. fieldValue[TBody.SlotID.chikubi] = isMaid;
  4607. fieldValue[TBody.SlotID.underhair] = isMaid;
  4608. fieldValue[TBody.SlotID.moza] = isMaid;
  4609. if (maid.body0.goSlot[19].m_strModelFileName.Contains("melala_body"))
  4610. {
  4611. fieldValue[TBody.SlotID.accHana] = isMaid;
  4612. }
  4613. maid.body0.FixMaskFlag();
  4614. maid.body0.FixVisibleFlag(false);
  4615. }
  4616. if (isLook[selectMaidIndex] != isLookn[selectMaidIndex])
  4617. {
  4618. isLookn[selectMaidIndex] = isLook[selectMaidIndex];
  4619. if (isLook[selectMaidIndex])
  4620. {
  4621. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4622. maid.body0.boHeadToCam = true;
  4623. maid.body0.boEyeToCam = true;
  4624. maid.body0.trsLookTarget = null;
  4625. }
  4626. else
  4627. {
  4628. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4629. maid.body0.boHeadToCam = true;
  4630. maid.body0.boEyeToCam = true;
  4631. }
  4632. }
  4633. if (isLook[selectMaidIndex])
  4634. {
  4635. if (maid.body0.offsetLookTarget.x != (double)lookY[selectMaidIndex])
  4636. {
  4637. int num = !isLock[selectMaidIndex] ? 1 : (lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  4638. maid.body0.offsetLookTarget =
  4639. num != 0
  4640. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  4641. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  4642. }
  4643. if (lookX[selectMaidIndex] != (double)lookXn[selectMaidIndex])
  4644. {
  4645. lookXn[selectMaidIndex] = lookX[selectMaidIndex];
  4646. maid.body0.offsetLookTarget = new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex]);
  4647. }
  4648. if (lookY[selectMaidIndex] != (double)lookYn[selectMaidIndex])
  4649. {
  4650. lookYn[selectMaidIndex] = lookY[selectMaidIndex];
  4651. int num = !isLock[selectMaidIndex] ? 1 : (lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  4652. maid.body0.offsetLookTarget =
  4653. num != 0
  4654. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  4655. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  4656. }
  4657. }
  4658. if (isHanten)
  4659. {
  4660. isHanten = false;
  4661. SetHanten(maid, selectMaidIndex);
  4662. }
  4663. if (hanten[selectMaidIndex] != hantenn[selectMaidIndex])
  4664. {
  4665. hantenn[selectMaidIndex] = hanten[selectMaidIndex];
  4666. isStop[selectMaidIndex] = true;
  4667. isLock[selectMaidIndex] = true;
  4668. isHanten = true;
  4669. }
  4670. if (voice1[selectMaidIndex] != voice1n[selectMaidIndex])
  4671. {
  4672. voice1n[selectMaidIndex] = voice1[selectMaidIndex];
  4673. if (voice1[selectMaidIndex])
  4674. {
  4675. zFlg[selectMaidIndex] = true;
  4676. xFlg[selectMaidIndex] = false;
  4677. voice2[selectMaidIndex] = false;
  4678. voice2n[selectMaidIndex] = false;
  4679. }
  4680. else
  4681. {
  4682. zFlg[selectMaidIndex] = false;
  4683. }
  4684. }
  4685. if (voice2[selectMaidIndex] != voice2n[selectMaidIndex])
  4686. {
  4687. voice2n[selectMaidIndex] = voice2[selectMaidIndex];
  4688. if (voice2[selectMaidIndex])
  4689. {
  4690. xFlg[selectMaidIndex] = true;
  4691. zFlg[selectMaidIndex] = false;
  4692. voice1[selectMaidIndex] = false;
  4693. voice1n[selectMaidIndex] = false;
  4694. }
  4695. else
  4696. {
  4697. xFlg[selectMaidIndex] = false;
  4698. }
  4699. }
  4700. for (int index = 0; index < maidCnt; ++index)
  4701. {
  4702. if (!maidArray[index].boMabataki)
  4703. {
  4704. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  4705. }
  4706. }
  4707. }
  4708. }
  4709. }
  4710. if (maidArray[selectMaidIndex] && maidArray[selectMaidIndex].Visible && (isF6 || okFlg && faceFlg))
  4711. {
  4712. if (isFaceInit)
  4713. {
  4714. if (!isDanceChu)
  4715. {
  4716. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  4717. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  4718. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  4719. Maid maid = maidArray[selectMaidIndex];
  4720. maidArray[selectMaidIndex].boMabataki = false;
  4721. morph.EyeMabataki = 0.0f;
  4722. isFaceInit = false;
  4723. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  4724. eyeclose = fieldValue2[(int)morph.hash["eyeclose"]];
  4725. eyeclose2 = fieldValue2[(int)morph.hash["eyeclose2"]];
  4726. eyeclose3 = fieldValue2[(int)morph.hash["eyeclose3"]];
  4727. eyeclose6 = fieldValue2[(int)morph.hash["eyeclose6"]];
  4728. hitomih = fieldValue1[(int)morph.hash["hitomih"]];
  4729. hitomis = fieldValue1[(int)morph.hash["hitomis"]];
  4730. mayuha = fieldValue1[(int)morph.hash["mayuha"]];
  4731. mayuup = fieldValue1[(int)morph.hash["mayuup"]];
  4732. mayuv = fieldValue1[(int)morph.hash["mayuv"]];
  4733. mayuvhalf = fieldValue1[(int)morph.hash["mayuvhalf"]];
  4734. moutha = fieldValue1[(int)morph.hash["moutha"]];
  4735. mouths = fieldValue1[(int)morph.hash["mouths"]];
  4736. mouthdw = fieldValue1[(int)morph.hash["mouthdw"]];
  4737. mouthup = fieldValue1[(int)morph.hash["mouthup"]];
  4738. tangout = fieldValue1[(int)morph.hash["tangout"]];
  4739. tangup = fieldValue1[(int)morph.hash["tangup"]];
  4740. eyebig = fieldValue1[(int)morph.hash["eyebig"]];
  4741. eyeclose5 = fieldValue2[(int)morph.hash["eyeclose5"]];
  4742. mayuw = fieldValue1[(int)morph.hash["mayuw"]];
  4743. mouthhe = fieldValue1[(int)morph.hash["mouthhe"]];
  4744. mouthc = fieldValue1[(int)morph.hash["mouthc"]];
  4745. mouthi = fieldValue1[(int)morph.hash["mouthi"]];
  4746. mouthuphalf = fieldValue1[(int)morph.hash["mouthuphalf"]];
  4747. try
  4748. {
  4749. tangopen = fieldValue1[(int)morph.hash["tangopen"]];
  4750. }
  4751. catch { }
  4752. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  4753. || maid.body0.GetMask(TBody.SlotID.onepiece);
  4754. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  4755. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  4756. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  4757. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  4758. || maid.body0.GetMask(TBody.SlotID.accHead)
  4759. || maid.body0.GetMask(TBody.SlotID.accKamiSubL)
  4760. || maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  4761. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  4762. || maid.body0.GetMask(TBody.SlotID.accKami_2_)
  4763. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  4764. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  4765. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  4766. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  4767. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  4768. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  4769. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  4770. isNamida = fieldValue1[(int)morph.hash["namida"]] > 0.0;
  4771. isTear1 = fieldValue1[(int)morph.hash["tear1"]] > 0.0;
  4772. isTear2 = fieldValue1[(int)morph.hash["tear2"]] > 0.0;
  4773. isTear3 = fieldValue1[(int)morph.hash["tear3"]] > 0.0;
  4774. isShock = fieldValue1[(int)morph.hash["shock"]] > 0.0;
  4775. isYodare = fieldValue1[(int)morph.hash["yodare"]] > 0.0;
  4776. isHoho = fieldValue1[(int)morph.hash["hoho"]] > 0.0;
  4777. isHoho2 = fieldValue1[(int)morph.hash["hoho2"]] > 0.0;
  4778. isHohos = fieldValue1[(int)morph.hash["hohos"]] > 0.0;
  4779. isHohol = fieldValue1[(int)morph.hash["hohol"]] > 0.0;
  4780. isToothoff = fieldValue1[(int)morph.hash["toothoff"]] > 0.0;
  4781. isNosefook = fieldValue1[(int)morph.hash["nosefook"]] > 0.0;
  4782. }
  4783. }
  4784. else
  4785. {
  4786. Maid maid = maidArray[selectMaidIndex];
  4787. if (!yotogiFlg && sceneLevel != 5 && sceneLevel != 3)
  4788. {
  4789. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  4790. {
  4791. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  4792. }
  4793. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  4794. {
  4795. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  4796. }
  4797. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  4798. {
  4799. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  4800. }
  4801. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  4802. {
  4803. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  4804. }
  4805. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  4806. {
  4807. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  4808. }
  4809. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  4810. {
  4811. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  4812. }
  4813. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  4814. {
  4815. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  4816. }
  4817. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  4818. {
  4819. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  4820. }
  4821. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  4822. {
  4823. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  4824. }
  4825. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  4826. {
  4827. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  4828. }
  4829. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  4830. {
  4831. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  4832. }
  4833. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  4834. {
  4835. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  4836. }
  4837. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  4838. {
  4839. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  4840. }
  4841. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  4842. {
  4843. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  4844. }
  4845. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  4846. {
  4847. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  4848. }
  4849. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  4850. {
  4851. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  4852. }
  4853. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  4854. {
  4855. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  4856. }
  4857. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  4858. {
  4859. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  4860. }
  4861. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  4862. {
  4863. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  4864. }
  4865. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  4866. {
  4867. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  4868. }
  4869. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  4870. {
  4871. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  4872. if (mekure1[selectMaidIndex])
  4873. {
  4874. maid.ItemChangeTemp("skirt", "めくれスカート");
  4875. maid.ItemChangeTemp("onepiece", "めくれスカート");
  4876. mekure2[selectMaidIndex] = false;
  4877. mekure2n[selectMaidIndex] = false;
  4878. }
  4879. else
  4880. {
  4881. ResetProp(maid, MPN.skirt);
  4882. ResetProp(maid, MPN.onepiece);
  4883. }
  4884. maid.AllProcPropSeqStart();
  4885. }
  4886. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  4887. {
  4888. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  4889. if (mekure2[selectMaidIndex])
  4890. {
  4891. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  4892. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  4893. mekure1[selectMaidIndex] = false;
  4894. mekure1n[selectMaidIndex] = false;
  4895. }
  4896. else
  4897. {
  4898. ResetProp(maid, MPN.skirt);
  4899. ResetProp(maid, MPN.onepiece);
  4900. }
  4901. maid.AllProcPropSeqStart();
  4902. }
  4903. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  4904. {
  4905. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  4906. if (zurasi[selectMaidIndex])
  4907. {
  4908. maid.ItemChangeTemp("panz", "パンツずらし");
  4909. maid.ItemChangeTemp("mizugi", "パンツずらし");
  4910. }
  4911. else
  4912. {
  4913. ResetProp(maid, MPN.panz);
  4914. ResetProp(maid, MPN.mizugi);
  4915. }
  4916. maid.AllProcPropSeqStart();
  4917. }
  4918. }
  4919. if (!isDanceChu)
  4920. {
  4921. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  4922. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  4923. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  4924. fieldValue2[(int)morph.hash["eyeclose"]] = eyeclose;
  4925. fieldValue2[(int)morph.hash["eyeclose2"]] = eyeclose2;
  4926. fieldValue2[(int)morph.hash["eyeclose3"]] = eyeclose3;
  4927. fieldValue2[(int)morph.hash["eyeclose6"]] = eyeclose6;
  4928. fieldValue1[(int)morph.hash["hitomih"]] = hitomih;
  4929. fieldValue1[(int)morph.hash["hitomis"]] = hitomis;
  4930. fieldValue1[(int)morph.hash["mayuha"]] = mayuha;
  4931. fieldValue1[(int)morph.hash["mayuup"]] = mayuup;
  4932. fieldValue1[(int)morph.hash["mayuv"]] = mayuv;
  4933. fieldValue1[(int)morph.hash["mayuvhalf"]] = mayuvhalf;
  4934. fieldValue1[(int)morph.hash["tangout"]] = tangout;
  4935. fieldValue1[(int)morph.hash["tangup"]] = tangup;
  4936. fieldValue1[(int)morph.hash["eyebig"]] = eyebig;
  4937. fieldValue2[(int)morph.hash["eyeclose5"]] = eyeclose5;
  4938. fieldValue1[(int)morph.hash["mayuw"]] = mayuw;
  4939. try
  4940. {
  4941. fieldValue1[(int)morph.hash["tangopen"]] = tangopen;
  4942. }
  4943. catch { }
  4944. if (!isDanceChu)
  4945. {
  4946. fieldValue1[(int)morph.hash["moutha"]] = moutha;
  4947. fieldValue1[(int)morph.hash["mouths"]] = mouths;
  4948. fieldValue1[(int)morph.hash["mouthdw"]] = mouthdw;
  4949. fieldValue1[(int)morph.hash["mouthup"]] = mouthup;
  4950. fieldValue1[(int)morph.hash["mouthhe"]] = mouthhe;
  4951. fieldValue1[(int)morph.hash["mouthc"]] = mouthc;
  4952. fieldValue1[(int)morph.hash["mouthi"]] = mouthi;
  4953. fieldValue1[(int)morph.hash["mouthuphalf"]] = mouthuphalf;
  4954. }
  4955. if (isNamida)
  4956. {
  4957. fieldValue1[(int)morph.hash["namida"]] = 1f;
  4958. }
  4959. else
  4960. {
  4961. fieldValue1[(int)morph.hash["namida"]] = 0.0f;
  4962. }
  4963. if (isTear1)
  4964. {
  4965. fieldValue1[(int)morph.hash["tear1"]] = 1f;
  4966. }
  4967. else
  4968. {
  4969. fieldValue1[(int)morph.hash["tear1"]] = 0.0f;
  4970. }
  4971. if (isTear2)
  4972. {
  4973. fieldValue1[(int)morph.hash["tear2"]] = 1f;
  4974. }
  4975. else
  4976. {
  4977. fieldValue1[(int)morph.hash["tear2"]] = 0.0f;
  4978. }
  4979. if (isTear3)
  4980. {
  4981. fieldValue1[(int)morph.hash["tear3"]] = 1f;
  4982. }
  4983. else
  4984. {
  4985. fieldValue1[(int)morph.hash["tear3"]] = 0.0f;
  4986. }
  4987. if (isShock)
  4988. {
  4989. fieldValue1[(int)morph.hash["shock"]] = 1f;
  4990. }
  4991. else
  4992. {
  4993. fieldValue1[(int)morph.hash["shock"]] = 0.0f;
  4994. }
  4995. if (isYodare)
  4996. {
  4997. fieldValue1[(int)morph.hash["yodare"]] = 1f;
  4998. }
  4999. else
  5000. {
  5001. fieldValue1[(int)morph.hash["yodare"]] = 0.0f;
  5002. }
  5003. if (isHoho)
  5004. {
  5005. fieldValue1[(int)morph.hash["hoho"]] = 0.5f;
  5006. }
  5007. else
  5008. {
  5009. fieldValue1[(int)morph.hash["hoho"]] = 0.0f;
  5010. }
  5011. if (isHoho2)
  5012. {
  5013. fieldValue1[(int)morph.hash["hoho2"]] = 0.5f;
  5014. }
  5015. else
  5016. {
  5017. fieldValue1[(int)morph.hash["hoho2"]] = 0.0f;
  5018. }
  5019. if (isHohos)
  5020. {
  5021. fieldValue1[(int)morph.hash["hohos"]] = 1f;
  5022. }
  5023. else
  5024. {
  5025. fieldValue1[(int)morph.hash["hohos"]] = 0.0f;
  5026. }
  5027. if (isHohol)
  5028. {
  5029. fieldValue1[(int)morph.hash["hohol"]] = 1f;
  5030. }
  5031. else
  5032. {
  5033. fieldValue1[(int)morph.hash["hohol"]] = 0.0f;
  5034. }
  5035. if (isToothoff)
  5036. {
  5037. fieldValue1[(int)morph.hash["toothoff"]] = 1f;
  5038. }
  5039. else
  5040. {
  5041. fieldValue1[(int)morph.hash["toothoff"]] = 0.0f;
  5042. }
  5043. morph.boNoseFook = isNosefook;
  5044. for (int index = 0; index < maidCnt; ++index)
  5045. {
  5046. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5047. }
  5048. }
  5049. }
  5050. }
  5051. if (isF6 && !okFlg && (!escFlg && Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Tab)))
  5052. {
  5053. bGui = !bGui;
  5054. }
  5055. if (isF6 && maidArray[0] != null && maidArray[0].Visible)
  5056. {
  5057. for (int index = 0; index < 999; ++index)
  5058. {
  5059. if (gDogu[index] != null)
  5060. {
  5061. gDogu[index].GetComponent<Renderer>().enabled = false;
  5062. gDogu[index].SetActive(false);
  5063. if (mDogu[index].del)
  5064. {
  5065. mDogu[index].del = false;
  5066. GraphicsUtils.Destroy(doguBObject[index]);
  5067. doguBObject.RemoveAt(index);
  5068. }
  5069. else if (mDogu[index].count > 0)
  5070. {
  5071. --mDogu[index].count;
  5072. if (doguBObject.Count > index && doguBObject[index] != null
  5073. && doguBObject[index].name.StartsWith("Particle/p"))
  5074. {
  5075. if (mDogu[index].count == 1)
  5076. {
  5077. doguBObject[index].SetActive(false);
  5078. }
  5079. if (mDogu[index].count == 0)
  5080. {
  5081. doguBObject[index].SetActive(true);
  5082. switch (doguBObject[index].name)
  5083. {
  5084. case "Particle/pLineY":
  5085. mDogu[index].count = 180;
  5086. break;
  5087. case "Particle/pLineP02":
  5088. mDogu[index].count = 115;
  5089. break;
  5090. case "Particle/pLine_act2":
  5091. mDogu[index].count = 90;
  5092. break;
  5093. case "Particle/pHeart01":
  5094. mDogu[index].count = 77;
  5095. break;
  5096. }
  5097. }
  5098. }
  5099. }
  5100. }
  5101. }
  5102. ikMode2 = !Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Shift)
  5103. ? (!Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Ctrl)
  5104. ? (!Input.GetKey(KeyCode.X) || !getModKeyPressing(modKey.Shift)
  5105. ? (!Input.GetKey(KeyCode.X)
  5106. ? (!Input.GetKey(KeyCode.Z)
  5107. ? (!Input.GetKey(KeyCode.C)
  5108. ? (!Input.GetKey(KeyCode.D) ? 0 : 15)
  5109. : 13)
  5110. : 10)
  5111. : 9)
  5112. : 14)
  5113. : 12)
  5114. : 11;
  5115. if (gBg != null)
  5116. {
  5117. if (!isCube3)
  5118. {
  5119. gBg.GetComponent<Renderer>().enabled = false;
  5120. gBg.SetActive(false);
  5121. }
  5122. else
  5123. {
  5124. if (ikMode2 > 0 && ikMode2 != 15)
  5125. {
  5126. gBg.GetComponent<Renderer>().enabled = true;
  5127. gBg.SetActive(true);
  5128. }
  5129. else
  5130. {
  5131. gBg.GetComponent<Renderer>().enabled = false;
  5132. gBg.SetActive(false);
  5133. }
  5134. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  5135. {
  5136. gBg.GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  5137. }
  5138. if (ikMode2 == 9 || ikMode2 == 14)
  5139. {
  5140. gBg.GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  5141. mBg.Update();
  5142. }
  5143. if (ikMode2 == 13)
  5144. {
  5145. gBg.GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  5146. mBg.Update();
  5147. }
  5148. if (ikMode2 == 13)
  5149. {
  5150. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && gBg)
  5151. {
  5152. mBg.ido = 5;
  5153. mBg.reset = true;
  5154. }
  5155. else
  5156. {
  5157. gBg.transform.position = bg.position;
  5158. gBg.transform.eulerAngles = bg.eulerAngles;
  5159. mBg.maid = bgObject;
  5160. mBg.ido = 5;
  5161. }
  5162. }
  5163. else if (ikMode2 == 11)
  5164. {
  5165. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && gBg)
  5166. {
  5167. mBg.ido = 3;
  5168. mBg.reset = true;
  5169. }
  5170. else
  5171. {
  5172. gBg.transform.position = bg.position;
  5173. gBg.transform.eulerAngles = bg.eulerAngles;
  5174. mBg.maid = bgObject;
  5175. mBg.ido = 3;
  5176. }
  5177. }
  5178. else if (ikMode2 == 12)
  5179. {
  5180. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && gBg)
  5181. {
  5182. mBg.ido = 2;
  5183. mBg.reset = true;
  5184. }
  5185. else
  5186. {
  5187. gBg.transform.position = bg.position;
  5188. gBg.transform.eulerAngles = bg.eulerAngles;
  5189. mBg.maid = bgObject;
  5190. mBg.ido = 2;
  5191. }
  5192. }
  5193. else if (ikMode2 == 10)
  5194. {
  5195. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && gBg)
  5196. {
  5197. mBg.ido = 1;
  5198. mBg.reset = true;
  5199. }
  5200. else
  5201. {
  5202. gBg.transform.position = bg.position;
  5203. gBg.transform.eulerAngles = bg.eulerAngles;
  5204. mBg.maid = bgObject;
  5205. mBg.ido = 1;
  5206. }
  5207. }
  5208. else if (ikMode2 == 9)
  5209. {
  5210. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && gBg)
  5211. {
  5212. mBg.ido = 4;
  5213. mBg.reset = true;
  5214. }
  5215. else
  5216. {
  5217. gBg.transform.position = bg.position;
  5218. gBg.transform.eulerAngles = bg.eulerAngles;
  5219. mBg.maid = bgObject;
  5220. mBg.ido = 4;
  5221. }
  5222. }
  5223. else if (ikMode2 == 14)
  5224. {
  5225. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && gBg)
  5226. {
  5227. mBg.ido = 6;
  5228. mBg.reset = true;
  5229. }
  5230. else
  5231. {
  5232. gBg.transform.position = bg.position;
  5233. gBg.transform.eulerAngles = bg.eulerAngles;
  5234. mBg.maid = bgObject;
  5235. mBg.ido = 6;
  5236. }
  5237. }
  5238. }
  5239. }
  5240. for (int index = 0; index < lightIndex.Count; ++index)
  5241. {
  5242. if (gLight[0] == null)
  5243. {
  5244. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5245. gLight[0].GetComponent<Renderer>().material =
  5246. new Material(Shader.Find("Transparent/Diffuse")) { color = new Color(0.5f, 0.5f, 1f, 0.8f) };
  5247. gLight[0].layer = 8;
  5248. gLight[0].GetComponent<Renderer>().enabled = false;
  5249. gLight[0].SetActive(false);
  5250. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  5251. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  5252. mLight[0].obj = gLight[0];
  5253. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  5254. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  5255. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  5256. mLight[0].ido = 1;
  5257. mLight[0].isScale = false;
  5258. }
  5259. if (gLight[index] != null)
  5260. {
  5261. if (!isCube4)
  5262. {
  5263. gLight[index].GetComponent<Renderer>().enabled = false;
  5264. gLight[index].SetActive(false);
  5265. }
  5266. else if (lightList[index].GetComponent<Light>().type == LightType.Spot
  5267. || lightList[index].GetComponent<Light>().type == LightType.Point)
  5268. {
  5269. if (ikMode2 > 0 && ikMode2 != 15)
  5270. {
  5271. gLight[index].GetComponent<Renderer>().enabled = true;
  5272. gLight[index].SetActive(true);
  5273. }
  5274. else
  5275. {
  5276. gLight[index].GetComponent<Renderer>().enabled = false;
  5277. gLight[index].SetActive(false);
  5278. mLight[index].isAlt = false;
  5279. }
  5280. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  5281. {
  5282. gLight[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  5283. if (mLight[index].isAlt)
  5284. {
  5285. gLight[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  5286. }
  5287. }
  5288. if (ikMode2 == 9 || ikMode2 == 14)
  5289. {
  5290. gLight[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  5291. mLight[index].Update();
  5292. }
  5293. if (ikMode2 == 13)
  5294. {
  5295. gLight[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  5296. mLight[index].Update();
  5297. }
  5298. if (ikMode2 == 13)
  5299. {
  5300. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && gLight[index])
  5301. {
  5302. mLight[index].ido = 15;
  5303. mLight[index].reset = true;
  5304. }
  5305. else
  5306. {
  5307. if (lightList[index].transform.localScale.x == 1.0)
  5308. {
  5309. lightList[index].transform.localScale =
  5310. new Vector3(lightRange[index], lightRange[index], lightRange[index]);
  5311. }
  5312. lightRange[index] = lightList[index].transform.localScale.x;
  5313. gLight[index].transform.position = lightList[index].transform.position;
  5314. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5315. mLight[index].maid = lightList[index];
  5316. mLight[index].ido = 15;
  5317. }
  5318. }
  5319. else if (ikMode2 == 11)
  5320. {
  5321. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && gLight[index])
  5322. {
  5323. mLight[index].ido = 3;
  5324. mLight[index].reset = true;
  5325. }
  5326. else
  5327. {
  5328. gLight[index].transform.position = lightList[index].transform.position;
  5329. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5330. lightX[index] = gLight[index].transform.eulerAngles.x;
  5331. lightY[index] = gLight[index].transform.eulerAngles.y;
  5332. mLight[index].maid = lightList[index];
  5333. mLight[index].ido = 3;
  5334. }
  5335. }
  5336. else if (ikMode2 == 12)
  5337. {
  5338. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && gLight[index])
  5339. {
  5340. mLight[index].ido = 2;
  5341. mLight[index].reset = true;
  5342. }
  5343. else
  5344. {
  5345. gLight[index].transform.position = lightList[index].transform.position;
  5346. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5347. mLight[index].maid = lightList[index];
  5348. mLight[index].ido = 2;
  5349. }
  5350. }
  5351. else if (ikMode2 == 10)
  5352. {
  5353. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && gLight[index])
  5354. {
  5355. mLight[index].ido = 1;
  5356. mLight[index].reset = true;
  5357. }
  5358. else
  5359. {
  5360. gLight[index].transform.position = lightList[index].transform.position;
  5361. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5362. mLight[index].maid = lightList[index];
  5363. mLight[index].ido = 1;
  5364. }
  5365. }
  5366. else if (ikMode2 == 9)
  5367. {
  5368. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && gLight[index])
  5369. {
  5370. mLight[index].ido = 4;
  5371. mLight[index].reset = true;
  5372. }
  5373. else
  5374. {
  5375. gLight[index].transform.position = lightList[index].transform.position;
  5376. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5377. lightX[index] = gLight[index].transform.eulerAngles.x;
  5378. lightY[index] = gLight[index].transform.eulerAngles.y;
  5379. mLight[index].maid = lightList[index];
  5380. mLight[index].ido = 4;
  5381. }
  5382. }
  5383. else if (ikMode2 == 14)
  5384. {
  5385. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && gLight[index])
  5386. {
  5387. mLight[index].ido = 6;
  5388. mLight[index].reset = true;
  5389. }
  5390. else
  5391. {
  5392. gLight[index].transform.position = lightList[index].transform.position;
  5393. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5394. lightX[index] = gLight[index].transform.eulerAngles.x;
  5395. lightY[index] = gLight[index].transform.eulerAngles.y;
  5396. mLight[index].maid = lightList[index];
  5397. mLight[index].ido = 6;
  5398. }
  5399. }
  5400. }
  5401. }
  5402. }
  5403. for (int index = 0; index < doguBObject.Count; ++index)
  5404. {
  5405. if (!isCube2)
  5406. {
  5407. gDogu[index].GetComponent<Renderer>().enabled = false;
  5408. gDogu[index].SetActive(false);
  5409. }
  5410. else
  5411. {
  5412. if (ikMode2 > 0)
  5413. {
  5414. gDogu[index].GetComponent<Renderer>().enabled = true;
  5415. gDogu[index].SetActive(true);
  5416. }
  5417. else
  5418. {
  5419. gDogu[index].GetComponent<Renderer>().enabled = false;
  5420. gDogu[index].SetActive(false);
  5421. mDogu[index].isAlt = false;
  5422. }
  5423. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  5424. {
  5425. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  5426. if (mDogu[index].isAlt)
  5427. {
  5428. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  5429. }
  5430. }
  5431. if (ikMode2 == 9 || ikMode2 == 14)
  5432. {
  5433. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  5434. mDogu[index].Update();
  5435. }
  5436. if (ikMode2 == 15)
  5437. {
  5438. gDogu[index].GetComponent<Renderer>().material.color = new Color(1f, 0.3f, 0.3f, 0.5f);
  5439. }
  5440. if (ikMode2 == 13)
  5441. {
  5442. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  5443. mDogu[index].Update();
  5444. }
  5445. if (ikMode2 == 13)
  5446. {
  5447. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && gDogu[index])
  5448. {
  5449. mDogu[index].ido = 5;
  5450. mDogu[index].reset = true;
  5451. }
  5452. else
  5453. {
  5454. gDogu[index].transform.position = doguBObject[index].transform.position;
  5455. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5456. mDogu[index].maid = doguBObject[index];
  5457. mDogu[index].ido = 5;
  5458. }
  5459. }
  5460. else if (ikMode2 == 11)
  5461. {
  5462. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && gDogu[index])
  5463. {
  5464. mDogu[index].ido = 3;
  5465. mDogu[index].reset = true;
  5466. }
  5467. else
  5468. {
  5469. gDogu[index].transform.position = doguBObject[index].transform.position;
  5470. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5471. mDogu[index].maid = doguBObject[index];
  5472. mDogu[index].ido = 3;
  5473. }
  5474. }
  5475. else if (ikMode2 == 12)
  5476. {
  5477. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && gDogu[index])
  5478. {
  5479. mDogu[index].ido = 2;
  5480. mDogu[index].reset = true;
  5481. }
  5482. else
  5483. {
  5484. gDogu[index].transform.position = doguBObject[index].transform.position;
  5485. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5486. mDogu[index].maid = doguBObject[index];
  5487. mDogu[index].ido = 2;
  5488. }
  5489. }
  5490. else if (ikMode2 == 10)
  5491. {
  5492. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && gDogu[index])
  5493. {
  5494. mDogu[index].ido = 1;
  5495. mDogu[index].reset = true;
  5496. }
  5497. else
  5498. {
  5499. gDogu[index].transform.position = doguBObject[index].transform.position;
  5500. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5501. mDogu[index].maid = doguBObject[index];
  5502. mDogu[index].maidArray = doguBObject.ToArray();
  5503. mDogu[index].mArray = ((IEnumerable<MouseDrag6>)mDogu).ToArray();
  5504. mDogu[index].ido = 1;
  5505. }
  5506. }
  5507. else if (ikMode2 == 9)
  5508. {
  5509. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && gDogu[index])
  5510. {
  5511. mDogu[index].ido = 4;
  5512. mDogu[index].reset = true;
  5513. }
  5514. else
  5515. {
  5516. gDogu[index].transform.position = doguBObject[index].transform.position;
  5517. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5518. mDogu[index].maid = doguBObject[index];
  5519. mDogu[index].ido = 4;
  5520. }
  5521. }
  5522. else if (ikMode2 == 14)
  5523. {
  5524. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && gDogu[index])
  5525. {
  5526. mDogu[index].ido = 6;
  5527. mDogu[index].reset = true;
  5528. }
  5529. else
  5530. {
  5531. gDogu[index].transform.position = doguBObject[index].transform.position;
  5532. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5533. mDogu[index].maid = doguBObject[index];
  5534. mDogu[index].ido = 6;
  5535. }
  5536. }
  5537. else if (ikMode2 == 15)
  5538. {
  5539. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 15 && gDogu[index])
  5540. {
  5541. mDogu[index].ido = 7;
  5542. mDogu[index].reset = true;
  5543. }
  5544. else
  5545. {
  5546. gDogu[index].transform.position = doguBObject[index].transform.position;
  5547. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5548. mDogu[index].maid = doguBObject[index];
  5549. mDogu[index].ido = 7;
  5550. }
  5551. }
  5552. }
  5553. }
  5554. ikModeOld2 = ikMode2;
  5555. Vector3 vector3_2 = mainCameraTransform.TransformDirection(Vector3.forward);
  5556. Vector3 vector3_3 = mainCameraTransform.TransformDirection(Vector3.right);
  5557. vector3_1 = mainCameraTransform.TransformDirection(Vector3.up);
  5558. if (Input.GetKeyDown(KeyCode.Y) && getModKeyPressing(modKey.Shift))
  5559. {
  5560. keyFlg = true;
  5561. --bgIndex;
  5562. if (bgIndex <= -1)
  5563. {
  5564. bgIndex = bgArray.Length - 1;
  5565. }
  5566. if (!moveBg)
  5567. {
  5568. bg.localScale = new Vector3(1f, 1f, 1f);
  5569. if (bgArray[bgIndex].Length == 36)
  5570. {
  5571. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5572. }
  5573. else
  5574. {
  5575. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5576. }
  5577. bgCombo.selectedItemIndex = bgIndex;
  5578. }
  5579. }
  5580. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.E))
  5581. {
  5582. keyFlg = true;
  5583. bg.localScale = new Vector3(bg.localScale.x * 1.005f, bg.localScale.y * 1.005f, bg.localScale.z * 1.005f);
  5584. }
  5585. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.D))
  5586. {
  5587. keyFlg = true;
  5588. bg.localScale = new Vector3(bg.localScale.x * 0.995f, bg.localScale.y * 0.995f, bg.localScale.z * 0.995f);
  5589. }
  5590. else if (Input.GetKey(KeyCode.Y) && Input.GetKeyDown(KeyCode.C))
  5591. {
  5592. keyFlg = true;
  5593. bg.localScale = new Vector3(1f, 1f, 1f);
  5594. }
  5595. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.J))
  5596. {
  5597. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  5598. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  5599. if (Input.GetKey(KeyCode.Y))
  5600. {
  5601. keyFlg = true;
  5602. }
  5603. }
  5604. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.L))
  5605. {
  5606. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  5607. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  5608. if (Input.GetKey(KeyCode.Y))
  5609. {
  5610. keyFlg = true;
  5611. }
  5612. }
  5613. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.J))
  5614. {
  5615. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  5616. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  5617. if (Input.GetKey(KeyCode.Y))
  5618. {
  5619. keyFlg = true;
  5620. }
  5621. }
  5622. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.L))
  5623. {
  5624. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  5625. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  5626. if (Input.GetKey(KeyCode.Y))
  5627. {
  5628. keyFlg = true;
  5629. }
  5630. }
  5631. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I))
  5632. {
  5633. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed;
  5634. if (Input.GetKey(KeyCode.Y))
  5635. {
  5636. keyFlg = true;
  5637. }
  5638. }
  5639. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K))
  5640. {
  5641. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed;
  5642. if (Input.GetKey(KeyCode.Y))
  5643. {
  5644. keyFlg = true;
  5645. }
  5646. }
  5647. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.J))
  5648. {
  5649. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  5650. if (Input.GetKey(KeyCode.Y))
  5651. {
  5652. keyFlg = true;
  5653. }
  5654. }
  5655. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.L))
  5656. {
  5657. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  5658. if (Input.GetKey(KeyCode.Y))
  5659. {
  5660. keyFlg = true;
  5661. }
  5662. }
  5663. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.Alpha0))
  5664. {
  5665. Vector3 position = bg.position;
  5666. position.y -= 0.015f * speed;
  5667. bg.localPosition = position;
  5668. if (Input.GetKey(KeyCode.Y))
  5669. {
  5670. keyFlg = true;
  5671. }
  5672. }
  5673. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.P))
  5674. {
  5675. Vector3 position = bg.position;
  5676. position.y += 0.015f * speed;
  5677. bg.localPosition = position;
  5678. if (Input.GetKey(KeyCode.Y))
  5679. {
  5680. keyFlg = true;
  5681. }
  5682. }
  5683. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.U))
  5684. {
  5685. bg.RotateAround(maidArray[0].transform.position, Vector3.up, 0.7f);
  5686. if (Input.GetKey(KeyCode.Y))
  5687. {
  5688. keyFlg = true;
  5689. }
  5690. }
  5691. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.O))
  5692. {
  5693. bg.RotateAround(maidArray[0].transform.position, Vector3.up, -0.7f);
  5694. if (Input.GetKey(KeyCode.Y))
  5695. {
  5696. keyFlg = true;
  5697. }
  5698. }
  5699. else if (Input.GetKeyUp(KeyCode.Y))
  5700. {
  5701. if (keyFlg)
  5702. {
  5703. keyFlg = false;
  5704. }
  5705. else
  5706. {
  5707. ++bgIndex;
  5708. if (bgIndex == bgArray.Length)
  5709. {
  5710. bgIndex = 0;
  5711. }
  5712. if (!moveBg)
  5713. {
  5714. bg.localScale = new Vector3(1f, 1f, 1f);
  5715. if (bgArray[bgIndex].Length == 36)
  5716. {
  5717. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5718. }
  5719. else
  5720. {
  5721. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5722. }
  5723. bgCombo.selectedItemIndex = bgIndex;
  5724. }
  5725. }
  5726. }
  5727. speed = !getModKeyPressing(modKey.Shift)
  5728. ? (float)(1.0 * Time.deltaTime * 60.0)
  5729. : (float)(5.0 * Time.deltaTime * 60.0);
  5730. if (!isVR || isVR2)
  5731. {
  5732. if (!isVR)
  5733. {
  5734. if (isBloom)
  5735. {
  5736. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  5737. fieldValue.enabled = true;
  5738. fieldValue.bloomIntensity = bloom1;
  5739. fieldValue.bloomBlurIterations = (int)bloom2;
  5740. fieldValue.bloomThreshholdColor = new Color(1f - bloom3, 1f - bloom4, 1f - bloom5);
  5741. fieldValue.hdr = !isBloomA ? Bloom.HDRBloomMode.Auto : Bloom.HDRBloomMode.On;
  5742. isBloom2 = true;
  5743. }
  5744. else if (isBloom2)
  5745. {
  5746. isBloom2 = false;
  5747. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  5748. fieldValue.enabled = true;
  5749. fieldValue.bloomIntensity = 2.85f;
  5750. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  5751. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  5752. fieldValue.bloomBlurIterations = 3;
  5753. }
  5754. if (isDepth)
  5755. {
  5756. depth_field_.enabled = true;
  5757. depth_field_.focalLength = depth1;
  5758. depth_field_.focalSize = depth2;
  5759. depth_field_.aperture = depth3;
  5760. depth_field_.maxBlurSize = depth4;
  5761. depth_field_.visualizeFocus = isDepthA;
  5762. }
  5763. else
  5764. {
  5765. if (depth_field_ == null)
  5766. {
  5767. depth_field_ = GameMain.Instance.MainCamera.gameObject.AddComponent<DepthOfFieldScatter>();
  5768. if (depth_field_.dofHdrShader == null)
  5769. {
  5770. depth_field_.dofHdrShader = Shader.Find("Hidden/Dof/DepthOfFieldHdr");
  5771. }
  5772. if (depth_field_.dx11BokehShader == null)
  5773. {
  5774. depth_field_.dx11BokehShader = Shader.Find("Hidden/Dof/DX11Dof");
  5775. }
  5776. if (depth_field_.dx11BokehTexture == null)
  5777. {
  5778. depth_field_.dx11BokehTexture = Resources.Load("Textures/hexShape") as Texture2D;
  5779. }
  5780. }
  5781. depth_field_.enabled = false;
  5782. }
  5783. if (isFog)
  5784. {
  5785. if (fog_.fogShader == null)
  5786. {
  5787. fog_.fogShader = Shader.Find("Hidden/GlobalFog");
  5788. }
  5789. fog_.enabled = true;
  5790. fog_.startDistance = fog1;
  5791. fog_.globalDensity = fog2;
  5792. fog_.heightScale = fog3;
  5793. fog_.height = fog4;
  5794. fog_.globalFogColor.r = fog5;
  5795. fog_.globalFogColor.g = fog6;
  5796. fog_.globalFogColor.b = fog7;
  5797. }
  5798. else
  5799. {
  5800. if (fog_ == null)
  5801. {
  5802. fog_ = GameMain.Instance.MainCamera.gameObject.AddComponent<GlobalFog>();
  5803. }
  5804. fog_.enabled = false;
  5805. }
  5806. if (isSepia)
  5807. {
  5808. if (sepia_tone_.shader == null)
  5809. {
  5810. sepia_tone_.shader = Shader.Find("Hidden/Sepiatone Effect");
  5811. }
  5812. sepia_tone_.enabled = true;
  5813. }
  5814. else
  5815. {
  5816. if (sepia_tone_ == null)
  5817. {
  5818. sepia_tone_ = GameMain.Instance.MainCamera.gameObject.AddComponent<SepiaToneEffect>();
  5819. }
  5820. sepia_tone_.enabled = false;
  5821. }
  5822. if (bokashi > 0.0)
  5823. {
  5824. Blur component = GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>();
  5825. component.enabled = true;
  5826. component.blurSize = bokashi / 10f;
  5827. component.blurIterations = 0;
  5828. component.downsample = 0;
  5829. if (bokashi > 3.0)
  5830. {
  5831. component.blurSize -= 0.3f;
  5832. component.blurIterations = 1;
  5833. component.downsample = 1;
  5834. }
  5835. }
  5836. else
  5837. {
  5838. GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>().enabled = false;
  5839. }
  5840. if (kamiyure > 0.0)
  5841. {
  5842. for (int index1 = 0; index1 < maidCnt; ++index1)
  5843. {
  5844. Maid maid = maidArray[index1];
  5845. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  5846. {
  5847. if (maid.body0.goSlot[index2].obj != null)
  5848. {
  5849. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  5850. if (component != null && component.enabled)
  5851. {
  5852. component.m_Gravity = new Vector3(softG.x * 5f, softG.y * 5f + kamiyure, softG.z * 5f);
  5853. }
  5854. }
  5855. List<THair1> fieldValue =
  5856. GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
  5857. for (int index3 = 0; index3 < fieldValue.Count; ++index3)
  5858. {
  5859. fieldValue[index3].SoftG = new Vector3(softG.x, softG.y + kamiyure, softG.z);
  5860. }
  5861. }
  5862. }
  5863. }
  5864. if (isBlur)
  5865. {
  5866. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  5867. component.mode = Vignetting.AberrationMode.Simple;
  5868. component.intensity = blur1;
  5869. component.chromaticAberration = blur4;
  5870. component.blur = blur2;
  5871. component.blurSpread = blur3;
  5872. component.enabled = true;
  5873. isBlur2 = true;
  5874. }
  5875. else if (isBlur2)
  5876. {
  5877. isBlur2 = false;
  5878. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  5879. component.mode = Vignetting.AberrationMode.Simple;
  5880. component.intensity = -3.98f;
  5881. component.chromaticAberration = -0.75f;
  5882. component.axialAberration = 1.18f;
  5883. component.blurSpread = 4.19f;
  5884. component.luminanceDependency = 0.494f;
  5885. component.blurDistance = 1.71f;
  5886. component.enabled = false;
  5887. }
  5888. }
  5889. if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.I))
  5890. {
  5891. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  5892. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5893. }
  5894. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.K))
  5895. {
  5896. if (GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  5897. {
  5898. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  5899. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5900. }
  5901. }
  5902. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.J))
  5903. {
  5904. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  5905. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5906. }
  5907. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.L))
  5908. {
  5909. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  5910. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5911. }
  5912. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  5913. {
  5914. GameMain.Instance.MainLight.Reset();
  5915. GameMain.Instance.MainLight.SetIntensity(0.95f);
  5916. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  5917. lightIndex[0] = 0;
  5918. lightColorR[0] = 1f;
  5919. lightColorG[0] = 1f;
  5920. lightColorB[0] = 1f;
  5921. lightX[0] = 40f;
  5922. lightY[0] = 180f;
  5923. lightAkarusa[0] = 0.95f;
  5924. lightKage[0] = 0.098f;
  5925. lightRange[0] = 50f;
  5926. bgObject.SetActive(true);
  5927. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  5928. isIdx1 = false;
  5929. isIdx2 = false;
  5930. isIdx3 = false;
  5931. isIdx4 = false;
  5932. }
  5933. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus) && getModKeyPressing(modKey.Shift))
  5934. {
  5935. List<float> lightColorR;
  5936. (lightColorR = this.lightColorR)[0] = lightColorR[0] + 0.01f;
  5937. if (this.lightColorR[0] > 1.0)
  5938. {
  5939. this.lightColorR[0] = 1f;
  5940. }
  5941. if (lightIndex[0] != 3)
  5942. {
  5943. GameMain.Instance.MainLight.GetComponent<Light>().color =
  5944. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  5945. }
  5946. else
  5947. {
  5948. mainCamera.GetComponent<Camera>().backgroundColor =
  5949. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  5950. }
  5951. }
  5952. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote) && getModKeyPressing(modKey.Shift))
  5953. {
  5954. List<float> lightColorG;
  5955. (lightColorG = this.lightColorG)[0] = lightColorG[0] + 0.01f;
  5956. if (this.lightColorG[0] > 1.0)
  5957. {
  5958. this.lightColorG[0] = 1f;
  5959. }
  5960. if (lightIndex[0] != 3)
  5961. {
  5962. GameMain.Instance.MainLight.GetComponent<Light>().color =
  5963. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  5964. }
  5965. else
  5966. {
  5967. mainCamera.GetComponent<Camera>().backgroundColor =
  5968. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  5969. }
  5970. }
  5971. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket) && getModKeyPressing(modKey.Shift))
  5972. {
  5973. List<float> lightColorB;
  5974. (lightColorB = this.lightColorB)[0] = lightColorB[0] + 0.01f;
  5975. if (this.lightColorB[0] > 1.0)
  5976. {
  5977. this.lightColorB[0] = 1f;
  5978. }
  5979. if (lightIndex[0] != 3)
  5980. {
  5981. GameMain.Instance.MainLight.GetComponent<Light>().color =
  5982. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  5983. }
  5984. else
  5985. {
  5986. mainCamera.GetComponent<Camera>().backgroundColor =
  5987. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  5988. }
  5989. }
  5990. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus))
  5991. {
  5992. List<float> lightColorR;
  5993. (lightColorR = this.lightColorR)[0] = lightColorR[0] - 0.01f;
  5994. if (this.lightColorR[0] < 0.0)
  5995. {
  5996. this.lightColorR[0] = 0.0f;
  5997. }
  5998. if (lightIndex[0] != 3)
  5999. {
  6000. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6001. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6002. }
  6003. else
  6004. {
  6005. mainCamera.GetComponent<Camera>().backgroundColor =
  6006. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6007. }
  6008. }
  6009. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6010. {
  6011. List<float> lightColorG;
  6012. (lightColorG = this.lightColorG)[0] = lightColorG[0] - 0.01f;
  6013. if (this.lightColorG[0] < 0.0)
  6014. {
  6015. this.lightColorG[0] = 0.0f;
  6016. }
  6017. if (lightIndex[0] != 3)
  6018. {
  6019. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6020. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6021. }
  6022. else
  6023. {
  6024. mainCamera.GetComponent<Camera>().backgroundColor =
  6025. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6026. }
  6027. }
  6028. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6029. {
  6030. List<float> lightColorB;
  6031. (lightColorB = this.lightColorB)[0] = lightColorB[0] - 0.01f;
  6032. if (this.lightColorB[0] < 0.0)
  6033. {
  6034. this.lightColorB[0] = 0.0f;
  6035. }
  6036. if (lightIndex[0] != 3)
  6037. {
  6038. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6039. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6040. }
  6041. else
  6042. {
  6043. mainCamera.GetComponent<Camera>().backgroundColor =
  6044. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6045. }
  6046. }
  6047. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha0))
  6048. {
  6049. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.12f * Time.deltaTime;
  6050. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  6051. }
  6052. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.P))
  6053. {
  6054. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.12f * Time.deltaTime;
  6055. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  6056. }
  6057. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha9))
  6058. {
  6059. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  6060. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  6061. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  6062. }
  6063. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.O))
  6064. {
  6065. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  6066. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  6067. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  6068. }
  6069. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.U))
  6070. {
  6071. List<int> lightIndex;
  6072. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6073. if (this.lightIndex[0] == 4)
  6074. {
  6075. this.lightIndex[0] = 0;
  6076. }
  6077. lightColorR[0] = 1f;
  6078. lightColorG[0] = 1f;
  6079. lightColorB[0] = 1f;
  6080. lightX[0] = 40f;
  6081. lightY[0] = 180f;
  6082. lightAkarusa[0] = 0.95f;
  6083. lightKage[0] = 0.098f;
  6084. lightRange[0] = 50f;
  6085. GameMain.Instance.MainLight.Reset();
  6086. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6087. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  6088. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  6089. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6090. if (this.lightIndex[0] == 0)
  6091. {
  6092. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6093. bgObject.SetActive(true);
  6094. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  6095. }
  6096. else if (this.lightIndex[0] == 1)
  6097. {
  6098. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6099. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6100. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  6101. if (gLight[0] == null)
  6102. {
  6103. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  6104. gLight[0].GetComponent<Renderer>().material =
  6105. new Material(Shader.Find("Transparent/Diffuse")) { color = new Color(0.5f, 0.5f, 1f, 0.8f) };
  6106. gLight[0].layer = 8;
  6107. gLight[0].GetComponent<Renderer>().enabled = false;
  6108. gLight[0].SetActive(false);
  6109. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  6110. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  6111. mLight[0].obj = gLight[0];
  6112. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  6113. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  6114. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  6115. mLight[0].ido = 1;
  6116. mLight[0].isScale = false;
  6117. }
  6118. }
  6119. else if (this.lightIndex[0] == 2)
  6120. {
  6121. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  6122. }
  6123. else if (this.lightIndex[0] == 3)
  6124. {
  6125. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6126. mainCamera.GetComponent<Camera>().backgroundColor =
  6127. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6128. bgObject.SetActive(false);
  6129. }
  6130. isIdx1 = false;
  6131. isIdx2 = false;
  6132. isIdx3 = false;
  6133. isIdx4 = false;
  6134. }
  6135. }
  6136. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Insert))
  6137. {
  6138. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  6139. }
  6140. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Delete))
  6141. {
  6142. if (GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  6143. {
  6144. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  6145. }
  6146. }
  6147. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Home))
  6148. {
  6149. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  6150. }
  6151. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.End))
  6152. {
  6153. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  6154. }
  6155. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  6156. {
  6157. GameMain.Instance.MainLight.Reset();
  6158. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6159. }
  6160. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageUp))
  6161. {
  6162. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.1f * Time.deltaTime;
  6163. }
  6164. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageDown))
  6165. {
  6166. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.1f * Time.deltaTime;
  6167. }
  6168. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6169. {
  6170. if (lightIndex[0] == 1)
  6171. {
  6172. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  6173. }
  6174. else
  6175. {
  6176. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  6177. }
  6178. }
  6179. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6180. {
  6181. if (lightIndex[0] == 1)
  6182. {
  6183. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  6184. }
  6185. else
  6186. {
  6187. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  6188. }
  6189. }
  6190. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.Minus))
  6191. {
  6192. List<int> lightIndex;
  6193. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6194. if (this.lightIndex[0] == 3)
  6195. {
  6196. this.lightIndex[0] = 0;
  6197. }
  6198. GameMain.Instance.MainLight.Reset();
  6199. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6200. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  6201. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  6202. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6203. if (this.lightIndex[0] == 0)
  6204. {
  6205. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6206. }
  6207. else if (this.lightIndex[0] == 1)
  6208. {
  6209. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6210. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  6211. }
  6212. else if (this.lightIndex[0] == 2)
  6213. {
  6214. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  6215. }
  6216. }
  6217. for (int index = 0; index < lightList.Count; ++index)
  6218. {
  6219. if (index > 0)
  6220. {
  6221. lightList[index].GetComponent<Light>().color =
  6222. new Color(lightColorR[index], lightColorG[index], lightColorB[index]);
  6223. lightList[index].GetComponent<Light>().intensity = lightAkarusa[index];
  6224. lightList[index].GetComponent<Light>().spotAngle = lightRange[index];
  6225. lightList[index].GetComponent<Light>().range = lightRange[index] / 5f;
  6226. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Shift)))
  6227. {
  6228. lightList[index].transform.eulerAngles = new Vector3(lightX[index], lightY[index], 18f);
  6229. }
  6230. }
  6231. else
  6232. {
  6233. GameMain.Instance.MainLight.SetIntensity(lightAkarusa[0]);
  6234. GameMain.Instance.MainLight.GetComponent<Light>().shadowStrength = lightKage[0];
  6235. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Shift)))
  6236. {
  6237. GameMain.Instance.MainLight.SetRotation(new Vector3(lightX[0], lightY[0], 18f));
  6238. }
  6239. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = lightRange[index];
  6240. GameMain.Instance.MainLight.GetComponent<Light>().range = lightRange[index] / 5f;
  6241. if (lightIndex[index] != 3)
  6242. {
  6243. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6244. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6245. }
  6246. else
  6247. {
  6248. mainCamera.GetComponent<Camera>().backgroundColor =
  6249. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6250. }
  6251. }
  6252. }
  6253. }
  6254. if (isF6S)
  6255. {
  6256. if (maidCnt < 1)
  6257. {
  6258. ++F6cnt;
  6259. }
  6260. if (F6cnt > 10)
  6261. {
  6262. maidCnt = 1;
  6263. F6cnt = 0;
  6264. }
  6265. for (int index1 = 0; index1 < maidCnt; ++index1)
  6266. {
  6267. if (maidArray[index1] && maidArray[index1].Visible && maidArray[index1].body0.isLoadedBody)
  6268. {
  6269. Maid maid = maidArray[index1];
  6270. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6271. {
  6272. if (maid.body0.goSlot[index2].bonehair.bodyhit != null
  6273. && maid.body0.goSlot[index2].bonehair.bodyhit.spherelist.Count == 17 && (index2 == 3 || index2 == 4))
  6274. {
  6275. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine", true);
  6276. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine0a", true);
  6277. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1", true);
  6278. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1a", true);
  6279. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Pelvis", true);
  6280. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Hand", true);
  6281. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L UpperArm", true);
  6282. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Forearm", true);
  6283. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Hand", true);
  6284. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R UpperArm", true);
  6285. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Forearm", true);
  6286. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Foot", true);
  6287. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Thigh", true);
  6288. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Calf", true);
  6289. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Foot", true);
  6290. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Thigh", true);
  6291. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Calf", true);
  6292. List<THitSphere> spherelist = maid.body0.goSlot[index2].bonehair.bodyhit.spherelist;
  6293. THitSphere thitSphere1 = new THitSphere();
  6294. THitSphere thitSphere2 = spherelist[0];
  6295. THitSphere thitSphere3 = new THitSphere
  6296. {
  6297. wv = thitSphere2.wv,
  6298. len = thitSphere2.len * 0.8f,
  6299. t = thitSphere2.t,
  6300. vs = thitSphere2.vs
  6301. };
  6302. thitSphere3.vs.y -= 0.04f;
  6303. thitSphere3.vs.x += 0.05f;
  6304. spherelist.Add(thitSphere3);
  6305. THitSphere thitSphere4 = new THitSphere
  6306. {
  6307. len = 0.09f,
  6308. t = transform4
  6309. };
  6310. thitSphere4.vs.z += 0.04f;
  6311. thitSphere4.vs.x -= 0.04f;
  6312. thitSphere4.vs.y -= 0.01f;
  6313. spherelist.Add(thitSphere4);
  6314. THitSphere thitSphere5 = new THitSphere
  6315. {
  6316. len = 0.09f,
  6317. t = transform4
  6318. };
  6319. thitSphere5.vs.z -= 0.04f;
  6320. thitSphere5.vs.x -= 0.04f;
  6321. thitSphere5.vs.y -= 0.01f;
  6322. spherelist.Add(thitSphere5);
  6323. THitSphere thitSphere6 = new THitSphere
  6324. {
  6325. len = 0.09f,
  6326. t = transform3
  6327. };
  6328. thitSphere6.vs.z += 0.035f;
  6329. spherelist.Add(thitSphere6);
  6330. THitSphere thitSphere7 = new THitSphere
  6331. {
  6332. len = 0.09f,
  6333. t = transform3
  6334. };
  6335. thitSphere7.vs.z -= 0.035f;
  6336. spherelist.Add(thitSphere7);
  6337. THitSphere thitSphere8 = new THitSphere
  6338. {
  6339. len = 0.08f,
  6340. t = transform2
  6341. };
  6342. thitSphere8.vs.z += 0.035f;
  6343. spherelist.Add(thitSphere8);
  6344. THitSphere thitSphere9 = new THitSphere
  6345. {
  6346. len = 0.08f,
  6347. t = transform2
  6348. };
  6349. thitSphere9.vs.z -= 0.035f;
  6350. spherelist.Add(thitSphere9);
  6351. THitSphere thitSphere10 = new THitSphere
  6352. {
  6353. len = 0.09f,
  6354. t = transform1
  6355. };
  6356. thitSphere10.vs.z += 0.04f;
  6357. thitSphere10.vs.y -= 0.02f;
  6358. spherelist.Add(thitSphere10);
  6359. THitSphere thitSphere11 = new THitSphere
  6360. {
  6361. len = 0.09f,
  6362. t = transform1
  6363. };
  6364. thitSphere11.vs.z -= 0.04f;
  6365. thitSphere11.vs.y -= 0.02f;
  6366. spherelist.Add(thitSphere11);
  6367. THitSphere thitSphere12 = new THitSphere
  6368. {
  6369. len = 0.11f,
  6370. t = transform5
  6371. };
  6372. thitSphere12.vs.z += 0.05f;
  6373. thitSphere12.vs.y -= 0.03f;
  6374. spherelist.Add(thitSphere12);
  6375. THitSphere thitSphere13 = new THitSphere
  6376. {
  6377. len = 0.11f,
  6378. t = transform5
  6379. };
  6380. thitSphere13.vs.z -= 0.05f;
  6381. thitSphere13.vs.y -= 0.03f;
  6382. spherelist.Add(thitSphere13);
  6383. THitSphere thitSphere14 = new THitSphere
  6384. {
  6385. len = 0.11f,
  6386. t = transform10
  6387. };
  6388. thitSphere14.vs.x -= 0.03f;
  6389. spherelist.Add(thitSphere14);
  6390. THitSphere thitSphere15 = new THitSphere
  6391. {
  6392. len = 0.11f,
  6393. t = transform11
  6394. };
  6395. thitSphere15.vs.x -= 0.03f;
  6396. spherelist.Add(thitSphere15);
  6397. spherelist.Add(new THitSphere() { len = 0.05f, t = transform6 });
  6398. spherelist.Add(new THitSphere() { len = 0.05f, t = transform8 });
  6399. THitSphere thitSphere16 = new THitSphere
  6400. {
  6401. len = 0.05f,
  6402. t = transform7
  6403. };
  6404. thitSphere16.vs.x -= 0.04f;
  6405. spherelist.Add(thitSphere16);
  6406. THitSphere thitSphere17 = new THitSphere
  6407. {
  6408. len = 0.05f,
  6409. t = transform9
  6410. };
  6411. thitSphere17.vs.x -= 0.04f;
  6412. spherelist.Add(thitSphere17);
  6413. THitSphere thitSphere18 = new THitSphere
  6414. {
  6415. len = 0.05f,
  6416. t = transform7
  6417. };
  6418. thitSphere18.vs.x -= 0.08f;
  6419. spherelist.Add(thitSphere18);
  6420. THitSphere thitSphere19 = new THitSphere
  6421. {
  6422. len = 0.05f,
  6423. t = transform9
  6424. };
  6425. thitSphere19.vs.x -= 0.08f;
  6426. spherelist.Add(thitSphere19);
  6427. THitSphere thitSphere20 = new THitSphere
  6428. {
  6429. len = 0.05f,
  6430. t = transform7
  6431. };
  6432. thitSphere20.vs.x -= 0.12f;
  6433. spherelist.Add(thitSphere20);
  6434. THitSphere thitSphere21 = new THitSphere
  6435. {
  6436. len = 0.05f,
  6437. t = transform9
  6438. };
  6439. thitSphere21.vs.x -= 0.12f;
  6440. spherelist.Add(thitSphere21);
  6441. THitSphere thitSphere22 = new THitSphere
  6442. {
  6443. len = 0.05f,
  6444. t = transform7
  6445. };
  6446. thitSphere22.vs.x -= 0.16f;
  6447. spherelist.Add(thitSphere22);
  6448. THitSphere thitSphere23 = new THitSphere
  6449. {
  6450. len = 0.05f,
  6451. t = transform9
  6452. };
  6453. thitSphere23.vs.x -= 0.16f;
  6454. spherelist.Add(thitSphere23);
  6455. }
  6456. }
  6457. }
  6458. }
  6459. }
  6460. }
  6461. }
  6462. public string SerializeScene()
  6463. {
  6464. string str1 = "";
  6465. string str2 = "";
  6466. DateTime now = DateTime.Now;
  6467. string str3 = now.Year.ToString() + "/" + now.Month.ToString("00") + "/" + now.Day.ToString("00") + " "
  6468. + now.Hour.ToString("00") + ":" + now.Minute.ToString("00");
  6469. if (!quickSaveFlag)
  6470. {
  6471. date[0] = str3;
  6472. ninzu[0] = maidCnt.ToString() + "人";
  6473. }
  6474. string[] strArray1 = new string[7]
  6475. {
  6476. str2 + str3 + "," + maidCnt + "," + bgArray[bgIndex].Replace("_", " ") + ",",
  6477. bg.localEulerAngles.x.ToString("0.###"), ",", null, null, null, null
  6478. };
  6479. string[] strArray2 = strArray1;
  6480. int index1 = 3;
  6481. float num = bg.localEulerAngles.y;
  6482. string str4 = num.ToString("0.###");
  6483. strArray2[index1] = str4;
  6484. strArray1[4] = ",";
  6485. string[] strArray3 = strArray1;
  6486. int index2 = 5;
  6487. num = bg.localEulerAngles.z;
  6488. string str5 = num.ToString("0.###");
  6489. strArray3[index2] = str5;
  6490. strArray1[6] = ",";
  6491. string str6 = string.Concat(strArray1);
  6492. string[] strArray4 = new string[7];
  6493. strArray4[0] = str6;
  6494. string[] strArray5 = strArray4;
  6495. int index3 = 1;
  6496. num = bg.position.x;
  6497. string str7 = num.ToString("0.###");
  6498. strArray5[index3] = str7;
  6499. strArray4[2] = ",";
  6500. string[] strArray6 = strArray4;
  6501. int index4 = 3;
  6502. num = bg.position.y;
  6503. string str8 = num.ToString("0.###");
  6504. strArray6[index4] = str8;
  6505. strArray4[4] = ",";
  6506. string[] strArray7 = strArray4;
  6507. int index5 = 5;
  6508. num = bg.position.z;
  6509. string str9 = num.ToString("0.###");
  6510. strArray7[index5] = str9;
  6511. strArray4[6] = ",";
  6512. string str10 = string.Concat(strArray4);
  6513. string[] strArray8 = new string[7];
  6514. strArray8[0] = str10;
  6515. string[] strArray9 = strArray8;
  6516. int index6 = 1;
  6517. num = bg.localScale.x;
  6518. string str11 = num.ToString("0.###");
  6519. strArray9[index6] = str11;
  6520. strArray8[2] = ",";
  6521. string[] strArray10 = strArray8;
  6522. int index7 = 3;
  6523. num = bg.localScale.y;
  6524. string str12 = num.ToString("0.###");
  6525. strArray10[index7] = str12;
  6526. strArray8[4] = ",";
  6527. string[] strArray11 = strArray8;
  6528. int index8 = 5;
  6529. num = bg.localScale.z;
  6530. string str13 = num.ToString("0.###");
  6531. strArray11[index8] = str13;
  6532. strArray8[6] = ",";
  6533. string str14 = string.Concat(strArray8) + softG.x.ToString("0.###") + "," + softG.y.ToString("0.###") + ","
  6534. + softG.z.ToString("0.###") + "," + bgmIndex + "," + effectIndex + ","
  6535. + lightIndex[0] + "," + lightColorR[0] + "," + lightColorG[0] + ","
  6536. + lightColorB[0] + ",";
  6537. string[] strArray12 = new string[7];
  6538. strArray12[0] = str14;
  6539. string[] strArray13 = strArray12;
  6540. int index9 = 1;
  6541. num = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6542. string str15 = num.ToString("0.###");
  6543. strArray13[index9] = str15;
  6544. strArray12[2] = ",";
  6545. string[] strArray14 = strArray12;
  6546. int index10 = 3;
  6547. num = GameMain.Instance.MainLight.transform.eulerAngles.y;
  6548. string str16 = num.ToString("0.###");
  6549. strArray14[index10] = str16;
  6550. strArray12[4] = ",";
  6551. string[] strArray15 = strArray12;
  6552. int index11 = 5;
  6553. num = GameMain.Instance.MainLight.transform.eulerAngles.z;
  6554. string str17 = num.ToString("0.###");
  6555. strArray15[index11] = str17;
  6556. strArray12[6] = ",";
  6557. string str18 = string.Concat(strArray12) + GameMain.Instance.MainLight.GetComponent<Light>().intensity + ","
  6558. + GameMain.Instance.MainLight.GetComponent<Light>().spotAngle + ","
  6559. + GameMain.Instance.MainLight.GetComponent<Light>().range + ","
  6560. + mainCamera.GetTargetPos().x + "," + mainCamera.GetTargetPos().y + ","
  6561. + mainCamera.GetTargetPos().z + "," + mainCamera.GetDistance() + ",";
  6562. string[] strArray16 = new string[7];
  6563. strArray16[0] = str18;
  6564. string[] strArray17 = strArray16;
  6565. int index12 = 1;
  6566. num = mainCamera.transform.eulerAngles.x;
  6567. string str19 = num.ToString("0.###");
  6568. strArray17[index12] = str19;
  6569. strArray16[2] = ",";
  6570. string[] strArray18 = strArray16;
  6571. int index13 = 3;
  6572. num = mainCamera.transform.eulerAngles.y;
  6573. string str20 = num.ToString("0.###");
  6574. strArray18[index13] = str20;
  6575. strArray16[4] = ",";
  6576. string[] strArray19 = strArray16;
  6577. int index14 = 5;
  6578. num = mainCamera.transform.eulerAngles.z;
  6579. string str21 = num.ToString("0.###");
  6580. strArray19[index14] = str21;
  6581. strArray16[6] = ",";
  6582. string str22 = string.Concat(strArray16);
  6583. inName = inName.Replace("_", " ").Replace(",", " ");
  6584. inText = inText.Replace("_", " ").Replace(",", " ");
  6585. string str23;
  6586. if (isMessage)
  6587. {
  6588. str23 = str22 + "1," + inName + "," + inText.Replace("\n", "&kaigyo");
  6589. }
  6590. else
  6591. {
  6592. str23 = str22 + "0,,";
  6593. }
  6594. if (doguObject.Count > 0)
  6595. {
  6596. string str24 = str23 + "," + doguArray[doguIndex[doguSelectIndex]].Replace("_", " ") + ",";
  6597. string[] strArray20 = new string[7];
  6598. strArray20[0] = str24;
  6599. string[] strArray21 = strArray20;
  6600. int index15 = 1;
  6601. num = doguObject[doguSelectIndex].transform.localEulerAngles.x;
  6602. string str25 = num.ToString("0.###");
  6603. strArray21[index15] = str25;
  6604. strArray20[2] = ",";
  6605. string[] strArray22 = strArray20;
  6606. int index16 = 3;
  6607. num = doguObject[doguSelectIndex].transform.localEulerAngles.y;
  6608. string str26 = num.ToString("0.###");
  6609. strArray22[index16] = str26;
  6610. strArray20[4] = ",";
  6611. string[] strArray23 = strArray20;
  6612. int index17 = 5;
  6613. num = doguObject[doguSelectIndex].transform.localEulerAngles.z;
  6614. string str27 = num.ToString("0.###");
  6615. strArray23[index17] = str27;
  6616. strArray20[6] = ",";
  6617. string str28 = string.Concat(strArray20);
  6618. string[] strArray24 = new string[7];
  6619. strArray24[0] = str28;
  6620. string[] strArray25 = strArray24;
  6621. int index18 = 1;
  6622. num = doguObject[doguSelectIndex].transform.position.x;
  6623. string str29 = num.ToString("0.###");
  6624. strArray25[index18] = str29;
  6625. strArray24[2] = ",";
  6626. string[] strArray26 = strArray24;
  6627. int index19 = 3;
  6628. num = doguObject[doguSelectIndex].transform.position.y;
  6629. string str30 = num.ToString("0.###");
  6630. strArray26[index19] = str30;
  6631. strArray24[4] = ",";
  6632. string[] strArray27 = strArray24;
  6633. int index20 = 5;
  6634. num = doguObject[doguSelectIndex].transform.position.z;
  6635. string str31 = num.ToString("0.###");
  6636. strArray27[index20] = str31;
  6637. strArray24[6] = ",";
  6638. string str32 = string.Concat(strArray24);
  6639. string[] strArray28 = new string[6];
  6640. strArray28[0] = str32;
  6641. string[] strArray29 = strArray28;
  6642. int index21 = 1;
  6643. num = doguObject[doguSelectIndex].transform.localScale.x;
  6644. string str33 = num.ToString("0.###");
  6645. strArray29[index21] = str33;
  6646. strArray28[2] = ",";
  6647. string[] strArray30 = strArray28;
  6648. int index22 = 3;
  6649. num = doguObject[doguSelectIndex].transform.localScale.y;
  6650. string str34 = num.ToString("0.###");
  6651. strArray30[index22] = str34;
  6652. strArray28[4] = ",";
  6653. string[] strArray31 = strArray28;
  6654. int index23 = 5;
  6655. num = doguObject[doguSelectIndex].transform.localScale.z;
  6656. string str35 = num.ToString("0.###");
  6657. strArray31[index23] = str35;
  6658. str23 = string.Concat(strArray28);
  6659. }
  6660. string str36 = str23 + "_";
  6661. for (int i = 0; i < maidCnt; ++i)
  6662. {
  6663. Maid maid = maidArray[i];
  6664. string str24 = "";
  6665. string str25 = "";
  6666. SetIK(maid, i);
  6667. for (int index15 = 0; index15 < 20; ++index15)
  6668. {
  6669. string str26 = str24;
  6670. string[] strArray20 = new string[7];
  6671. strArray20[0] = str26;
  6672. string[] strArray21 = strArray20;
  6673. int index16 = 1;
  6674. num = Finger[i, index15].localEulerAngles.x;
  6675. string str27 = num.ToString("0.###");
  6676. strArray21[index16] = str27;
  6677. strArray20[2] = ",";
  6678. string[] strArray22 = strArray20;
  6679. int index17 = 3;
  6680. num = Finger[i, index15].localEulerAngles.y;
  6681. string str28 = num.ToString("0.###");
  6682. strArray22[index17] = str28;
  6683. strArray20[4] = ",";
  6684. string[] strArray23 = strArray20;
  6685. int index18 = 5;
  6686. num = Finger[i, index15].localEulerAngles.z;
  6687. string str29 = num.ToString("0.###");
  6688. strArray23[index18] = str29;
  6689. strArray20[6] = ":";
  6690. str24 = string.Concat(strArray20);
  6691. }
  6692. for (int index15 = 20; index15 < 40; ++index15)
  6693. {
  6694. string str26 = str25;
  6695. string[] strArray20 = new string[7];
  6696. strArray20[0] = str26;
  6697. string[] strArray21 = strArray20;
  6698. int index16 = 1;
  6699. num = Finger[i, index15].localEulerAngles.x;
  6700. string str27 = num.ToString("0.###");
  6701. strArray21[index16] = str27;
  6702. strArray20[2] = ",";
  6703. string[] strArray22 = strArray20;
  6704. int index17 = 3;
  6705. num = Finger[i, index15].localEulerAngles.y;
  6706. string str28 = num.ToString("0.###");
  6707. strArray22[index17] = str28;
  6708. strArray20[4] = ",";
  6709. string[] strArray23 = strArray20;
  6710. int index18 = 5;
  6711. num = Finger[i, index15].localEulerAngles.z;
  6712. string str29 = num.ToString("0.###");
  6713. strArray23[index18] = str29;
  6714. strArray20[6] = ":";
  6715. str25 = string.Concat(strArray20);
  6716. }
  6717. string str30 = "";
  6718. string[] strArray24 = new string[7];
  6719. strArray24[0] = str30;
  6720. string[] strArray25 = strArray24;
  6721. int index19 = 1;
  6722. num = Spine.eulerAngles.x;
  6723. string str31 = num.ToString("0.###");
  6724. strArray25[index19] = str31;
  6725. strArray24[2] = ",";
  6726. string[] strArray26 = strArray24;
  6727. int index20 = 3;
  6728. num = Spine.eulerAngles.y;
  6729. string str32 = num.ToString("0.###");
  6730. strArray26[index20] = str32;
  6731. strArray24[4] = ",";
  6732. string[] strArray27 = strArray24;
  6733. int index21 = 5;
  6734. num = Spine.eulerAngles.z;
  6735. string str33 = num.ToString("0.###");
  6736. strArray27[index21] = str33;
  6737. strArray24[6] = ":";
  6738. string str34 = string.Concat(strArray24);
  6739. string[] strArray28 = new string[7];
  6740. strArray28[0] = str34;
  6741. string[] strArray29 = strArray28;
  6742. int index22 = 1;
  6743. num = Spine0a.eulerAngles.x;
  6744. string str35 = num.ToString("0.###");
  6745. strArray29[index22] = str35;
  6746. strArray28[2] = ",";
  6747. string[] strArray30 = strArray28;
  6748. int index23 = 3;
  6749. num = Spine0a.eulerAngles.y;
  6750. string str37 = num.ToString("0.###");
  6751. strArray30[index23] = str37;
  6752. strArray28[4] = ",";
  6753. string[] strArray31 = strArray28;
  6754. int index24 = 5;
  6755. num = Spine0a.eulerAngles.z;
  6756. string str38 = num.ToString("0.###");
  6757. strArray31[index24] = str38;
  6758. strArray28[6] = ":";
  6759. string str39 = string.Concat(strArray28);
  6760. string[] strArray32 = new string[7];
  6761. strArray32[0] = str39;
  6762. string[] strArray33 = strArray32;
  6763. int index25 = 1;
  6764. num = Spine1.eulerAngles.x;
  6765. string str40 = num.ToString("0.###");
  6766. strArray33[index25] = str40;
  6767. strArray32[2] = ",";
  6768. string[] strArray34 = strArray32;
  6769. int index26 = 3;
  6770. num = Spine1.eulerAngles.y;
  6771. string str41 = num.ToString("0.###");
  6772. strArray34[index26] = str41;
  6773. strArray32[4] = ",";
  6774. string[] strArray35 = strArray32;
  6775. int index27 = 5;
  6776. num = Spine1.eulerAngles.z;
  6777. string str42 = num.ToString("0.###");
  6778. strArray35[index27] = str42;
  6779. strArray32[6] = ":";
  6780. string str43 = string.Concat(strArray32);
  6781. string[] strArray36 = new string[7];
  6782. strArray36[0] = str43;
  6783. string[] strArray37 = strArray36;
  6784. int index28 = 1;
  6785. num = Spine1a.eulerAngles.x;
  6786. string str44 = num.ToString("0.###");
  6787. strArray37[index28] = str44;
  6788. strArray36[2] = ",";
  6789. string[] strArray38 = strArray36;
  6790. int index29 = 3;
  6791. num = Spine1a.eulerAngles.y;
  6792. string str45 = num.ToString("0.###");
  6793. strArray38[index29] = str45;
  6794. strArray36[4] = ",";
  6795. string[] strArray39 = strArray36;
  6796. int index30 = 5;
  6797. num = Spine1a.eulerAngles.z;
  6798. string str46 = num.ToString("0.###");
  6799. strArray39[index30] = str46;
  6800. strArray36[6] = ":";
  6801. string str47 = string.Concat(strArray36);
  6802. string[] strArray40 = new string[7];
  6803. strArray40[0] = str47;
  6804. string[] strArray41 = strArray40;
  6805. int index31 = 1;
  6806. num = Pelvis.eulerAngles.x;
  6807. string str48 = num.ToString("0.###");
  6808. strArray41[index31] = str48;
  6809. strArray40[2] = ",";
  6810. string[] strArray42 = strArray40;
  6811. int index32 = 3;
  6812. num = Pelvis.eulerAngles.y;
  6813. string str49 = num.ToString("0.###");
  6814. strArray42[index32] = str49;
  6815. strArray40[4] = ",";
  6816. string[] strArray43 = strArray40;
  6817. int index33 = 5;
  6818. num = Pelvis.eulerAngles.z;
  6819. string str50 = num.ToString("0.###");
  6820. strArray43[index33] = str50;
  6821. strArray40[6] = ":";
  6822. string str51 = string.Concat(strArray40);
  6823. string[] strArray44 = new string[7];
  6824. strArray44[0] = str51;
  6825. string[] strArray45 = strArray44;
  6826. int index34 = 1;
  6827. num = HandL1[i].localEulerAngles.x;
  6828. string str52 = num.ToString("0.###");
  6829. strArray45[index34] = str52;
  6830. strArray44[2] = ",";
  6831. string[] strArray46 = strArray44;
  6832. int index35 = 3;
  6833. num = HandL1[i].localEulerAngles.y;
  6834. string str53 = num.ToString("0.###");
  6835. strArray46[index35] = str53;
  6836. strArray44[4] = ",";
  6837. string[] strArray47 = strArray44;
  6838. int index36 = 5;
  6839. num = HandL1[i].localEulerAngles.z;
  6840. string str54 = num.ToString("0.###");
  6841. strArray47[index36] = str54;
  6842. strArray44[6] = ":";
  6843. string str55 = string.Concat(strArray44);
  6844. string[] strArray48 = new string[7];
  6845. strArray48[0] = str55;
  6846. string[] strArray49 = strArray48;
  6847. int index37 = 1;
  6848. num = UpperArmL1[i].eulerAngles.x;
  6849. string str56 = num.ToString("0.###");
  6850. strArray49[index37] = str56;
  6851. strArray48[2] = ",";
  6852. string[] strArray50 = strArray48;
  6853. int index38 = 3;
  6854. num = UpperArmL1[i].eulerAngles.y;
  6855. string str57 = num.ToString("0.###");
  6856. strArray50[index38] = str57;
  6857. strArray48[4] = ",";
  6858. string[] strArray51 = strArray48;
  6859. int index39 = 5;
  6860. num = UpperArmL1[i].eulerAngles.z;
  6861. string str58 = num.ToString("0.###");
  6862. strArray51[index39] = str58;
  6863. strArray48[6] = ":";
  6864. string str59 = string.Concat(strArray48);
  6865. string[] strArray52 = new string[7];
  6866. strArray52[0] = str59;
  6867. string[] strArray53 = strArray52;
  6868. int index40 = 1;
  6869. num = ForearmL1[i].eulerAngles.x;
  6870. string str60 = num.ToString("0.###");
  6871. strArray53[index40] = str60;
  6872. strArray52[2] = ",";
  6873. string[] strArray54 = strArray52;
  6874. int index41 = 3;
  6875. num = ForearmL1[i].eulerAngles.y;
  6876. string str61 = num.ToString("0.###");
  6877. strArray54[index41] = str61;
  6878. strArray52[4] = ",";
  6879. string[] strArray55 = strArray52;
  6880. int index42 = 5;
  6881. num = ForearmL1[i].eulerAngles.z;
  6882. string str62 = num.ToString("0.###");
  6883. strArray55[index42] = str62;
  6884. strArray52[6] = ":";
  6885. string str63 = string.Concat(strArray52);
  6886. string[] strArray56 = new string[7];
  6887. strArray56[0] = str63;
  6888. string[] strArray57 = strArray56;
  6889. int index43 = 1;
  6890. num = HandR1[i].localEulerAngles.x;
  6891. string str64 = num.ToString("0.###");
  6892. strArray57[index43] = str64;
  6893. strArray56[2] = ",";
  6894. string[] strArray58 = strArray56;
  6895. int index44 = 3;
  6896. num = HandR1[i].localEulerAngles.y;
  6897. string str65 = num.ToString("0.###");
  6898. strArray58[index44] = str65;
  6899. strArray56[4] = ",";
  6900. string[] strArray59 = strArray56;
  6901. int index45 = 5;
  6902. num = HandR1[i].localEulerAngles.z;
  6903. string str66 = num.ToString("0.###");
  6904. strArray59[index45] = str66;
  6905. strArray56[6] = ":";
  6906. string str67 = string.Concat(strArray56);
  6907. string[] strArray60 = new string[7];
  6908. strArray60[0] = str67;
  6909. string[] strArray61 = strArray60;
  6910. int index46 = 1;
  6911. num = UpperArmR1[i].eulerAngles.x;
  6912. string str68 = num.ToString("0.###");
  6913. strArray61[index46] = str68;
  6914. strArray60[2] = ",";
  6915. string[] strArray62 = strArray60;
  6916. int index47 = 3;
  6917. num = UpperArmR1[i].eulerAngles.y;
  6918. string str69 = num.ToString("0.###");
  6919. strArray62[index47] = str69;
  6920. strArray60[4] = ",";
  6921. string[] strArray63 = strArray60;
  6922. int index48 = 5;
  6923. num = UpperArmR1[i].eulerAngles.z;
  6924. string str70 = num.ToString("0.###");
  6925. strArray63[index48] = str70;
  6926. strArray60[6] = ":";
  6927. string str71 = string.Concat(strArray60);
  6928. string[] strArray64 = new string[7];
  6929. strArray64[0] = str71;
  6930. string[] strArray65 = strArray64;
  6931. int index49 = 1;
  6932. num = ForearmR1[i].eulerAngles.x;
  6933. string str72 = num.ToString("0.###");
  6934. strArray65[index49] = str72;
  6935. strArray64[2] = ",";
  6936. string[] strArray66 = strArray64;
  6937. int index50 = 3;
  6938. num = ForearmR1[i].eulerAngles.y;
  6939. string str73 = num.ToString("0.###");
  6940. strArray66[index50] = str73;
  6941. strArray64[4] = ",";
  6942. string[] strArray67 = strArray64;
  6943. int index51 = 5;
  6944. num = ForearmR1[i].eulerAngles.z;
  6945. string str74 = num.ToString("0.###");
  6946. strArray67[index51] = str74;
  6947. strArray64[6] = ":";
  6948. string str75 = string.Concat(strArray64);
  6949. string[] strArray68 = new string[7];
  6950. strArray68[0] = str75;
  6951. string[] strArray69 = strArray68;
  6952. int index52 = 1;
  6953. num = HandL2[i].localEulerAngles.x;
  6954. string str76 = num.ToString("0.###");
  6955. strArray69[index52] = str76;
  6956. strArray68[2] = ",";
  6957. string[] strArray70 = strArray68;
  6958. int index53 = 3;
  6959. num = HandL2[i].localEulerAngles.y;
  6960. string str77 = num.ToString("0.###");
  6961. strArray70[index53] = str77;
  6962. strArray68[4] = ",";
  6963. string[] strArray71 = strArray68;
  6964. int index54 = 5;
  6965. num = HandL2[i].localEulerAngles.z;
  6966. string str78 = num.ToString("0.###");
  6967. strArray71[index54] = str78;
  6968. strArray68[6] = ":";
  6969. string str79 = string.Concat(strArray68);
  6970. string[] strArray72 = new string[7];
  6971. strArray72[0] = str79;
  6972. string[] strArray73 = strArray72;
  6973. int index55 = 1;
  6974. num = UpperArmL2[i].eulerAngles.x;
  6975. string str80 = num.ToString("0.###");
  6976. strArray73[index55] = str80;
  6977. strArray72[2] = ",";
  6978. string[] strArray74 = strArray72;
  6979. int index56 = 3;
  6980. num = UpperArmL2[i].eulerAngles.y;
  6981. string str81 = num.ToString("0.###");
  6982. strArray74[index56] = str81;
  6983. strArray72[4] = ",";
  6984. string[] strArray75 = strArray72;
  6985. int index57 = 5;
  6986. num = UpperArmL2[i].eulerAngles.z;
  6987. string str82 = num.ToString("0.###");
  6988. strArray75[index57] = str82;
  6989. strArray72[6] = ":";
  6990. string str83 = string.Concat(strArray72);
  6991. string[] strArray76 = new string[7];
  6992. strArray76[0] = str83;
  6993. string[] strArray77 = strArray76;
  6994. int index58 = 1;
  6995. num = ForearmL2[i].eulerAngles.x;
  6996. string str84 = num.ToString("0.###");
  6997. strArray77[index58] = str84;
  6998. strArray76[2] = ",";
  6999. string[] strArray78 = strArray76;
  7000. int index59 = 3;
  7001. num = ForearmL2[i].eulerAngles.y;
  7002. string str85 = num.ToString("0.###");
  7003. strArray78[index59] = str85;
  7004. strArray76[4] = ",";
  7005. string[] strArray79 = strArray76;
  7006. int index60 = 5;
  7007. num = ForearmL2[i].eulerAngles.z;
  7008. string str86 = num.ToString("0.###");
  7009. strArray79[index60] = str86;
  7010. strArray76[6] = ":";
  7011. string str87 = string.Concat(strArray76);
  7012. string[] strArray80 = new string[7];
  7013. strArray80[0] = str87;
  7014. string[] strArray81 = strArray80;
  7015. int index61 = 1;
  7016. num = HandR2[i].localEulerAngles.x;
  7017. string str88 = num.ToString("0.###");
  7018. strArray81[index61] = str88;
  7019. strArray80[2] = ",";
  7020. string[] strArray82 = strArray80;
  7021. int index62 = 3;
  7022. num = HandR2[i].localEulerAngles.y;
  7023. string str89 = num.ToString("0.###");
  7024. strArray82[index62] = str89;
  7025. strArray80[4] = ",";
  7026. string[] strArray83 = strArray80;
  7027. int index63 = 5;
  7028. num = HandR2[i].localEulerAngles.z;
  7029. string str90 = num.ToString("0.###");
  7030. strArray83[index63] = str90;
  7031. strArray80[6] = ":";
  7032. string str91 = string.Concat(strArray80);
  7033. string[] strArray84 = new string[7];
  7034. strArray84[0] = str91;
  7035. string[] strArray85 = strArray84;
  7036. int index64 = 1;
  7037. num = UpperArmR2[i].eulerAngles.x;
  7038. string str92 = num.ToString("0.###");
  7039. strArray85[index64] = str92;
  7040. strArray84[2] = ",";
  7041. string[] strArray86 = strArray84;
  7042. int index65 = 3;
  7043. num = UpperArmR2[i].eulerAngles.y;
  7044. string str93 = num.ToString("0.###");
  7045. strArray86[index65] = str93;
  7046. strArray84[4] = ",";
  7047. string[] strArray87 = strArray84;
  7048. int index66 = 5;
  7049. num = UpperArmR2[i].eulerAngles.z;
  7050. string str94 = num.ToString("0.###");
  7051. strArray87[index66] = str94;
  7052. strArray84[6] = ":";
  7053. string str95 = string.Concat(strArray84);
  7054. string[] strArray88 = new string[7];
  7055. strArray88[0] = str95;
  7056. string[] strArray89 = strArray88;
  7057. int index67 = 1;
  7058. num = ForearmR2[i].eulerAngles.x;
  7059. string str96 = num.ToString("0.###");
  7060. strArray89[index67] = str96;
  7061. strArray88[2] = ",";
  7062. string[] strArray90 = strArray88;
  7063. int index68 = 3;
  7064. num = ForearmR2[i].eulerAngles.y;
  7065. string str97 = num.ToString("0.###");
  7066. strArray90[index68] = str97;
  7067. strArray88[4] = ",";
  7068. string[] strArray91 = strArray88;
  7069. int index69 = 5;
  7070. num = ForearmR2[i].eulerAngles.z;
  7071. string str98 = num.ToString("0.###");
  7072. strArray91[index69] = str98;
  7073. strArray88[6] = ":";
  7074. string str99 = string.Concat(strArray88);
  7075. string[] strArray92 = new string[7];
  7076. strArray92[0] = str99;
  7077. string[] strArray93 = strArray92;
  7078. int index70 = 1;
  7079. num = Head.eulerAngles.x;
  7080. string str100 = num.ToString("0.###");
  7081. strArray93[index70] = str100;
  7082. strArray92[2] = ",";
  7083. string[] strArray94 = strArray92;
  7084. int index71 = 3;
  7085. num = Head.eulerAngles.y;
  7086. string str101 = num.ToString("0.###");
  7087. strArray94[index71] = str101;
  7088. strArray92[4] = ",";
  7089. string[] strArray95 = strArray92;
  7090. int index72 = 5;
  7091. num = Head.eulerAngles.z;
  7092. string str102 = num.ToString("0.###");
  7093. strArray95[index72] = str102;
  7094. strArray92[6] = ":";
  7095. string str103 = string.Concat(strArray92);
  7096. string[] strArray96 = new string[7];
  7097. strArray96[0] = str103;
  7098. string[] strArray97 = strArray96;
  7099. int index73 = 1;
  7100. num = maid.transform.localEulerAngles.x;
  7101. string str104 = num.ToString("0.###");
  7102. strArray97[index73] = str104;
  7103. strArray96[2] = ",";
  7104. string[] strArray98 = strArray96;
  7105. int index74 = 3;
  7106. num = maid.transform.localEulerAngles.y;
  7107. string str105 = num.ToString("0.###");
  7108. strArray98[index74] = str105;
  7109. strArray96[4] = ",";
  7110. string[] strArray99 = strArray96;
  7111. int index75 = 5;
  7112. num = maid.transform.localEulerAngles.z;
  7113. string str106 = num.ToString("0.###");
  7114. strArray99[index75] = str106;
  7115. strArray96[6] = ":";
  7116. string str107 = string.Concat(strArray96);
  7117. string[] strArray100 = new string[7];
  7118. strArray100[0] = str107;
  7119. string[] strArray101 = strArray100;
  7120. int index76 = 1;
  7121. num = maid.transform.position.x;
  7122. string str108 = num.ToString("0.###");
  7123. strArray101[index76] = str108;
  7124. strArray100[2] = ",";
  7125. string[] strArray102 = strArray100;
  7126. int index77 = 3;
  7127. num = maid.transform.position.y;
  7128. string str109 = num.ToString("0.###");
  7129. strArray102[index77] = str109;
  7130. strArray100[4] = ",";
  7131. string[] strArray103 = strArray100;
  7132. int index78 = 5;
  7133. num = maid.transform.position.z;
  7134. string str110 = num.ToString("0.###");
  7135. strArray103[index78] = str110;
  7136. strArray100[6] = ":";
  7137. string str111 = string.Concat(strArray100);
  7138. string[] strArray104 = new string[7];
  7139. strArray104[0] = str111;
  7140. string[] strArray105 = strArray104;
  7141. int index79 = 1;
  7142. num = maid.transform.localScale.x;
  7143. string str112 = num.ToString("0.###");
  7144. strArray105[index79] = str112;
  7145. strArray104[2] = ",";
  7146. string[] strArray106 = strArray104;
  7147. int index80 = 3;
  7148. num = maid.transform.localScale.y;
  7149. string str113 = num.ToString("0.###");
  7150. strArray106[index80] = str113;
  7151. strArray104[4] = ",";
  7152. string[] strArray107 = strArray104;
  7153. int index81 = 5;
  7154. num = maid.transform.localScale.z;
  7155. string str114 = num.ToString("0.###");
  7156. strArray107[index81] = str114;
  7157. strArray104[6] = ":";
  7158. string str115 = string.Concat(strArray104);
  7159. string str116;
  7160. if (poseArray[poseIndex[i]].Contains("MultipleMaidsPose"))
  7161. {
  7162. string str26 = poseArray[poseIndex[i]].Replace(" ", "").Split('/')[0];
  7163. str116 = str115 + "MultipleMaidsPose" + str26.Replace("_", " ").Replace(",", "|") + ":";
  7164. }
  7165. else
  7166. {
  7167. str116 = str115 + poseArray[poseIndex[i]].Replace("_", " ").Replace(",", "|") + ":";
  7168. }
  7169. string str117 = str116 + faceIndex[i] + ":";
  7170. TMorph morph = maid.body0.Face.morph;
  7171. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  7172. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  7173. string str118 = str117 + fieldValue2[(int)morph.hash["eyeclose"]] + ","
  7174. + fieldValue2[(int)morph.hash["eyeclose2"]] + ","
  7175. + fieldValue2[(int)morph.hash["eyeclose3"]] + ","
  7176. + fieldValue2[(int)morph.hash["eyeclose6"]] + ","
  7177. + fieldValue1[(int)morph.hash["hitomih"]] + ","
  7178. + fieldValue1[(int)morph.hash["hitomis"]] + ","
  7179. + fieldValue1[(int)morph.hash["mayuha"]] + ","
  7180. + fieldValue1[(int)morph.hash["mayuup"]] + ","
  7181. + fieldValue1[(int)morph.hash["mayuv"]] + ","
  7182. + fieldValue1[(int)morph.hash["mayuvhalf"]] + ","
  7183. + fieldValue1[(int)morph.hash["moutha"]] + ","
  7184. + fieldValue1[(int)morph.hash["mouths"]] + ","
  7185. + fieldValue1[(int)morph.hash["mouthdw"]] + ","
  7186. + fieldValue1[(int)morph.hash["mouthup"]] + ","
  7187. + fieldValue1[(int)morph.hash["tangout"]] + ","
  7188. + fieldValue1[(int)morph.hash["tangup"]] + ","
  7189. + fieldValue1[(int)morph.hash["eyebig"]] + ","
  7190. + fieldValue2[(int)morph.hash["eyeclose5"]] + ","
  7191. + fieldValue1[(int)morph.hash["mayuw"]] + ","
  7192. + fieldValue1[(int)morph.hash["mouthhe"]] + ","
  7193. + fieldValue1[(int)morph.hash["mouthc"]] + ","
  7194. + fieldValue1[(int)morph.hash["mouthi"]] + ","
  7195. + fieldValue1[(int)morph.hash["mouthuphalf"]] + ",";
  7196. string str119;
  7197. try
  7198. {
  7199. str119 = str118 + fieldValue1[(int)morph.hash["tangopen"]] + ",";
  7200. }
  7201. catch
  7202. {
  7203. str119 = str118 + "0,";
  7204. }
  7205. string str120 = fieldValue1[(int)morph.hash["namida"]] <= 0.0
  7206. ? str119 + 0 + ","
  7207. : str119 + 1 + ",";
  7208. string str121 = fieldValue1[(int)morph.hash["tear1"]] <= 0.0
  7209. ? str120 + 0 + ","
  7210. : str120 + 1 + ",";
  7211. string str122 = fieldValue1[(int)morph.hash["tear2"]] <= 0.0
  7212. ? str121 + 0 + ","
  7213. : str121 + 1 + ",";
  7214. string str123 = fieldValue1[(int)morph.hash["tear3"]] <= 0.0
  7215. ? str122 + 0 + ","
  7216. : str122 + 1 + ",";
  7217. string str124 = fieldValue1[(int)morph.hash["shock"]] <= 0.0
  7218. ? str123 + 0 + ","
  7219. : str123 + 1 + ",";
  7220. string str125 = fieldValue1[(int)morph.hash["yodare"]] <= 0.0
  7221. ? str124 + 0 + ","
  7222. : str124 + 1 + ",";
  7223. string str126 = fieldValue1[(int)morph.hash["hoho"]] <= 0.0
  7224. ? str125 + 0 + ","
  7225. : str125 + 1 + ",";
  7226. string str127 = fieldValue1[(int)morph.hash["hoho2"]] <= 0.0
  7227. ? str126 + 0 + ","
  7228. : str126 + 1 + ",";
  7229. string str128 = fieldValue1[(int)morph.hash["hohos"]] <= 0.0
  7230. ? str127 + 0 + ","
  7231. : str127 + 1 + ",";
  7232. string str129 = fieldValue1[(int)morph.hash["hohol"]] <= 0.0
  7233. ? str128 + 0 + ","
  7234. : str128 + 1 + ",";
  7235. string str130 = fieldValue1[(int)morph.hash["toothoff"]] <= 0.0
  7236. ? str129 + 0 + ","
  7237. : str129 + 1 + ",";
  7238. string str131 = fieldValue1[(int)morph.hash["nosefook"]] <= 0.0
  7239. ? str130 + 0 + ":"
  7240. : str130 + 1 + ":";
  7241. string str132 = "";
  7242. string str133 =
  7243. (!isLook[i]
  7244. ? str132 + 0 + ",0,0:"
  7245. : str132 + 1 + "," + lookX[i].ToString("0.###") + "," + lookY[i].ToString("0.###")
  7246. + ":").ToString() + itemIndex[i] + ":";
  7247. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true);
  7248. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true);
  7249. string str134 = str133 + transform1.localEulerAngles.x.ToString("0.###") + ","
  7250. + transform1.localEulerAngles.y.ToString("0.###") + ","
  7251. + transform1.localEulerAngles.z.ToString("0.###") + ":"
  7252. + transform2.localEulerAngles.x.ToString("0.###") + ","
  7253. + transform2.localEulerAngles.y.ToString("0.###") + ","
  7254. + transform2.localEulerAngles.z.ToString("0.###") + ":";
  7255. string[] strArray108 = new string[7];
  7256. strArray108[0] = str134;
  7257. string[] strArray109 = strArray108;
  7258. int index82 = 1;
  7259. num = ClavicleL1[i].eulerAngles.x;
  7260. string str135 = num.ToString("0.###");
  7261. strArray109[index82] = str135;
  7262. strArray108[2] = ",";
  7263. string[] strArray110 = strArray108;
  7264. int index83 = 3;
  7265. num = ClavicleL1[i].eulerAngles.y;
  7266. string str136 = num.ToString("0.###");
  7267. strArray110[index83] = str136;
  7268. strArray108[4] = ",";
  7269. string[] strArray111 = strArray108;
  7270. int index84 = 5;
  7271. num = ClavicleL1[i].eulerAngles.z;
  7272. string str137 = num.ToString("0.###");
  7273. strArray111[index84] = str137;
  7274. strArray108[6] = ":";
  7275. string str138 = string.Concat(strArray108);
  7276. string[] strArray112 = new string[7];
  7277. strArray112[0] = str138;
  7278. string[] strArray113 = strArray112;
  7279. int index85 = 1;
  7280. num = ClavicleR1[i].eulerAngles.x;
  7281. string str139 = num.ToString("0.###");
  7282. strArray113[index85] = str139;
  7283. strArray112[2] = ",";
  7284. string[] strArray114 = strArray112;
  7285. int index86 = 3;
  7286. num = ClavicleR1[i].eulerAngles.y;
  7287. string str140 = num.ToString("0.###");
  7288. strArray114[index86] = str140;
  7289. strArray112[4] = ",";
  7290. string[] strArray115 = strArray112;
  7291. int index87 = 5;
  7292. num = ClavicleR1[i].eulerAngles.z;
  7293. string str141 = num.ToString("0.###");
  7294. strArray115[index87] = str141;
  7295. strArray112[6] = ":";
  7296. string str142 = string.Concat(strArray112);
  7297. string str143 = !hanten[i] ? str142 + "0:" : str142 + "1:";
  7298. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  7299. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  7300. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  7301. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  7302. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  7303. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  7304. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  7305. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  7306. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  7307. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  7308. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  7309. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  7310. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  7311. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  7312. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  7313. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  7314. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  7315. Transform transform20 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  7316. Transform transform21 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  7317. string str144 = str143;
  7318. string[] strArray116 = new string[7];
  7319. strArray116[0] = str144;
  7320. string[] strArray117 = strArray116;
  7321. int index88 = 1;
  7322. num = transform3.eulerAngles.x;
  7323. string str145 = num.ToString("0.###");
  7324. strArray117[index88] = str145;
  7325. strArray116[2] = ",";
  7326. string[] strArray118 = strArray116;
  7327. int index89 = 3;
  7328. num = transform3.eulerAngles.y;
  7329. string str146 = num.ToString("0.###");
  7330. strArray118[index89] = str146;
  7331. strArray116[4] = ",";
  7332. string[] strArray119 = strArray116;
  7333. int index90 = 5;
  7334. num = transform3.eulerAngles.z;
  7335. string str147 = num.ToString("0.###");
  7336. strArray119[index90] = str147;
  7337. strArray116[6] = ":";
  7338. string str148 = string.Concat(strArray116);
  7339. string[] strArray120 = new string[7];
  7340. strArray120[0] = str148;
  7341. string[] strArray121 = strArray120;
  7342. int index91 = 1;
  7343. num = transform4.localEulerAngles.x;
  7344. string str149 = num.ToString("0.###");
  7345. strArray121[index91] = str149;
  7346. strArray120[2] = ",";
  7347. string[] strArray122 = strArray120;
  7348. int index92 = 3;
  7349. num = transform4.localEulerAngles.y;
  7350. string str150 = num.ToString("0.###");
  7351. strArray122[index92] = str150;
  7352. strArray120[4] = ",";
  7353. string[] strArray123 = strArray120;
  7354. int index93 = 5;
  7355. num = transform4.localEulerAngles.z;
  7356. string str151 = num.ToString("0.###");
  7357. strArray123[index93] = str151;
  7358. strArray120[6] = ":";
  7359. string str152 = string.Concat(strArray120);
  7360. string[] strArray124 = new string[7];
  7361. strArray124[0] = str152;
  7362. string[] strArray125 = strArray124;
  7363. int index94 = 1;
  7364. num = transform5.localEulerAngles.x;
  7365. string str153 = num.ToString("0.###");
  7366. strArray125[index94] = str153;
  7367. strArray124[2] = ",";
  7368. string[] strArray126 = strArray124;
  7369. int index95 = 3;
  7370. num = transform5.localEulerAngles.y;
  7371. string str154 = num.ToString("0.###");
  7372. strArray126[index95] = str154;
  7373. strArray124[4] = ",";
  7374. string[] strArray127 = strArray124;
  7375. int index96 = 5;
  7376. num = transform5.localEulerAngles.z;
  7377. string str155 = num.ToString("0.###");
  7378. strArray127[index96] = str155;
  7379. strArray124[6] = ":";
  7380. string str156 = string.Concat(strArray124);
  7381. string[] strArray128 = new string[7];
  7382. strArray128[0] = str156;
  7383. string[] strArray129 = strArray128;
  7384. int index97 = 1;
  7385. num = transform6.localEulerAngles.x;
  7386. string str157 = num.ToString("0.###");
  7387. strArray129[index97] = str157;
  7388. strArray128[2] = ",";
  7389. string[] strArray130 = strArray128;
  7390. int index98 = 3;
  7391. num = transform6.localEulerAngles.y;
  7392. string str158 = num.ToString("0.###");
  7393. strArray130[index98] = str158;
  7394. strArray128[4] = ",";
  7395. string[] strArray131 = strArray128;
  7396. int index99 = 5;
  7397. num = transform6.localEulerAngles.z;
  7398. string str159 = num.ToString("0.###");
  7399. strArray131[index99] = str159;
  7400. strArray128[6] = ":";
  7401. string str160 = string.Concat(strArray128);
  7402. string[] strArray132 = new string[7];
  7403. strArray132[0] = str160;
  7404. string[] strArray133 = strArray132;
  7405. int index100 = 1;
  7406. num = transform7.localEulerAngles.x;
  7407. string str161 = num.ToString("0.###");
  7408. strArray133[index100] = str161;
  7409. strArray132[2] = ",";
  7410. string[] strArray134 = strArray132;
  7411. int index101 = 3;
  7412. num = transform7.localEulerAngles.y;
  7413. string str162 = num.ToString("0.###");
  7414. strArray134[index101] = str162;
  7415. strArray132[4] = ",";
  7416. string[] strArray135 = strArray132;
  7417. int index102 = 5;
  7418. num = transform7.localEulerAngles.z;
  7419. string str163 = num.ToString("0.###");
  7420. strArray135[index102] = str163;
  7421. strArray132[6] = ":";
  7422. string str164 = string.Concat(strArray132);
  7423. string[] strArray136 = new string[7];
  7424. strArray136[0] = str164;
  7425. string[] strArray137 = strArray136;
  7426. int index103 = 1;
  7427. num = transform8.localEulerAngles.x;
  7428. string str165 = num.ToString("0.###");
  7429. strArray137[index103] = str165;
  7430. strArray136[2] = ",";
  7431. string[] strArray138 = strArray136;
  7432. int index104 = 3;
  7433. num = transform8.localEulerAngles.y;
  7434. string str166 = num.ToString("0.###");
  7435. strArray138[index104] = str166;
  7436. strArray136[4] = ",";
  7437. string[] strArray139 = strArray136;
  7438. int index105 = 5;
  7439. num = transform8.localEulerAngles.z;
  7440. string str167 = num.ToString("0.###");
  7441. strArray139[index105] = str167;
  7442. strArray136[6] = ":";
  7443. string str168 = string.Concat(strArray136);
  7444. string[] strArray140 = new string[7];
  7445. strArray140[0] = str168;
  7446. string[] strArray141 = strArray140;
  7447. int index106 = 1;
  7448. num = transform9.localEulerAngles.x;
  7449. string str169 = num.ToString("0.###");
  7450. strArray141[index106] = str169;
  7451. strArray140[2] = ",";
  7452. string[] strArray142 = strArray140;
  7453. int index107 = 3;
  7454. num = transform9.localEulerAngles.y;
  7455. string str170 = num.ToString("0.###");
  7456. strArray142[index107] = str170;
  7457. strArray140[4] = ",";
  7458. string[] strArray143 = strArray140;
  7459. int index108 = 5;
  7460. num = transform9.localEulerAngles.z;
  7461. string str171 = num.ToString("0.###");
  7462. strArray143[index108] = str171;
  7463. strArray140[6] = ":";
  7464. string str172 = string.Concat(strArray140);
  7465. string[] strArray144 = new string[7];
  7466. strArray144[0] = str172;
  7467. string[] strArray145 = strArray144;
  7468. int index109 = 1;
  7469. num = transform10.localEulerAngles.x;
  7470. string str173 = num.ToString("0.###");
  7471. strArray145[index109] = str173;
  7472. strArray144[2] = ",";
  7473. string[] strArray146 = strArray144;
  7474. int index110 = 3;
  7475. num = transform10.localEulerAngles.y;
  7476. string str174 = num.ToString("0.###");
  7477. strArray146[index110] = str174;
  7478. strArray144[4] = ",";
  7479. string[] strArray147 = strArray144;
  7480. int index111 = 5;
  7481. num = transform10.localEulerAngles.z;
  7482. string str175 = num.ToString("0.###");
  7483. strArray147[index111] = str175;
  7484. strArray144[6] = ":";
  7485. string str176 = string.Concat(strArray144);
  7486. string[] strArray148 = new string[7];
  7487. strArray148[0] = str176;
  7488. string[] strArray149 = strArray148;
  7489. int index112 = 1;
  7490. num = transform11.localEulerAngles.x;
  7491. string str177 = num.ToString("0.###");
  7492. strArray149[index112] = str177;
  7493. strArray148[2] = ",";
  7494. string[] strArray150 = strArray148;
  7495. int index113 = 3;
  7496. num = transform11.localEulerAngles.y;
  7497. string str178 = num.ToString("0.###");
  7498. strArray150[index113] = str178;
  7499. strArray148[4] = ",";
  7500. string[] strArray151 = strArray148;
  7501. int index114 = 5;
  7502. num = transform11.localEulerAngles.z;
  7503. string str179 = num.ToString("0.###");
  7504. strArray151[index114] = str179;
  7505. strArray148[6] = ":";
  7506. string str180 = string.Concat(strArray148);
  7507. string[] strArray152 = new string[7];
  7508. strArray152[0] = str180;
  7509. string[] strArray153 = strArray152;
  7510. int index115 = 1;
  7511. num = transform12.localEulerAngles.x;
  7512. string str181 = num.ToString("0.###");
  7513. strArray153[index115] = str181;
  7514. strArray152[2] = ",";
  7515. string[] strArray154 = strArray152;
  7516. int index116 = 3;
  7517. num = transform12.localEulerAngles.y;
  7518. string str182 = num.ToString("0.###");
  7519. strArray154[index116] = str182;
  7520. strArray152[4] = ",";
  7521. string[] strArray155 = strArray152;
  7522. int index117 = 5;
  7523. num = transform12.localEulerAngles.z;
  7524. string str183 = num.ToString("0.###");
  7525. strArray155[index117] = str183;
  7526. strArray152[6] = ":";
  7527. string str184 = string.Concat(strArray152);
  7528. string[] strArray156 = new string[7];
  7529. strArray156[0] = str184;
  7530. string[] strArray157 = strArray156;
  7531. int index118 = 1;
  7532. num = transform13.localEulerAngles.x;
  7533. string str185 = num.ToString("0.###");
  7534. strArray157[index118] = str185;
  7535. strArray156[2] = ",";
  7536. string[] strArray158 = strArray156;
  7537. int index119 = 3;
  7538. num = transform13.localEulerAngles.y;
  7539. string str186 = num.ToString("0.###");
  7540. strArray158[index119] = str186;
  7541. strArray156[4] = ",";
  7542. string[] strArray159 = strArray156;
  7543. int index120 = 5;
  7544. num = transform13.localEulerAngles.z;
  7545. string str187 = num.ToString("0.###");
  7546. strArray159[index120] = str187;
  7547. strArray156[6] = ":";
  7548. string str188 = string.Concat(strArray156);
  7549. string[] strArray160 = new string[7];
  7550. strArray160[0] = str188;
  7551. string[] strArray161 = strArray160;
  7552. int index121 = 1;
  7553. num = transform14.localEulerAngles.x;
  7554. string str189 = num.ToString("0.###");
  7555. strArray161[index121] = str189;
  7556. strArray160[2] = ",";
  7557. string[] strArray162 = strArray160;
  7558. int index122 = 3;
  7559. num = transform14.localEulerAngles.y;
  7560. string str190 = num.ToString("0.###");
  7561. strArray162[index122] = str190;
  7562. strArray160[4] = ",";
  7563. string[] strArray163 = strArray160;
  7564. int index123 = 5;
  7565. num = transform14.localEulerAngles.z;
  7566. string str191 = num.ToString("0.###");
  7567. strArray163[index123] = str191;
  7568. strArray160[6] = ":";
  7569. string str192 = string.Concat(strArray160);
  7570. string[] strArray164 = new string[7];
  7571. strArray164[0] = str192;
  7572. string[] strArray165 = strArray164;
  7573. int index124 = 1;
  7574. num = transform15.localEulerAngles.x;
  7575. string str193 = num.ToString("0.###");
  7576. strArray165[index124] = str193;
  7577. strArray164[2] = ",";
  7578. string[] strArray166 = strArray164;
  7579. int index125 = 3;
  7580. num = transform15.localEulerAngles.y;
  7581. string str194 = num.ToString("0.###");
  7582. strArray166[index125] = str194;
  7583. strArray164[4] = ",";
  7584. string[] strArray167 = strArray164;
  7585. int index126 = 5;
  7586. num = transform15.localEulerAngles.z;
  7587. string str195 = num.ToString("0.###");
  7588. strArray167[index126] = str195;
  7589. strArray164[6] = ":";
  7590. string str196 = string.Concat(strArray164);
  7591. string[] strArray168 = new string[7];
  7592. strArray168[0] = str196;
  7593. string[] strArray169 = strArray168;
  7594. int index127 = 1;
  7595. num = transform16.localEulerAngles.x;
  7596. string str197 = num.ToString("0.###");
  7597. strArray169[index127] = str197;
  7598. strArray168[2] = ",";
  7599. string[] strArray170 = strArray168;
  7600. int index128 = 3;
  7601. num = transform16.localEulerAngles.y;
  7602. string str198 = num.ToString("0.###");
  7603. strArray170[index128] = str198;
  7604. strArray168[4] = ",";
  7605. string[] strArray171 = strArray168;
  7606. int index129 = 5;
  7607. num = transform16.localEulerAngles.z;
  7608. string str199 = num.ToString("0.###");
  7609. strArray171[index129] = str199;
  7610. strArray168[6] = ":";
  7611. string str200 = string.Concat(strArray168);
  7612. string[] strArray172 = new string[7];
  7613. strArray172[0] = str200;
  7614. string[] strArray173 = strArray172;
  7615. int index130 = 1;
  7616. num = transform17.localEulerAngles.x;
  7617. string str201 = num.ToString("0.###");
  7618. strArray173[index130] = str201;
  7619. strArray172[2] = ",";
  7620. string[] strArray174 = strArray172;
  7621. int index131 = 3;
  7622. num = transform17.localEulerAngles.y;
  7623. string str202 = num.ToString("0.###");
  7624. strArray174[index131] = str202;
  7625. strArray172[4] = ",";
  7626. string[] strArray175 = strArray172;
  7627. int index132 = 5;
  7628. num = transform17.localEulerAngles.z;
  7629. string str203 = num.ToString("0.###");
  7630. strArray175[index132] = str203;
  7631. strArray172[6] = ":";
  7632. string str204 = string.Concat(strArray172);
  7633. string[] strArray176 = new string[7];
  7634. strArray176[0] = str204;
  7635. string[] strArray177 = strArray176;
  7636. int index133 = 1;
  7637. num = transform18.localEulerAngles.x;
  7638. string str205 = num.ToString("0.###");
  7639. strArray177[index133] = str205;
  7640. strArray176[2] = ",";
  7641. string[] strArray178 = strArray176;
  7642. int index134 = 3;
  7643. num = transform18.localEulerAngles.y;
  7644. string str206 = num.ToString("0.###");
  7645. strArray178[index134] = str206;
  7646. strArray176[4] = ",";
  7647. string[] strArray179 = strArray176;
  7648. int index135 = 5;
  7649. num = transform18.localEulerAngles.z;
  7650. string str207 = num.ToString("0.###");
  7651. strArray179[index135] = str207;
  7652. strArray176[6] = ":";
  7653. string str208 = string.Concat(strArray176);
  7654. string[] strArray180 = new string[7];
  7655. strArray180[0] = str208;
  7656. string[] strArray181 = strArray180;
  7657. int index136 = 1;
  7658. num = transform19.localEulerAngles.x;
  7659. string str209 = num.ToString("0.###");
  7660. strArray181[index136] = str209;
  7661. strArray180[2] = ",";
  7662. string[] strArray182 = strArray180;
  7663. int index137 = 3;
  7664. num = transform19.localEulerAngles.y;
  7665. string str210 = num.ToString("0.###");
  7666. strArray182[index137] = str210;
  7667. strArray180[4] = ",";
  7668. string[] strArray183 = strArray180;
  7669. int index138 = 5;
  7670. num = transform19.localEulerAngles.z;
  7671. string str211 = num.ToString("0.###");
  7672. strArray183[index138] = str211;
  7673. strArray180[6] = ":";
  7674. string str212 = string.Concat(strArray180);
  7675. string[] strArray184 = new string[7];
  7676. strArray184[0] = str212;
  7677. string[] strArray185 = strArray184;
  7678. int index139 = 1;
  7679. num = transform20.localEulerAngles.x;
  7680. string str213 = num.ToString("0.###");
  7681. strArray185[index139] = str213;
  7682. strArray184[2] = ",";
  7683. string[] strArray186 = strArray184;
  7684. int index140 = 3;
  7685. num = transform20.localEulerAngles.y;
  7686. string str214 = num.ToString("0.###");
  7687. strArray186[index140] = str214;
  7688. strArray184[4] = ",";
  7689. string[] strArray187 = strArray184;
  7690. int index141 = 5;
  7691. num = transform20.localEulerAngles.z;
  7692. string str215 = num.ToString("0.###");
  7693. strArray187[index141] = str215;
  7694. strArray184[6] = ":";
  7695. string str216 = string.Concat(strArray184);
  7696. string[] strArray188 = new string[7];
  7697. strArray188[0] = str216;
  7698. string[] strArray189 = strArray188;
  7699. int index142 = 1;
  7700. num = transform21.localEulerAngles.x;
  7701. string str217 = num.ToString("0.###");
  7702. strArray189[index142] = str217;
  7703. strArray188[2] = ",";
  7704. string[] strArray190 = strArray188;
  7705. int index143 = 3;
  7706. num = transform21.localEulerAngles.y;
  7707. string str218 = num.ToString("0.###");
  7708. strArray190[index143] = str218;
  7709. strArray188[4] = ",";
  7710. string[] strArray191 = strArray188;
  7711. int index144 = 5;
  7712. num = transform21.localEulerAngles.z;
  7713. string str219 = num.ToString("0.###");
  7714. strArray191[index144] = str219;
  7715. strArray188[6] = ":";
  7716. string str220 = string.Concat(strArray188);
  7717. string[] strArray192 = new string[7];
  7718. strArray192[0] = str220;
  7719. string[] strArray193 = strArray192;
  7720. int index145 = 1;
  7721. num = maid.body0.quaDefEyeL.eulerAngles.x;
  7722. string str221 = num.ToString("0.###");
  7723. strArray193[index145] = str221;
  7724. strArray192[2] = ",";
  7725. string[] strArray194 = strArray192;
  7726. int index146 = 3;
  7727. num = maid.body0.quaDefEyeL.eulerAngles.y;
  7728. string str222 = num.ToString("0.###");
  7729. strArray194[index146] = str222;
  7730. strArray192[4] = ",";
  7731. string[] strArray195 = strArray192;
  7732. int index147 = 5;
  7733. num = maid.body0.quaDefEyeL.eulerAngles.z;
  7734. string str223 = num.ToString("0.###");
  7735. strArray195[index147] = str223;
  7736. strArray192[6] = ":";
  7737. string str224 = string.Concat(strArray192);
  7738. string[] strArray196 = new string[7];
  7739. strArray196[0] = str224;
  7740. string[] strArray197 = strArray196;
  7741. int index148 = 1;
  7742. num = maid.body0.quaDefEyeR.eulerAngles.x;
  7743. string str225 = num.ToString("0.###");
  7744. strArray197[index148] = str225;
  7745. strArray196[2] = ",";
  7746. string[] strArray198 = strArray196;
  7747. int index149 = 3;
  7748. num = maid.body0.quaDefEyeR.eulerAngles.y;
  7749. string str226 = num.ToString("0.###");
  7750. strArray198[index149] = str226;
  7751. strArray196[4] = ",";
  7752. string[] strArray199 = strArray196;
  7753. int index150 = 5;
  7754. num = maid.body0.quaDefEyeR.eulerAngles.z;
  7755. string str227 = num.ToString("0.###");
  7756. strArray199[index150] = str227;
  7757. strArray196[6] = ":";
  7758. string str228 = string.Concat(strArray196);
  7759. Transform transform22 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_L", true);
  7760. Transform transform23 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_L_sub", true);
  7761. Transform transform24 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_R", true);
  7762. Transform transform25 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_R_sub", true);
  7763. string str229 = str228;
  7764. string[] strArray200 = new string[7];
  7765. strArray200[0] = str229;
  7766. string[] strArray201 = strArray200;
  7767. int index151 = 1;
  7768. num = transform22.localEulerAngles.x;
  7769. string str230 = num.ToString("0.###");
  7770. strArray201[index151] = str230;
  7771. strArray200[2] = ",";
  7772. string[] strArray202 = strArray200;
  7773. int index152 = 3;
  7774. num = transform22.localEulerAngles.y;
  7775. string str231 = num.ToString("0.###");
  7776. strArray202[index152] = str231;
  7777. strArray200[4] = ",";
  7778. string[] strArray203 = strArray200;
  7779. int index153 = 5;
  7780. num = transform22.localEulerAngles.z;
  7781. string str232 = num.ToString("0.###");
  7782. strArray203[index153] = str232;
  7783. strArray200[6] = ":";
  7784. string str233 = string.Concat(strArray200);
  7785. string[] strArray204 = new string[7];
  7786. strArray204[0] = str233;
  7787. string[] strArray205 = strArray204;
  7788. int index154 = 1;
  7789. num = transform23.localEulerAngles.x;
  7790. string str234 = num.ToString("0.###");
  7791. strArray205[index154] = str234;
  7792. strArray204[2] = ",";
  7793. string[] strArray206 = strArray204;
  7794. int index155 = 3;
  7795. num = transform23.localEulerAngles.y;
  7796. string str235 = num.ToString("0.###");
  7797. strArray206[index155] = str235;
  7798. strArray204[4] = ",";
  7799. string[] strArray207 = strArray204;
  7800. int index156 = 5;
  7801. num = transform23.localEulerAngles.z;
  7802. string str236 = num.ToString("0.###");
  7803. strArray207[index156] = str236;
  7804. strArray204[6] = ":";
  7805. string str237 = string.Concat(strArray204);
  7806. string[] strArray208 = new string[7];
  7807. strArray208[0] = str237;
  7808. string[] strArray209 = strArray208;
  7809. int index157 = 1;
  7810. num = transform24.localEulerAngles.x;
  7811. string str238 = num.ToString("0.###");
  7812. strArray209[index157] = str238;
  7813. strArray208[2] = ",";
  7814. string[] strArray210 = strArray208;
  7815. int index158 = 3;
  7816. num = transform24.localEulerAngles.y;
  7817. string str239 = num.ToString("0.###");
  7818. strArray210[index158] = str239;
  7819. strArray208[4] = ",";
  7820. string[] strArray211 = strArray208;
  7821. int index159 = 5;
  7822. num = transform24.localEulerAngles.z;
  7823. string str240 = num.ToString("0.###");
  7824. strArray211[index159] = str240;
  7825. strArray208[6] = ":";
  7826. string str241 = string.Concat(strArray208);
  7827. string[] strArray212 = new string[7];
  7828. strArray212[0] = str241;
  7829. string[] strArray213 = strArray212;
  7830. int index160 = 1;
  7831. num = transform25.localEulerAngles.x;
  7832. string str242 = num.ToString("0.###");
  7833. strArray213[index160] = str242;
  7834. strArray212[2] = ",";
  7835. string[] strArray214 = strArray212;
  7836. int index161 = 3;
  7837. num = transform25.localEulerAngles.y;
  7838. string str243 = num.ToString("0.###");
  7839. strArray214[index161] = str243;
  7840. strArray212[4] = ",";
  7841. string[] strArray215 = strArray212;
  7842. int index162 = 5;
  7843. num = transform25.localEulerAngles.z;
  7844. string str244 = num.ToString("0.###");
  7845. strArray215[index162] = str244;
  7846. strArray212[6] = ":";
  7847. string str245 = string.Concat(strArray212);
  7848. string[] strArray216 = new string[6];
  7849. strArray216[0] = str245;
  7850. string[] strArray217 = strArray216;
  7851. int index163 = 1;
  7852. num = transform3.position.x;
  7853. string str246 = num.ToString("0.###");
  7854. strArray217[index163] = str246;
  7855. strArray216[2] = ",";
  7856. string[] strArray218 = strArray216;
  7857. int index164 = 3;
  7858. num = transform3.position.y;
  7859. string str247 = num.ToString("0.###");
  7860. strArray218[index164] = str247;
  7861. strArray216[4] = ",";
  7862. string[] strArray219 = strArray216;
  7863. int index165 = 5;
  7864. num = transform3.position.z;
  7865. string str248 = num.ToString("0.###");
  7866. strArray219[index165] = str248;
  7867. string str249 = string.Concat(strArray216);
  7868. str1 = str1 + str24 + str25 + str131 + str249;
  7869. if (i + 1 != maidCnt)
  7870. {
  7871. str1 += ";";
  7872. }
  7873. }
  7874. string str250 = "_" + lightKage[0] + ",";
  7875. string str251;
  7876. if (isBloom)
  7877. {
  7878. string str24 = str250 + "1," + bloom1 + "," + bloom2 + "," + bloom3 + "," + bloom4
  7879. + "," + bloom5 + ",";
  7880. str251 = !isBloomA ? str24 + "0," : str24 + "1,";
  7881. }
  7882. else
  7883. {
  7884. str251 = str250 + "0,0,0,0,0,0,0,";
  7885. }
  7886. string str252 =
  7887. (!isBlur
  7888. ? str251 + "0,0,0,0,0,"
  7889. : str251 + "1," + blur1 + "," + blur2 + "," + blur3 + ","
  7890. + blur4 + ",").ToString() + bokashi + "," + kamiyure + ",";
  7891. string str253;
  7892. if (isDepth)
  7893. {
  7894. string str24 = str252 + "1," + depth1 + "," + depth2 + "," + depth3 + "," + depth4
  7895. + ",";
  7896. str253 = !isDepthA ? str24 + "0," : str24 + "1,";
  7897. }
  7898. else
  7899. {
  7900. str253 = str252 + "0,0,0,0,0,0,";
  7901. }
  7902. string str254 = !isFog
  7903. ? str253 + "0,0,0,0,0,0,0,0,"
  7904. : str253 + "1," + fog1 + "," + fog2 + "," + fog3 + "," + fog4
  7905. + "," + fog5 + "," + fog6 + "," + fog7 + ",";
  7906. string str255 = !isSepia ? str254 + "0" : str254 + "1";
  7907. string str256 = "_";
  7908. for (int index15 = 1; index15 < lightList.Count; ++index15)
  7909. {
  7910. str256 = str256 + lightIndex[index15] + "," + lightColorR[index15] + ","
  7911. + lightColorG[index15] + "," + lightColorB[index15] + "," + lightX[index15] + ","
  7912. + lightY[index15] + "," + lightAkarusa[index15] + "," + lightRange[index15] + ";";
  7913. }
  7914. string str257 = "_";
  7915. for (int index15 = 0; index15 < doguBObject.Count; ++index15)
  7916. {
  7917. string str24 = str257 + doguBObject[index15].name.Replace("_", " ") + ",";
  7918. string[] strArray20 = new string[7];
  7919. strArray20[0] = str24;
  7920. string[] strArray21 = strArray20;
  7921. int index16 = 1;
  7922. num = doguBObject[index15].transform.localEulerAngles.x;
  7923. string str25 = num.ToString("0.###");
  7924. strArray21[index16] = str25;
  7925. strArray20[2] = ",";
  7926. string[] strArray22 = strArray20;
  7927. int index17 = 3;
  7928. num = doguBObject[index15].transform.localEulerAngles.y;
  7929. string str26 = num.ToString("0.###");
  7930. strArray22[index17] = str26;
  7931. strArray20[4] = ",";
  7932. string[] strArray23 = strArray20;
  7933. int index18 = 5;
  7934. num = doguBObject[index15].transform.localEulerAngles.z;
  7935. string str27 = num.ToString("0.###");
  7936. strArray23[index18] = str27;
  7937. strArray20[6] = ",";
  7938. string str28 = string.Concat(strArray20);
  7939. string[] strArray24 = new string[7];
  7940. strArray24[0] = str28;
  7941. string[] strArray25 = strArray24;
  7942. int index19 = 1;
  7943. num = doguBObject[index15].transform.position.x;
  7944. string str29 = num.ToString("0.###");
  7945. strArray25[index19] = str29;
  7946. strArray24[2] = ",";
  7947. string[] strArray26 = strArray24;
  7948. int index20 = 3;
  7949. num = doguBObject[index15].transform.position.y;
  7950. string str30 = num.ToString("0.###");
  7951. strArray26[index20] = str30;
  7952. strArray24[4] = ",";
  7953. string[] strArray27 = strArray24;
  7954. int index21 = 5;
  7955. num = doguBObject[index15].transform.position.z;
  7956. string str31 = num.ToString("0.###");
  7957. strArray27[index21] = str31;
  7958. strArray24[6] = ",";
  7959. string str32 = string.Concat(strArray24);
  7960. string[] strArray28 = new string[6];
  7961. strArray28[0] = str32;
  7962. string[] strArray29 = strArray28;
  7963. int index22 = 1;
  7964. num = doguBObject[index15].transform.localScale.x;
  7965. string str33 = num.ToString("0.###");
  7966. strArray29[index22] = str33;
  7967. strArray28[2] = ",";
  7968. string[] strArray30 = strArray28;
  7969. int index23 = 3;
  7970. num = doguBObject[index15].transform.localScale.y;
  7971. string str34 = num.ToString("0.###");
  7972. strArray30[index23] = str34;
  7973. strArray28[4] = ",";
  7974. string[] strArray31 = strArray28;
  7975. int index24 = 5;
  7976. num = doguBObject[index15].transform.localScale.z;
  7977. string str35 = num.ToString("0.###");
  7978. strArray31[index24] = str35;
  7979. str257 = string.Concat(strArray28) + ";";
  7980. }
  7981. string str258 = "_";
  7982. for (int index15 = 0; index15 < lightList.Count; ++index15)
  7983. {
  7984. str258 = str258 + lightList[index15].transform.position.x + ","
  7985. + lightList[index15].transform.position.y + "," + lightList[index15].transform.position.z
  7986. + ";";
  7987. }
  7988. string serializedScene = str36 + str1 + str255 + str256 + str257 + str258;
  7989. return serializedScene;
  7990. }
  7991. }
  7992. }