MultipleMaids.Update.cs 449 KB

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