MultipleMaids.Update.cs 450 KB

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