MultipleMaids.Update.cs 451 KB

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