MultipleMaids.Update.cs 445 KB

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