MultipleMaids.Update.cs 455 KB

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