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. SetFieldValue3<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. SetFieldValue4<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. SetFieldValue6<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["eyeclose"]] = float.Parse(strArray9[0]);
  2328. fieldValue2[(int)morph.hash["eyeclose2"]] = float.Parse(strArray9[1]);
  2329. fieldValue2[(int)morph.hash["eyeclose3"]] = float.Parse(strArray9[2]);
  2330. fieldValue2[(int)morph.hash["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["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. sortList.Clear();
  4373. maidCallScrollPos = new Vector2(0.0f, 0.0f);
  4374. poseScrollPos = new Vector2(0.0f, 0.0f);
  4375. faceScrollPos = new Vector2(0.0f, 0.0f);
  4376. bgScrollPos = new Vector2(0.0f, 0.0f);
  4377. bg2ScrollPos = new Vector2(0.0f, 0.0f);
  4378. if (!isVR)
  4379. {
  4380. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  4381. component.mode = Vignetting.AberrationMode.Simple;
  4382. component.intensity = -3.98f;
  4383. component.chromaticAberration = -0.75f;
  4384. component.axialAberration = 1.18f;
  4385. component.blurSpread = 4.19f;
  4386. component.luminanceDependency = 0.494f;
  4387. component.blurDistance = 1.71f;
  4388. component.enabled = false;
  4389. }
  4390. doguIndex.Clear();
  4391. doguSelectIndex = 0;
  4392. for (int index = 0; index < doguObject.Count; ++index)
  4393. {
  4394. if (doguObject[index] != null)
  4395. {
  4396. GraphicsUtils.Destroy(doguObject[index]);
  4397. doguObject[index] = null;
  4398. }
  4399. }
  4400. doguObject.Clear();
  4401. }
  4402. }
  4403. for (int index = 0; index < maidCnt; ++index)
  4404. {
  4405. if (maidArray[index] && maidArray[index].Visible)
  4406. {
  4407. Maid maid = maidArray[index];
  4408. if (isLook[index] != isLookn[index])
  4409. {
  4410. isLookn[index] = isLook[index];
  4411. if (isLook[index])
  4412. {
  4413. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4414. maid.body0.boHeadToCam = true;
  4415. maid.body0.boEyeToCam = true;
  4416. maid.body0.trsLookTarget = null;
  4417. }
  4418. else
  4419. {
  4420. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4421. maid.body0.boHeadToCam = true;
  4422. maid.body0.boEyeToCam = true;
  4423. }
  4424. }
  4425. }
  4426. }
  4427. if (maidArray[selectMaidIndex] && maidArray[selectMaidIndex].Visible
  4428. && (!faceFlg && !poseFlg && !sceneFlg && !kankyoFlg && !kankyo2Flg
  4429. || sceneFlg || kankyoFlg || kankyo2Flg))
  4430. {
  4431. for (int index = 0; index < maidCnt; ++index)
  4432. {
  4433. if (maidArray[index] && !maidArray[index].boMabataki)
  4434. {
  4435. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  4436. }
  4437. }
  4438. }
  4439. if (maidArray[selectMaidIndex] && maidArray[selectMaidIndex].Visible && poseFlg)
  4440. {
  4441. if (isPoseInit)
  4442. {
  4443. if (!isDanceChu)
  4444. {
  4445. Maid maid = maidArray[selectMaidIndex];
  4446. isPoseInit = false;
  4447. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  4448. || maid.body0.GetMask(TBody.SlotID.onepiece);
  4449. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  4450. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  4451. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  4452. isMaid = maid.body0.GetMask(TBody.SlotID.body);
  4453. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  4454. || maid.body0.GetMask(TBody.SlotID.accHead)
  4455. || maid.body0.GetMask(TBody.SlotID.accKamiSubL)
  4456. || maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  4457. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  4458. || maid.body0.GetMask(TBody.SlotID.accKami_2_)
  4459. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  4460. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  4461. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  4462. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  4463. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  4464. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  4465. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  4466. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  4467. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  4468. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  4469. eyeclose = fieldValue2[(int)morph.hash["eyeclose"]];
  4470. eyeclose2 = fieldValue2[(int)morph.hash["eyeclose2"]];
  4471. eyeclose3 = fieldValue2[(int)morph.hash["eyeclose3"]];
  4472. eyeclose6 = fieldValue2[(int)morph.hash["eyeclose6"]];
  4473. hitomih = fieldValue1[(int)morph.hash["hitomih"]];
  4474. hitomis = fieldValue1[(int)morph.hash["hitomis"]];
  4475. mayuha = fieldValue1[(int)morph.hash["mayuha"]];
  4476. mayuup = fieldValue1[(int)morph.hash["mayuup"]];
  4477. mayuv = fieldValue1[(int)morph.hash["mayuv"]];
  4478. mayuvhalf = fieldValue1[(int)morph.hash["mayuvhalf"]];
  4479. moutha = fieldValue1[(int)morph.hash["moutha"]];
  4480. mouths = fieldValue1[(int)morph.hash["mouths"]];
  4481. mouthdw = fieldValue1[(int)morph.hash["mouthdw"]];
  4482. mouthup = fieldValue1[(int)morph.hash["mouthup"]];
  4483. tangout = fieldValue1[(int)morph.hash["tangout"]];
  4484. tangup = fieldValue1[(int)morph.hash["tangup"]];
  4485. eyebig = fieldValue1[(int)morph.hash["eyebig"]];
  4486. eyeclose5 = fieldValue2[(int)morph.hash["eyeclose5"]];
  4487. mayuw = fieldValue1[(int)morph.hash["mayuw"]];
  4488. mouthhe = fieldValue1[(int)morph.hash["mouthhe"]];
  4489. mouthc = fieldValue1[(int)morph.hash["mouthc"]];
  4490. mouthi = fieldValue1[(int)morph.hash["mouthi"]];
  4491. mouthuphalf = fieldValue1[(int)morph.hash["mouthuphalf"]];
  4492. try
  4493. {
  4494. tangopen = fieldValue1[(int)morph.hash["tangopen"]];
  4495. }
  4496. catch { }
  4497. isNamida = fieldValue1[(int)morph.hash["namida"]] > 0.0;
  4498. isTear1 = fieldValue1[(int)morph.hash["tear1"]] > 0.0;
  4499. isTear2 = fieldValue1[(int)morph.hash["tear2"]] > 0.0;
  4500. isTear3 = fieldValue1[(int)morph.hash["tear3"]] > 0.0;
  4501. isShock = fieldValue1[(int)morph.hash["shock"]] > 0.0;
  4502. isYodare = fieldValue1[(int)morph.hash["yodare"]] > 0.0;
  4503. isHoho = fieldValue1[(int)morph.hash["hoho"]] > 0.0;
  4504. isHoho2 = fieldValue1[(int)morph.hash["hoho2"]] > 0.0;
  4505. isHohos = fieldValue1[(int)morph.hash["hohos"]] > 0.0;
  4506. isHohol = fieldValue1[(int)morph.hash["hohol"]] > 0.0;
  4507. isToothoff = fieldValue1[(int)morph.hash["toothoff"]] > 0.0;
  4508. isNosefook = fieldValue1[(int)morph.hash["nosefook"]] > 0.0;
  4509. }
  4510. }
  4511. else
  4512. {
  4513. Maid maid = maidArray[selectMaidIndex];
  4514. if (goSlot[(int)selectList[selectMaidIndex]] != null)
  4515. {
  4516. maidArray[selectMaidIndex].body0.goSlot =
  4517. new List<TBodySkin>(goSlot[(int)selectList[selectMaidIndex]]);
  4518. for (int index = 0; index < bodyHit[(int)selectList[selectMaidIndex]].Count; ++index)
  4519. {
  4520. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit =
  4521. bodyHit[(int)selectList[selectMaidIndex]][index];
  4522. }
  4523. }
  4524. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  4525. {
  4526. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  4527. }
  4528. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  4529. {
  4530. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  4531. }
  4532. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  4533. {
  4534. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  4535. }
  4536. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  4537. {
  4538. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  4539. }
  4540. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  4541. {
  4542. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  4543. }
  4544. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  4545. {
  4546. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  4547. }
  4548. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  4549. {
  4550. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  4551. }
  4552. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  4553. {
  4554. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  4555. }
  4556. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  4557. {
  4558. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  4559. }
  4560. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  4561. {
  4562. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  4563. }
  4564. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  4565. {
  4566. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  4567. }
  4568. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  4569. {
  4570. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  4571. }
  4572. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  4573. {
  4574. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  4575. }
  4576. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  4577. {
  4578. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  4579. }
  4580. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  4581. {
  4582. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  4583. }
  4584. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  4585. {
  4586. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  4587. }
  4588. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  4589. {
  4590. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  4591. }
  4592. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  4593. {
  4594. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  4595. }
  4596. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  4597. {
  4598. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  4599. }
  4600. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  4601. {
  4602. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  4603. }
  4604. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  4605. {
  4606. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  4607. if (mekure1[selectMaidIndex])
  4608. {
  4609. maid.ItemChangeTemp("skirt", "めくれスカート");
  4610. maid.ItemChangeTemp("onepiece", "めくれスカート");
  4611. mekure2[selectMaidIndex] = false;
  4612. mekure2n[selectMaidIndex] = false;
  4613. }
  4614. else
  4615. {
  4616. ResetProp(maid, MPN.skirt);
  4617. ResetProp(maid, MPN.onepiece);
  4618. }
  4619. maid.AllProcPropSeqStart();
  4620. }
  4621. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  4622. {
  4623. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  4624. if (mekure2[selectMaidIndex])
  4625. {
  4626. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  4627. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  4628. mekure1[selectMaidIndex] = false;
  4629. mekure1n[selectMaidIndex] = false;
  4630. }
  4631. else
  4632. {
  4633. ResetProp(maid, MPN.skirt);
  4634. ResetProp(maid, MPN.onepiece);
  4635. }
  4636. maid.AllProcPropSeqStart();
  4637. }
  4638. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  4639. {
  4640. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  4641. if (zurasi[selectMaidIndex])
  4642. {
  4643. maid.ItemChangeTemp("panz", "パンツずらし");
  4644. maid.ItemChangeTemp("mizugi", "パンツずらし");
  4645. }
  4646. else
  4647. {
  4648. ResetProp(maid, MPN.panz);
  4649. ResetProp(maid, MPN.mizugi);
  4650. }
  4651. maid.AllProcPropSeqStart();
  4652. }
  4653. if (!isDanceChu)
  4654. {
  4655. if (maid.body0.GetMask(TBody.SlotID.body) != isMaid)
  4656. {
  4657. Hashtable fieldValue = GetFieldValue<TBody, Hashtable>(maid.body0, "m_hFoceHide");
  4658. fieldValue[TBody.SlotID.body] = isMaid;
  4659. fieldValue[TBody.SlotID.head] = isMaid;
  4660. fieldValue[TBody.SlotID.eye] = isMaid;
  4661. fieldValue[TBody.SlotID.hairF] = isMaid;
  4662. fieldValue[TBody.SlotID.hairR] = isMaid;
  4663. fieldValue[TBody.SlotID.hairS] = isMaid;
  4664. fieldValue[TBody.SlotID.hairT] = isMaid;
  4665. fieldValue[TBody.SlotID.hairAho] = isMaid;
  4666. fieldValue[TBody.SlotID.chikubi] = isMaid;
  4667. fieldValue[TBody.SlotID.underhair] = isMaid;
  4668. fieldValue[TBody.SlotID.moza] = isMaid;
  4669. if (maid.body0.goSlot[19].m_strModelFileName.Contains("melala_body"))
  4670. {
  4671. fieldValue[TBody.SlotID.accHana] = isMaid;
  4672. }
  4673. maid.body0.FixMaskFlag();
  4674. maid.body0.FixVisibleFlag(false);
  4675. }
  4676. if (isLook[selectMaidIndex] != isLookn[selectMaidIndex])
  4677. {
  4678. isLookn[selectMaidIndex] = isLook[selectMaidIndex];
  4679. if (isLook[selectMaidIndex])
  4680. {
  4681. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4682. maid.body0.boHeadToCam = true;
  4683. maid.body0.boEyeToCam = true;
  4684. maid.body0.trsLookTarget = null;
  4685. }
  4686. else
  4687. {
  4688. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4689. maid.body0.boHeadToCam = true;
  4690. maid.body0.boEyeToCam = true;
  4691. }
  4692. }
  4693. if (isLook[selectMaidIndex])
  4694. {
  4695. if (maid.body0.offsetLookTarget.x != (double)lookY[selectMaidIndex])
  4696. {
  4697. int num = !isLock[selectMaidIndex] ? 1 : (lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  4698. maid.body0.offsetLookTarget =
  4699. num != 0
  4700. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  4701. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  4702. }
  4703. if (lookX[selectMaidIndex] != (double)lookXn[selectMaidIndex])
  4704. {
  4705. lookXn[selectMaidIndex] = lookX[selectMaidIndex];
  4706. maid.body0.offsetLookTarget = new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex]);
  4707. }
  4708. if (lookY[selectMaidIndex] != (double)lookYn[selectMaidIndex])
  4709. {
  4710. lookYn[selectMaidIndex] = lookY[selectMaidIndex];
  4711. int num = !isLock[selectMaidIndex] ? 1 : (lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  4712. maid.body0.offsetLookTarget =
  4713. num != 0
  4714. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  4715. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  4716. }
  4717. }
  4718. if (isHanten)
  4719. {
  4720. isHanten = false;
  4721. SetHanten(maid, selectMaidIndex);
  4722. }
  4723. if (hanten[selectMaidIndex] != hantenn[selectMaidIndex])
  4724. {
  4725. hantenn[selectMaidIndex] = hanten[selectMaidIndex];
  4726. isStop[selectMaidIndex] = true;
  4727. isLock[selectMaidIndex] = true;
  4728. isHanten = true;
  4729. }
  4730. if (voice1[selectMaidIndex] != voice1n[selectMaidIndex])
  4731. {
  4732. voice1n[selectMaidIndex] = voice1[selectMaidIndex];
  4733. if (voice1[selectMaidIndex])
  4734. {
  4735. zFlg[selectMaidIndex] = true;
  4736. xFlg[selectMaidIndex] = false;
  4737. voice2[selectMaidIndex] = false;
  4738. voice2n[selectMaidIndex] = false;
  4739. }
  4740. else
  4741. {
  4742. zFlg[selectMaidIndex] = false;
  4743. }
  4744. }
  4745. if (voice2[selectMaidIndex] != voice2n[selectMaidIndex])
  4746. {
  4747. voice2n[selectMaidIndex] = voice2[selectMaidIndex];
  4748. if (voice2[selectMaidIndex])
  4749. {
  4750. xFlg[selectMaidIndex] = true;
  4751. zFlg[selectMaidIndex] = false;
  4752. voice1[selectMaidIndex] = false;
  4753. voice1n[selectMaidIndex] = false;
  4754. }
  4755. else
  4756. {
  4757. xFlg[selectMaidIndex] = false;
  4758. }
  4759. }
  4760. for (int index = 0; index < maidCnt; ++index)
  4761. {
  4762. if (!maidArray[index].boMabataki)
  4763. {
  4764. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  4765. }
  4766. }
  4767. }
  4768. }
  4769. }
  4770. if (maidArray[selectMaidIndex] && maidArray[selectMaidIndex].Visible && (isF6 || okFlg && faceFlg))
  4771. {
  4772. if (isFaceInit)
  4773. {
  4774. if (!isDanceChu)
  4775. {
  4776. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  4777. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  4778. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  4779. Maid maid = maidArray[selectMaidIndex];
  4780. maidArray[selectMaidIndex].boMabataki = false;
  4781. morph.EyeMabataki = 0.0f;
  4782. isFaceInit = false;
  4783. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  4784. eyeclose = fieldValue2[(int)morph.hash["eyeclose"]];
  4785. eyeclose2 = fieldValue2[(int)morph.hash["eyeclose2"]];
  4786. eyeclose3 = fieldValue2[(int)morph.hash["eyeclose3"]];
  4787. eyeclose6 = fieldValue2[(int)morph.hash["eyeclose6"]];
  4788. hitomih = fieldValue1[(int)morph.hash["hitomih"]];
  4789. hitomis = fieldValue1[(int)morph.hash["hitomis"]];
  4790. mayuha = fieldValue1[(int)morph.hash["mayuha"]];
  4791. mayuup = fieldValue1[(int)morph.hash["mayuup"]];
  4792. mayuv = fieldValue1[(int)morph.hash["mayuv"]];
  4793. mayuvhalf = fieldValue1[(int)morph.hash["mayuvhalf"]];
  4794. moutha = fieldValue1[(int)morph.hash["moutha"]];
  4795. mouths = fieldValue1[(int)morph.hash["mouths"]];
  4796. mouthdw = fieldValue1[(int)morph.hash["mouthdw"]];
  4797. mouthup = fieldValue1[(int)morph.hash["mouthup"]];
  4798. tangout = fieldValue1[(int)morph.hash["tangout"]];
  4799. tangup = fieldValue1[(int)morph.hash["tangup"]];
  4800. eyebig = fieldValue1[(int)morph.hash["eyebig"]];
  4801. eyeclose5 = fieldValue2[(int)morph.hash["eyeclose5"]];
  4802. mayuw = fieldValue1[(int)morph.hash["mayuw"]];
  4803. mouthhe = fieldValue1[(int)morph.hash["mouthhe"]];
  4804. mouthc = fieldValue1[(int)morph.hash["mouthc"]];
  4805. mouthi = fieldValue1[(int)morph.hash["mouthi"]];
  4806. mouthuphalf = fieldValue1[(int)morph.hash["mouthuphalf"]];
  4807. try
  4808. {
  4809. tangopen = fieldValue1[(int)morph.hash["tangopen"]];
  4810. }
  4811. catch { }
  4812. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  4813. || maid.body0.GetMask(TBody.SlotID.onepiece);
  4814. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  4815. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  4816. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  4817. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  4818. || maid.body0.GetMask(TBody.SlotID.accHead)
  4819. || maid.body0.GetMask(TBody.SlotID.accKamiSubL)
  4820. || maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  4821. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  4822. || maid.body0.GetMask(TBody.SlotID.accKami_2_)
  4823. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  4824. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  4825. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  4826. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  4827. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  4828. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  4829. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  4830. isNamida = fieldValue1[(int)morph.hash["namida"]] > 0.0;
  4831. isTear1 = fieldValue1[(int)morph.hash["tear1"]] > 0.0;
  4832. isTear2 = fieldValue1[(int)morph.hash["tear2"]] > 0.0;
  4833. isTear3 = fieldValue1[(int)morph.hash["tear3"]] > 0.0;
  4834. isShock = fieldValue1[(int)morph.hash["shock"]] > 0.0;
  4835. isYodare = fieldValue1[(int)morph.hash["yodare"]] > 0.0;
  4836. isHoho = fieldValue1[(int)morph.hash["hoho"]] > 0.0;
  4837. isHoho2 = fieldValue1[(int)morph.hash["hoho2"]] > 0.0;
  4838. isHohos = fieldValue1[(int)morph.hash["hohos"]] > 0.0;
  4839. isHohol = fieldValue1[(int)morph.hash["hohol"]] > 0.0;
  4840. isToothoff = fieldValue1[(int)morph.hash["toothoff"]] > 0.0;
  4841. isNosefook = fieldValue1[(int)morph.hash["nosefook"]] > 0.0;
  4842. }
  4843. }
  4844. else
  4845. {
  4846. Maid maid = maidArray[selectMaidIndex];
  4847. if (!yotogiFlg && sceneLevel != 5 && sceneLevel != 3)
  4848. {
  4849. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  4850. {
  4851. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  4852. }
  4853. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  4854. {
  4855. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  4856. }
  4857. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  4858. {
  4859. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  4860. }
  4861. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  4862. {
  4863. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  4864. }
  4865. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  4866. {
  4867. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  4868. }
  4869. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  4870. {
  4871. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  4872. }
  4873. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  4874. {
  4875. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  4876. }
  4877. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  4878. {
  4879. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  4880. }
  4881. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  4882. {
  4883. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  4884. }
  4885. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  4886. {
  4887. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  4888. }
  4889. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  4890. {
  4891. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  4892. }
  4893. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  4894. {
  4895. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  4896. }
  4897. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  4898. {
  4899. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  4900. }
  4901. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  4902. {
  4903. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  4904. }
  4905. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  4906. {
  4907. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  4908. }
  4909. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  4910. {
  4911. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  4912. }
  4913. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  4914. {
  4915. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  4916. }
  4917. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  4918. {
  4919. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  4920. }
  4921. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  4922. {
  4923. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  4924. }
  4925. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  4926. {
  4927. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  4928. }
  4929. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  4930. {
  4931. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  4932. if (mekure1[selectMaidIndex])
  4933. {
  4934. maid.ItemChangeTemp("skirt", "めくれスカート");
  4935. maid.ItemChangeTemp("onepiece", "めくれスカート");
  4936. mekure2[selectMaidIndex] = false;
  4937. mekure2n[selectMaidIndex] = false;
  4938. }
  4939. else
  4940. {
  4941. ResetProp(maid, MPN.skirt);
  4942. ResetProp(maid, MPN.onepiece);
  4943. }
  4944. maid.AllProcPropSeqStart();
  4945. }
  4946. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  4947. {
  4948. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  4949. if (mekure2[selectMaidIndex])
  4950. {
  4951. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  4952. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  4953. mekure1[selectMaidIndex] = false;
  4954. mekure1n[selectMaidIndex] = false;
  4955. }
  4956. else
  4957. {
  4958. ResetProp(maid, MPN.skirt);
  4959. ResetProp(maid, MPN.onepiece);
  4960. }
  4961. maid.AllProcPropSeqStart();
  4962. }
  4963. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  4964. {
  4965. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  4966. if (zurasi[selectMaidIndex])
  4967. {
  4968. maid.ItemChangeTemp("panz", "パンツずらし");
  4969. maid.ItemChangeTemp("mizugi", "パンツずらし");
  4970. }
  4971. else
  4972. {
  4973. ResetProp(maid, MPN.panz);
  4974. ResetProp(maid, MPN.mizugi);
  4975. }
  4976. maid.AllProcPropSeqStart();
  4977. }
  4978. }
  4979. if (!isDanceChu)
  4980. {
  4981. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  4982. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  4983. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  4984. fieldValue2[(int)morph.hash["eyeclose"]] = eyeclose;
  4985. fieldValue2[(int)morph.hash["eyeclose2"]] = eyeclose2;
  4986. fieldValue2[(int)morph.hash["eyeclose3"]] = eyeclose3;
  4987. fieldValue2[(int)morph.hash["eyeclose6"]] = eyeclose6;
  4988. fieldValue1[(int)morph.hash["hitomih"]] = hitomih;
  4989. fieldValue1[(int)morph.hash["hitomis"]] = hitomis;
  4990. fieldValue1[(int)morph.hash["mayuha"]] = mayuha;
  4991. fieldValue1[(int)morph.hash["mayuup"]] = mayuup;
  4992. fieldValue1[(int)morph.hash["mayuv"]] = mayuv;
  4993. fieldValue1[(int)morph.hash["mayuvhalf"]] = mayuvhalf;
  4994. fieldValue1[(int)morph.hash["tangout"]] = tangout;
  4995. fieldValue1[(int)morph.hash["tangup"]] = tangup;
  4996. fieldValue1[(int)morph.hash["eyebig"]] = eyebig;
  4997. fieldValue2[(int)morph.hash["eyeclose5"]] = eyeclose5;
  4998. fieldValue1[(int)morph.hash["mayuw"]] = mayuw;
  4999. try
  5000. {
  5001. fieldValue1[(int)morph.hash["tangopen"]] = tangopen;
  5002. }
  5003. catch { }
  5004. if (!isDanceChu)
  5005. {
  5006. fieldValue1[(int)morph.hash["moutha"]] = moutha;
  5007. fieldValue1[(int)morph.hash["mouths"]] = mouths;
  5008. fieldValue1[(int)morph.hash["mouthdw"]] = mouthdw;
  5009. fieldValue1[(int)morph.hash["mouthup"]] = mouthup;
  5010. fieldValue1[(int)morph.hash["mouthhe"]] = mouthhe;
  5011. fieldValue1[(int)morph.hash["mouthc"]] = mouthc;
  5012. fieldValue1[(int)morph.hash["mouthi"]] = mouthi;
  5013. fieldValue1[(int)morph.hash["mouthuphalf"]] = mouthuphalf;
  5014. }
  5015. if (isNamida)
  5016. {
  5017. fieldValue1[(int)morph.hash["namida"]] = 1f;
  5018. }
  5019. else
  5020. {
  5021. fieldValue1[(int)morph.hash["namida"]] = 0.0f;
  5022. }
  5023. if (isTear1)
  5024. {
  5025. fieldValue1[(int)morph.hash["tear1"]] = 1f;
  5026. }
  5027. else
  5028. {
  5029. fieldValue1[(int)morph.hash["tear1"]] = 0.0f;
  5030. }
  5031. if (isTear2)
  5032. {
  5033. fieldValue1[(int)morph.hash["tear2"]] = 1f;
  5034. }
  5035. else
  5036. {
  5037. fieldValue1[(int)morph.hash["tear2"]] = 0.0f;
  5038. }
  5039. if (isTear3)
  5040. {
  5041. fieldValue1[(int)morph.hash["tear3"]] = 1f;
  5042. }
  5043. else
  5044. {
  5045. fieldValue1[(int)morph.hash["tear3"]] = 0.0f;
  5046. }
  5047. if (isShock)
  5048. {
  5049. fieldValue1[(int)morph.hash["shock"]] = 1f;
  5050. }
  5051. else
  5052. {
  5053. fieldValue1[(int)morph.hash["shock"]] = 0.0f;
  5054. }
  5055. if (isYodare)
  5056. {
  5057. fieldValue1[(int)morph.hash["yodare"]] = 1f;
  5058. }
  5059. else
  5060. {
  5061. fieldValue1[(int)morph.hash["yodare"]] = 0.0f;
  5062. }
  5063. if (isHoho)
  5064. {
  5065. fieldValue1[(int)morph.hash["hoho"]] = 0.5f;
  5066. }
  5067. else
  5068. {
  5069. fieldValue1[(int)morph.hash["hoho"]] = 0.0f;
  5070. }
  5071. if (isHoho2)
  5072. {
  5073. fieldValue1[(int)morph.hash["hoho2"]] = 0.5f;
  5074. }
  5075. else
  5076. {
  5077. fieldValue1[(int)morph.hash["hoho2"]] = 0.0f;
  5078. }
  5079. if (isHohos)
  5080. {
  5081. fieldValue1[(int)morph.hash["hohos"]] = 1f;
  5082. }
  5083. else
  5084. {
  5085. fieldValue1[(int)morph.hash["hohos"]] = 0.0f;
  5086. }
  5087. if (isHohol)
  5088. {
  5089. fieldValue1[(int)morph.hash["hohol"]] = 1f;
  5090. }
  5091. else
  5092. {
  5093. fieldValue1[(int)morph.hash["hohol"]] = 0.0f;
  5094. }
  5095. if (isToothoff)
  5096. {
  5097. fieldValue1[(int)morph.hash["toothoff"]] = 1f;
  5098. }
  5099. else
  5100. {
  5101. fieldValue1[(int)morph.hash["toothoff"]] = 0.0f;
  5102. }
  5103. morph.boNoseFook = isNosefook;
  5104. for (int index = 0; index < maidCnt; ++index)
  5105. {
  5106. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5107. }
  5108. }
  5109. }
  5110. }
  5111. if (isF6 && !okFlg && (!escFlg && Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Tab)))
  5112. {
  5113. bGui = !bGui;
  5114. }
  5115. if (isF6 && maidArray[0] != null && maidArray[0].Visible)
  5116. {
  5117. for (int index = 0; index < 999; ++index)
  5118. {
  5119. if (gDogu[index] != null)
  5120. {
  5121. gDogu[index].GetComponent<Renderer>().enabled = false;
  5122. gDogu[index].SetActive(false);
  5123. if (mDogu[index].del)
  5124. {
  5125. mDogu[index].del = false;
  5126. GraphicsUtils.Destroy(doguBObject[index]);
  5127. doguBObject.RemoveAt(index);
  5128. }
  5129. else if (mDogu[index].count > 0)
  5130. {
  5131. --mDogu[index].count;
  5132. if (doguBObject.Count > index && doguBObject[index] != null
  5133. && doguBObject[index].name.StartsWith("Particle/p"))
  5134. {
  5135. if (mDogu[index].count == 1)
  5136. {
  5137. doguBObject[index].SetActive(false);
  5138. }
  5139. if (mDogu[index].count == 0)
  5140. {
  5141. doguBObject[index].SetActive(true);
  5142. switch (doguBObject[index].name)
  5143. {
  5144. case "Particle/pLineY":
  5145. mDogu[index].count = 180;
  5146. break;
  5147. case "Particle/pLineP02":
  5148. mDogu[index].count = 115;
  5149. break;
  5150. case "Particle/pLine_act2":
  5151. mDogu[index].count = 90;
  5152. break;
  5153. case "Particle/pHeart01":
  5154. mDogu[index].count = 77;
  5155. break;
  5156. }
  5157. }
  5158. }
  5159. }
  5160. }
  5161. }
  5162. ikMode2 = !Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Shift)
  5163. ? (!Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Ctrl)
  5164. ? (!Input.GetKey(KeyCode.X) || !getModKeyPressing(modKey.Shift)
  5165. ? (!Input.GetKey(KeyCode.X)
  5166. ? (!Input.GetKey(KeyCode.Z)
  5167. ? (!Input.GetKey(KeyCode.C)
  5168. ? (!Input.GetKey(KeyCode.D) ? 0 : 15)
  5169. : 13)
  5170. : 10)
  5171. : 9)
  5172. : 14)
  5173. : 12)
  5174. : 11;
  5175. if (gBg != null)
  5176. {
  5177. if (!isCube3)
  5178. {
  5179. gBg.GetComponent<Renderer>().enabled = false;
  5180. gBg.SetActive(false);
  5181. }
  5182. else
  5183. {
  5184. if (ikMode2 > 0 && ikMode2 != 15)
  5185. {
  5186. gBg.GetComponent<Renderer>().enabled = true;
  5187. gBg.SetActive(true);
  5188. }
  5189. else
  5190. {
  5191. gBg.GetComponent<Renderer>().enabled = false;
  5192. gBg.SetActive(false);
  5193. }
  5194. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  5195. {
  5196. gBg.GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  5197. }
  5198. if (ikMode2 == 9 || ikMode2 == 14)
  5199. {
  5200. gBg.GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  5201. mBg.Update();
  5202. }
  5203. if (ikMode2 == 13)
  5204. {
  5205. gBg.GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  5206. mBg.Update();
  5207. }
  5208. if (ikMode2 == 13)
  5209. {
  5210. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && gBg)
  5211. {
  5212. mBg.ido = 5;
  5213. mBg.reset = true;
  5214. }
  5215. else
  5216. {
  5217. gBg.transform.position = bg.position;
  5218. gBg.transform.eulerAngles = bg.eulerAngles;
  5219. mBg.maid = bgObject;
  5220. mBg.ido = 5;
  5221. }
  5222. }
  5223. else if (ikMode2 == 11)
  5224. {
  5225. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && gBg)
  5226. {
  5227. mBg.ido = 3;
  5228. mBg.reset = true;
  5229. }
  5230. else
  5231. {
  5232. gBg.transform.position = bg.position;
  5233. gBg.transform.eulerAngles = bg.eulerAngles;
  5234. mBg.maid = bgObject;
  5235. mBg.ido = 3;
  5236. }
  5237. }
  5238. else if (ikMode2 == 12)
  5239. {
  5240. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && gBg)
  5241. {
  5242. mBg.ido = 2;
  5243. mBg.reset = true;
  5244. }
  5245. else
  5246. {
  5247. gBg.transform.position = bg.position;
  5248. gBg.transform.eulerAngles = bg.eulerAngles;
  5249. mBg.maid = bgObject;
  5250. mBg.ido = 2;
  5251. }
  5252. }
  5253. else if (ikMode2 == 10)
  5254. {
  5255. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && gBg)
  5256. {
  5257. mBg.ido = 1;
  5258. mBg.reset = true;
  5259. }
  5260. else
  5261. {
  5262. gBg.transform.position = bg.position;
  5263. gBg.transform.eulerAngles = bg.eulerAngles;
  5264. mBg.maid = bgObject;
  5265. mBg.ido = 1;
  5266. }
  5267. }
  5268. else if (ikMode2 == 9)
  5269. {
  5270. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && gBg)
  5271. {
  5272. mBg.ido = 4;
  5273. mBg.reset = true;
  5274. }
  5275. else
  5276. {
  5277. gBg.transform.position = bg.position;
  5278. gBg.transform.eulerAngles = bg.eulerAngles;
  5279. mBg.maid = bgObject;
  5280. mBg.ido = 4;
  5281. }
  5282. }
  5283. else if (ikMode2 == 14)
  5284. {
  5285. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && gBg)
  5286. {
  5287. mBg.ido = 6;
  5288. mBg.reset = true;
  5289. }
  5290. else
  5291. {
  5292. gBg.transform.position = bg.position;
  5293. gBg.transform.eulerAngles = bg.eulerAngles;
  5294. mBg.maid = bgObject;
  5295. mBg.ido = 6;
  5296. }
  5297. }
  5298. }
  5299. }
  5300. for (int index = 0; index < lightIndex.Count; ++index)
  5301. {
  5302. if (gLight[0] == null)
  5303. {
  5304. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5305. gLight[0].GetComponent<Renderer>().material =
  5306. new Material(Shader.Find("Transparent/Diffuse")) { color = new Color(0.5f, 0.5f, 1f, 0.8f) };
  5307. gLight[0].layer = 8;
  5308. gLight[0].GetComponent<Renderer>().enabled = false;
  5309. gLight[0].SetActive(false);
  5310. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  5311. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  5312. mLight[0].obj = gLight[0];
  5313. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  5314. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  5315. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  5316. mLight[0].ido = 1;
  5317. mLight[0].isScale = false;
  5318. }
  5319. if (gLight[index] != null)
  5320. {
  5321. if (!isCube4)
  5322. {
  5323. gLight[index].GetComponent<Renderer>().enabled = false;
  5324. gLight[index].SetActive(false);
  5325. }
  5326. else if (lightList[index].GetComponent<Light>().type == LightType.Spot
  5327. || lightList[index].GetComponent<Light>().type == LightType.Point)
  5328. {
  5329. if (ikMode2 > 0 && ikMode2 != 15)
  5330. {
  5331. gLight[index].GetComponent<Renderer>().enabled = true;
  5332. gLight[index].SetActive(true);
  5333. }
  5334. else
  5335. {
  5336. gLight[index].GetComponent<Renderer>().enabled = false;
  5337. gLight[index].SetActive(false);
  5338. mLight[index].isAlt = false;
  5339. }
  5340. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  5341. {
  5342. gLight[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  5343. if (mLight[index].isAlt)
  5344. {
  5345. gLight[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  5346. }
  5347. }
  5348. if (ikMode2 == 9 || ikMode2 == 14)
  5349. {
  5350. gLight[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  5351. mLight[index].Update();
  5352. }
  5353. if (ikMode2 == 13)
  5354. {
  5355. gLight[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  5356. mLight[index].Update();
  5357. }
  5358. if (ikMode2 == 13)
  5359. {
  5360. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && gLight[index])
  5361. {
  5362. mLight[index].ido = 15;
  5363. mLight[index].reset = true;
  5364. }
  5365. else
  5366. {
  5367. if (lightList[index].transform.localScale.x == 1.0)
  5368. {
  5369. lightList[index].transform.localScale =
  5370. new Vector3(lightRange[index], lightRange[index], lightRange[index]);
  5371. }
  5372. lightRange[index] = lightList[index].transform.localScale.x;
  5373. gLight[index].transform.position = lightList[index].transform.position;
  5374. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5375. mLight[index].maid = lightList[index];
  5376. mLight[index].ido = 15;
  5377. }
  5378. }
  5379. else if (ikMode2 == 11)
  5380. {
  5381. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && gLight[index])
  5382. {
  5383. mLight[index].ido = 3;
  5384. mLight[index].reset = true;
  5385. }
  5386. else
  5387. {
  5388. gLight[index].transform.position = lightList[index].transform.position;
  5389. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5390. lightX[index] = gLight[index].transform.eulerAngles.x;
  5391. lightY[index] = gLight[index].transform.eulerAngles.y;
  5392. mLight[index].maid = lightList[index];
  5393. mLight[index].ido = 3;
  5394. }
  5395. }
  5396. else if (ikMode2 == 12)
  5397. {
  5398. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && gLight[index])
  5399. {
  5400. mLight[index].ido = 2;
  5401. mLight[index].reset = true;
  5402. }
  5403. else
  5404. {
  5405. gLight[index].transform.position = lightList[index].transform.position;
  5406. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5407. mLight[index].maid = lightList[index];
  5408. mLight[index].ido = 2;
  5409. }
  5410. }
  5411. else if (ikMode2 == 10)
  5412. {
  5413. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && gLight[index])
  5414. {
  5415. mLight[index].ido = 1;
  5416. mLight[index].reset = true;
  5417. }
  5418. else
  5419. {
  5420. gLight[index].transform.position = lightList[index].transform.position;
  5421. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5422. mLight[index].maid = lightList[index];
  5423. mLight[index].ido = 1;
  5424. }
  5425. }
  5426. else if (ikMode2 == 9)
  5427. {
  5428. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && gLight[index])
  5429. {
  5430. mLight[index].ido = 4;
  5431. mLight[index].reset = true;
  5432. }
  5433. else
  5434. {
  5435. gLight[index].transform.position = lightList[index].transform.position;
  5436. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5437. lightX[index] = gLight[index].transform.eulerAngles.x;
  5438. lightY[index] = gLight[index].transform.eulerAngles.y;
  5439. mLight[index].maid = lightList[index];
  5440. mLight[index].ido = 4;
  5441. }
  5442. }
  5443. else if (ikMode2 == 14)
  5444. {
  5445. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && gLight[index])
  5446. {
  5447. mLight[index].ido = 6;
  5448. mLight[index].reset = true;
  5449. }
  5450. else
  5451. {
  5452. gLight[index].transform.position = lightList[index].transform.position;
  5453. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5454. lightX[index] = gLight[index].transform.eulerAngles.x;
  5455. lightY[index] = gLight[index].transform.eulerAngles.y;
  5456. mLight[index].maid = lightList[index];
  5457. mLight[index].ido = 6;
  5458. }
  5459. }
  5460. }
  5461. }
  5462. }
  5463. for (int index = 0; index < doguBObject.Count; ++index)
  5464. {
  5465. if (!isCube2)
  5466. {
  5467. gDogu[index].GetComponent<Renderer>().enabled = false;
  5468. gDogu[index].SetActive(false);
  5469. }
  5470. else
  5471. {
  5472. if (ikMode2 > 0)
  5473. {
  5474. gDogu[index].GetComponent<Renderer>().enabled = true;
  5475. gDogu[index].SetActive(true);
  5476. }
  5477. else
  5478. {
  5479. gDogu[index].GetComponent<Renderer>().enabled = false;
  5480. gDogu[index].SetActive(false);
  5481. mDogu[index].isAlt = false;
  5482. }
  5483. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  5484. {
  5485. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  5486. if (mDogu[index].isAlt)
  5487. {
  5488. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  5489. }
  5490. }
  5491. if (ikMode2 == 9 || ikMode2 == 14)
  5492. {
  5493. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  5494. mDogu[index].Update();
  5495. }
  5496. if (ikMode2 == 15)
  5497. {
  5498. gDogu[index].GetComponent<Renderer>().material.color = new Color(1f, 0.3f, 0.3f, 0.5f);
  5499. }
  5500. if (ikMode2 == 13)
  5501. {
  5502. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  5503. mDogu[index].Update();
  5504. }
  5505. if (ikMode2 == 13)
  5506. {
  5507. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && gDogu[index])
  5508. {
  5509. mDogu[index].ido = 5;
  5510. mDogu[index].reset = true;
  5511. }
  5512. else
  5513. {
  5514. gDogu[index].transform.position = doguBObject[index].transform.position;
  5515. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5516. mDogu[index].maid = doguBObject[index];
  5517. mDogu[index].ido = 5;
  5518. }
  5519. }
  5520. else if (ikMode2 == 11)
  5521. {
  5522. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && gDogu[index])
  5523. {
  5524. mDogu[index].ido = 3;
  5525. mDogu[index].reset = true;
  5526. }
  5527. else
  5528. {
  5529. gDogu[index].transform.position = doguBObject[index].transform.position;
  5530. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5531. mDogu[index].maid = doguBObject[index];
  5532. mDogu[index].ido = 3;
  5533. }
  5534. }
  5535. else if (ikMode2 == 12)
  5536. {
  5537. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && gDogu[index])
  5538. {
  5539. mDogu[index].ido = 2;
  5540. mDogu[index].reset = true;
  5541. }
  5542. else
  5543. {
  5544. gDogu[index].transform.position = doguBObject[index].transform.position;
  5545. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5546. mDogu[index].maid = doguBObject[index];
  5547. mDogu[index].ido = 2;
  5548. }
  5549. }
  5550. else if (ikMode2 == 10)
  5551. {
  5552. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && gDogu[index])
  5553. {
  5554. mDogu[index].ido = 1;
  5555. mDogu[index].reset = true;
  5556. }
  5557. else
  5558. {
  5559. gDogu[index].transform.position = doguBObject[index].transform.position;
  5560. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5561. mDogu[index].maid = doguBObject[index];
  5562. mDogu[index].maidArray = doguBObject.ToArray();
  5563. mDogu[index].mArray = ((IEnumerable<MouseDrag6>)mDogu).ToArray();
  5564. mDogu[index].ido = 1;
  5565. }
  5566. }
  5567. else if (ikMode2 == 9)
  5568. {
  5569. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && gDogu[index])
  5570. {
  5571. mDogu[index].ido = 4;
  5572. mDogu[index].reset = true;
  5573. }
  5574. else
  5575. {
  5576. gDogu[index].transform.position = doguBObject[index].transform.position;
  5577. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5578. mDogu[index].maid = doguBObject[index];
  5579. mDogu[index].ido = 4;
  5580. }
  5581. }
  5582. else if (ikMode2 == 14)
  5583. {
  5584. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && gDogu[index])
  5585. {
  5586. mDogu[index].ido = 6;
  5587. mDogu[index].reset = true;
  5588. }
  5589. else
  5590. {
  5591. gDogu[index].transform.position = doguBObject[index].transform.position;
  5592. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5593. mDogu[index].maid = doguBObject[index];
  5594. mDogu[index].ido = 6;
  5595. }
  5596. }
  5597. else if (ikMode2 == 15)
  5598. {
  5599. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 15 && gDogu[index])
  5600. {
  5601. mDogu[index].ido = 7;
  5602. mDogu[index].reset = true;
  5603. }
  5604. else
  5605. {
  5606. gDogu[index].transform.position = doguBObject[index].transform.position;
  5607. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5608. mDogu[index].maid = doguBObject[index];
  5609. mDogu[index].ido = 7;
  5610. }
  5611. }
  5612. }
  5613. }
  5614. ikModeOld2 = ikMode2;
  5615. Vector3 vector3_2 = mainCameraTransform.TransformDirection(Vector3.forward);
  5616. Vector3 vector3_3 = mainCameraTransform.TransformDirection(Vector3.right);
  5617. vector3_1 = mainCameraTransform.TransformDirection(Vector3.up);
  5618. if (Input.GetKeyDown(KeyCode.Y) && getModKeyPressing(modKey.Shift))
  5619. {
  5620. keyFlg = true;
  5621. --bgIndex;
  5622. if (bgIndex <= -1)
  5623. {
  5624. bgIndex = bgArray.Length - 1;
  5625. }
  5626. if (!moveBg)
  5627. {
  5628. bg.localScale = new Vector3(1f, 1f, 1f);
  5629. if (bgArray[bgIndex].Length == 36)
  5630. {
  5631. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5632. }
  5633. else
  5634. {
  5635. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5636. }
  5637. bgCombo.selectedItemIndex = bgIndex;
  5638. }
  5639. }
  5640. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.E))
  5641. {
  5642. keyFlg = true;
  5643. bg.localScale = new Vector3(bg.localScale.x * 1.005f, bg.localScale.y * 1.005f, bg.localScale.z * 1.005f);
  5644. }
  5645. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.D))
  5646. {
  5647. keyFlg = true;
  5648. bg.localScale = new Vector3(bg.localScale.x * 0.995f, bg.localScale.y * 0.995f, bg.localScale.z * 0.995f);
  5649. }
  5650. else if (Input.GetKey(KeyCode.Y) && Input.GetKeyDown(KeyCode.C))
  5651. {
  5652. keyFlg = true;
  5653. bg.localScale = new Vector3(1f, 1f, 1f);
  5654. }
  5655. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.J))
  5656. {
  5657. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  5658. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  5659. if (Input.GetKey(KeyCode.Y))
  5660. {
  5661. keyFlg = true;
  5662. }
  5663. }
  5664. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.L))
  5665. {
  5666. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  5667. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  5668. if (Input.GetKey(KeyCode.Y))
  5669. {
  5670. keyFlg = true;
  5671. }
  5672. }
  5673. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.J))
  5674. {
  5675. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  5676. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  5677. if (Input.GetKey(KeyCode.Y))
  5678. {
  5679. keyFlg = true;
  5680. }
  5681. }
  5682. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.L))
  5683. {
  5684. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  5685. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  5686. if (Input.GetKey(KeyCode.Y))
  5687. {
  5688. keyFlg = true;
  5689. }
  5690. }
  5691. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I))
  5692. {
  5693. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed;
  5694. if (Input.GetKey(KeyCode.Y))
  5695. {
  5696. keyFlg = true;
  5697. }
  5698. }
  5699. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K))
  5700. {
  5701. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed;
  5702. if (Input.GetKey(KeyCode.Y))
  5703. {
  5704. keyFlg = true;
  5705. }
  5706. }
  5707. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.J))
  5708. {
  5709. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  5710. if (Input.GetKey(KeyCode.Y))
  5711. {
  5712. keyFlg = true;
  5713. }
  5714. }
  5715. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.L))
  5716. {
  5717. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  5718. if (Input.GetKey(KeyCode.Y))
  5719. {
  5720. keyFlg = true;
  5721. }
  5722. }
  5723. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.Alpha0))
  5724. {
  5725. Vector3 position = bg.position;
  5726. position.y -= 0.015f * speed;
  5727. bg.localPosition = position;
  5728. if (Input.GetKey(KeyCode.Y))
  5729. {
  5730. keyFlg = true;
  5731. }
  5732. }
  5733. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.P))
  5734. {
  5735. Vector3 position = bg.position;
  5736. position.y += 0.015f * speed;
  5737. bg.localPosition = position;
  5738. if (Input.GetKey(KeyCode.Y))
  5739. {
  5740. keyFlg = true;
  5741. }
  5742. }
  5743. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.U))
  5744. {
  5745. bg.RotateAround(maidArray[0].transform.position, Vector3.up, 0.7f);
  5746. if (Input.GetKey(KeyCode.Y))
  5747. {
  5748. keyFlg = true;
  5749. }
  5750. }
  5751. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.O))
  5752. {
  5753. bg.RotateAround(maidArray[0].transform.position, Vector3.up, -0.7f);
  5754. if (Input.GetKey(KeyCode.Y))
  5755. {
  5756. keyFlg = true;
  5757. }
  5758. }
  5759. else if (Input.GetKeyUp(KeyCode.Y))
  5760. {
  5761. if (keyFlg)
  5762. {
  5763. keyFlg = false;
  5764. }
  5765. else
  5766. {
  5767. ++bgIndex;
  5768. if (bgIndex == bgArray.Length)
  5769. {
  5770. bgIndex = 0;
  5771. }
  5772. if (!moveBg)
  5773. {
  5774. bg.localScale = new Vector3(1f, 1f, 1f);
  5775. if (bgArray[bgIndex].Length == 36)
  5776. {
  5777. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5778. }
  5779. else
  5780. {
  5781. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5782. }
  5783. bgCombo.selectedItemIndex = bgIndex;
  5784. }
  5785. }
  5786. }
  5787. speed = !getModKeyPressing(modKey.Shift)
  5788. ? (float)(1.0 * Time.deltaTime * 60.0)
  5789. : (float)(5.0 * Time.deltaTime * 60.0);
  5790. if (!isVR || isVR2)
  5791. {
  5792. if (!isVR)
  5793. {
  5794. if (isBloom)
  5795. {
  5796. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  5797. fieldValue.enabled = true;
  5798. fieldValue.bloomIntensity = bloom1;
  5799. fieldValue.bloomBlurIterations = (int)bloom2;
  5800. fieldValue.bloomThreshholdColor = new Color(1f - bloom3, 1f - bloom4, 1f - bloom5);
  5801. fieldValue.hdr = !isBloomA ? Bloom.HDRBloomMode.Auto : Bloom.HDRBloomMode.On;
  5802. isBloom2 = true;
  5803. }
  5804. else if (isBloom2)
  5805. {
  5806. isBloom2 = false;
  5807. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  5808. fieldValue.enabled = true;
  5809. fieldValue.bloomIntensity = 2.85f;
  5810. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  5811. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  5812. fieldValue.bloomBlurIterations = 3;
  5813. }
  5814. if (isDepth)
  5815. {
  5816. depth_field_.enabled = true;
  5817. depth_field_.focalLength = depth1;
  5818. depth_field_.focalSize = depth2;
  5819. depth_field_.aperture = depth3;
  5820. depth_field_.maxBlurSize = depth4;
  5821. depth_field_.visualizeFocus = isDepthA;
  5822. }
  5823. else
  5824. {
  5825. if (depth_field_ == null)
  5826. {
  5827. depth_field_ = GameMain.Instance.MainCamera.gameObject.AddComponent<DepthOfFieldScatter>();
  5828. if (depth_field_.dofHdrShader == null)
  5829. {
  5830. depth_field_.dofHdrShader = Shader.Find("Hidden/Dof/DepthOfFieldHdr");
  5831. }
  5832. if (depth_field_.dx11BokehShader == null)
  5833. {
  5834. depth_field_.dx11BokehShader = Shader.Find("Hidden/Dof/DX11Dof");
  5835. }
  5836. if (depth_field_.dx11BokehTexture == null)
  5837. {
  5838. depth_field_.dx11BokehTexture = Resources.Load("Textures/hexShape") as Texture2D;
  5839. }
  5840. }
  5841. depth_field_.enabled = false;
  5842. }
  5843. if (isFog)
  5844. {
  5845. if (fog_.fogShader == null)
  5846. {
  5847. fog_.fogShader = Shader.Find("Hidden/GlobalFog");
  5848. }
  5849. fog_.enabled = true;
  5850. fog_.startDistance = fog1;
  5851. fog_.globalDensity = fog2;
  5852. fog_.heightScale = fog3;
  5853. fog_.height = fog4;
  5854. fog_.globalFogColor.r = fog5;
  5855. fog_.globalFogColor.g = fog6;
  5856. fog_.globalFogColor.b = fog7;
  5857. }
  5858. else
  5859. {
  5860. if (fog_ == null)
  5861. {
  5862. fog_ = GameMain.Instance.MainCamera.gameObject.AddComponent<GlobalFog>();
  5863. }
  5864. fog_.enabled = false;
  5865. }
  5866. if (isSepia)
  5867. {
  5868. if (sepia_tone_.shader == null)
  5869. {
  5870. sepia_tone_.shader = Shader.Find("Hidden/Sepiatone Effect");
  5871. }
  5872. sepia_tone_.enabled = true;
  5873. }
  5874. else
  5875. {
  5876. if (sepia_tone_ == null)
  5877. {
  5878. sepia_tone_ = GameMain.Instance.MainCamera.gameObject.AddComponent<SepiaToneEffect>();
  5879. }
  5880. sepia_tone_.enabled = false;
  5881. }
  5882. if (bokashi > 0.0)
  5883. {
  5884. Blur component = GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>();
  5885. component.enabled = true;
  5886. component.blurSize = bokashi / 10f;
  5887. component.blurIterations = 0;
  5888. component.downsample = 0;
  5889. if (bokashi > 3.0)
  5890. {
  5891. component.blurSize -= 0.3f;
  5892. component.blurIterations = 1;
  5893. component.downsample = 1;
  5894. }
  5895. }
  5896. else
  5897. {
  5898. GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>().enabled = false;
  5899. }
  5900. if (kamiyure > 0.0)
  5901. {
  5902. for (int index1 = 0; index1 < maidCnt; ++index1)
  5903. {
  5904. Maid maid = maidArray[index1];
  5905. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  5906. {
  5907. if (maid.body0.goSlot[index2].obj != null)
  5908. {
  5909. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  5910. if (component != null && component.enabled)
  5911. {
  5912. component.m_Gravity = new Vector3(softG.x * 5f, softG.y * 5f + kamiyure, softG.z * 5f);
  5913. }
  5914. }
  5915. List<THair1> fieldValue =
  5916. GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
  5917. for (int index3 = 0; index3 < fieldValue.Count; ++index3)
  5918. {
  5919. fieldValue[index3].SoftG = new Vector3(softG.x, softG.y + kamiyure, softG.z);
  5920. }
  5921. }
  5922. }
  5923. }
  5924. if (isBlur)
  5925. {
  5926. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  5927. component.mode = Vignetting.AberrationMode.Simple;
  5928. component.intensity = blur1;
  5929. component.chromaticAberration = blur4;
  5930. component.blur = blur2;
  5931. component.blurSpread = blur3;
  5932. component.enabled = true;
  5933. isBlur2 = true;
  5934. }
  5935. else if (isBlur2)
  5936. {
  5937. isBlur2 = false;
  5938. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  5939. component.mode = Vignetting.AberrationMode.Simple;
  5940. component.intensity = -3.98f;
  5941. component.chromaticAberration = -0.75f;
  5942. component.axialAberration = 1.18f;
  5943. component.blurSpread = 4.19f;
  5944. component.luminanceDependency = 0.494f;
  5945. component.blurDistance = 1.71f;
  5946. component.enabled = false;
  5947. }
  5948. }
  5949. if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.I))
  5950. {
  5951. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  5952. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5953. }
  5954. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.K))
  5955. {
  5956. if (GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  5957. {
  5958. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  5959. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5960. }
  5961. }
  5962. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.J))
  5963. {
  5964. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  5965. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5966. }
  5967. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.L))
  5968. {
  5969. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  5970. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5971. }
  5972. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  5973. {
  5974. GameMain.Instance.MainLight.Reset();
  5975. GameMain.Instance.MainLight.SetIntensity(0.95f);
  5976. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  5977. lightIndex[0] = 0;
  5978. lightColorR[0] = 1f;
  5979. lightColorG[0] = 1f;
  5980. lightColorB[0] = 1f;
  5981. lightX[0] = 40f;
  5982. lightY[0] = 180f;
  5983. lightAkarusa[0] = 0.95f;
  5984. lightKage[0] = 0.098f;
  5985. lightRange[0] = 50f;
  5986. bgObject.SetActive(true);
  5987. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  5988. isIdx1 = false;
  5989. isIdx2 = false;
  5990. isIdx3 = false;
  5991. isIdx4 = false;
  5992. }
  5993. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus) && getModKeyPressing(modKey.Shift))
  5994. {
  5995. List<float> lightColorR;
  5996. (lightColorR = this.lightColorR)[0] = lightColorR[0] + 0.01f;
  5997. if (this.lightColorR[0] > 1.0)
  5998. {
  5999. this.lightColorR[0] = 1f;
  6000. }
  6001. if (lightIndex[0] != 3)
  6002. {
  6003. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6004. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6005. }
  6006. else
  6007. {
  6008. mainCamera.GetComponent<Camera>().backgroundColor =
  6009. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6010. }
  6011. }
  6012. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote) && getModKeyPressing(modKey.Shift))
  6013. {
  6014. List<float> lightColorG;
  6015. (lightColorG = this.lightColorG)[0] = lightColorG[0] + 0.01f;
  6016. if (this.lightColorG[0] > 1.0)
  6017. {
  6018. this.lightColorG[0] = 1f;
  6019. }
  6020. if (lightIndex[0] != 3)
  6021. {
  6022. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6023. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6024. }
  6025. else
  6026. {
  6027. mainCamera.GetComponent<Camera>().backgroundColor =
  6028. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6029. }
  6030. }
  6031. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket) && getModKeyPressing(modKey.Shift))
  6032. {
  6033. List<float> lightColorB;
  6034. (lightColorB = this.lightColorB)[0] = lightColorB[0] + 0.01f;
  6035. if (this.lightColorB[0] > 1.0)
  6036. {
  6037. this.lightColorB[0] = 1f;
  6038. }
  6039. if (lightIndex[0] != 3)
  6040. {
  6041. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6042. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6043. }
  6044. else
  6045. {
  6046. mainCamera.GetComponent<Camera>().backgroundColor =
  6047. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6048. }
  6049. }
  6050. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus))
  6051. {
  6052. List<float> lightColorR;
  6053. (lightColorR = this.lightColorR)[0] = lightColorR[0] - 0.01f;
  6054. if (this.lightColorR[0] < 0.0)
  6055. {
  6056. this.lightColorR[0] = 0.0f;
  6057. }
  6058. if (lightIndex[0] != 3)
  6059. {
  6060. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6061. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6062. }
  6063. else
  6064. {
  6065. mainCamera.GetComponent<Camera>().backgroundColor =
  6066. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6067. }
  6068. }
  6069. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6070. {
  6071. List<float> lightColorG;
  6072. (lightColorG = this.lightColorG)[0] = lightColorG[0] - 0.01f;
  6073. if (this.lightColorG[0] < 0.0)
  6074. {
  6075. this.lightColorG[0] = 0.0f;
  6076. }
  6077. if (lightIndex[0] != 3)
  6078. {
  6079. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6080. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6081. }
  6082. else
  6083. {
  6084. mainCamera.GetComponent<Camera>().backgroundColor =
  6085. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6086. }
  6087. }
  6088. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6089. {
  6090. List<float> lightColorB;
  6091. (lightColorB = this.lightColorB)[0] = lightColorB[0] - 0.01f;
  6092. if (this.lightColorB[0] < 0.0)
  6093. {
  6094. this.lightColorB[0] = 0.0f;
  6095. }
  6096. if (lightIndex[0] != 3)
  6097. {
  6098. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6099. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6100. }
  6101. else
  6102. {
  6103. mainCamera.GetComponent<Camera>().backgroundColor =
  6104. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6105. }
  6106. }
  6107. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha0))
  6108. {
  6109. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.12f * Time.deltaTime;
  6110. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  6111. }
  6112. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.P))
  6113. {
  6114. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.12f * Time.deltaTime;
  6115. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  6116. }
  6117. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha9))
  6118. {
  6119. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  6120. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  6121. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  6122. }
  6123. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.O))
  6124. {
  6125. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  6126. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  6127. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  6128. }
  6129. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.U))
  6130. {
  6131. List<int> lightIndex;
  6132. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6133. if (this.lightIndex[0] == 4)
  6134. {
  6135. this.lightIndex[0] = 0;
  6136. }
  6137. lightColorR[0] = 1f;
  6138. lightColorG[0] = 1f;
  6139. lightColorB[0] = 1f;
  6140. lightX[0] = 40f;
  6141. lightY[0] = 180f;
  6142. lightAkarusa[0] = 0.95f;
  6143. lightKage[0] = 0.098f;
  6144. lightRange[0] = 50f;
  6145. GameMain.Instance.MainLight.Reset();
  6146. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6147. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  6148. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  6149. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6150. if (this.lightIndex[0] == 0)
  6151. {
  6152. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6153. bgObject.SetActive(true);
  6154. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  6155. }
  6156. else if (this.lightIndex[0] == 1)
  6157. {
  6158. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6159. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6160. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  6161. if (gLight[0] == null)
  6162. {
  6163. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  6164. gLight[0].GetComponent<Renderer>().material =
  6165. new Material(Shader.Find("Transparent/Diffuse")) { color = new Color(0.5f, 0.5f, 1f, 0.8f) };
  6166. gLight[0].layer = 8;
  6167. gLight[0].GetComponent<Renderer>().enabled = false;
  6168. gLight[0].SetActive(false);
  6169. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  6170. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  6171. mLight[0].obj = gLight[0];
  6172. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  6173. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  6174. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  6175. mLight[0].ido = 1;
  6176. mLight[0].isScale = false;
  6177. }
  6178. }
  6179. else if (this.lightIndex[0] == 2)
  6180. {
  6181. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  6182. }
  6183. else if (this.lightIndex[0] == 3)
  6184. {
  6185. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6186. mainCamera.GetComponent<Camera>().backgroundColor =
  6187. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6188. bgObject.SetActive(false);
  6189. }
  6190. isIdx1 = false;
  6191. isIdx2 = false;
  6192. isIdx3 = false;
  6193. isIdx4 = false;
  6194. }
  6195. }
  6196. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Insert))
  6197. {
  6198. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  6199. }
  6200. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Delete))
  6201. {
  6202. if (GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  6203. {
  6204. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  6205. }
  6206. }
  6207. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Home))
  6208. {
  6209. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  6210. }
  6211. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.End))
  6212. {
  6213. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  6214. }
  6215. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  6216. {
  6217. GameMain.Instance.MainLight.Reset();
  6218. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6219. }
  6220. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageUp))
  6221. {
  6222. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.1f * Time.deltaTime;
  6223. }
  6224. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageDown))
  6225. {
  6226. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.1f * Time.deltaTime;
  6227. }
  6228. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6229. {
  6230. if (lightIndex[0] == 1)
  6231. {
  6232. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  6233. }
  6234. else
  6235. {
  6236. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  6237. }
  6238. }
  6239. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6240. {
  6241. if (lightIndex[0] == 1)
  6242. {
  6243. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  6244. }
  6245. else
  6246. {
  6247. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  6248. }
  6249. }
  6250. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.Minus))
  6251. {
  6252. List<int> lightIndex;
  6253. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6254. if (this.lightIndex[0] == 3)
  6255. {
  6256. this.lightIndex[0] = 0;
  6257. }
  6258. GameMain.Instance.MainLight.Reset();
  6259. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6260. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  6261. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  6262. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6263. if (this.lightIndex[0] == 0)
  6264. {
  6265. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6266. }
  6267. else if (this.lightIndex[0] == 1)
  6268. {
  6269. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6270. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  6271. }
  6272. else if (this.lightIndex[0] == 2)
  6273. {
  6274. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  6275. }
  6276. }
  6277. for (int index = 0; index < lightList.Count; ++index)
  6278. {
  6279. if (index > 0)
  6280. {
  6281. lightList[index].GetComponent<Light>().color =
  6282. new Color(lightColorR[index], lightColorG[index], lightColorB[index]);
  6283. lightList[index].GetComponent<Light>().intensity = lightAkarusa[index];
  6284. lightList[index].GetComponent<Light>().spotAngle = lightRange[index];
  6285. lightList[index].GetComponent<Light>().range = lightRange[index] / 5f;
  6286. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Shift)))
  6287. {
  6288. lightList[index].transform.eulerAngles = new Vector3(lightX[index], lightY[index], 18f);
  6289. }
  6290. }
  6291. else
  6292. {
  6293. GameMain.Instance.MainLight.SetIntensity(lightAkarusa[0]);
  6294. GameMain.Instance.MainLight.GetComponent<Light>().shadowStrength = lightKage[0];
  6295. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Shift)))
  6296. {
  6297. GameMain.Instance.MainLight.SetRotation(new Vector3(lightX[0], lightY[0], 18f));
  6298. }
  6299. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = lightRange[index];
  6300. GameMain.Instance.MainLight.GetComponent<Light>().range = lightRange[index] / 5f;
  6301. if (lightIndex[index] != 3)
  6302. {
  6303. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6304. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6305. }
  6306. else
  6307. {
  6308. mainCamera.GetComponent<Camera>().backgroundColor =
  6309. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6310. }
  6311. }
  6312. }
  6313. }
  6314. if (isF6S)
  6315. {
  6316. if (maidCnt < 1)
  6317. {
  6318. ++F6cnt;
  6319. }
  6320. if (F6cnt > 10)
  6321. {
  6322. maidCnt = 1;
  6323. F6cnt = 0;
  6324. }
  6325. for (int index1 = 0; index1 < maidCnt; ++index1)
  6326. {
  6327. if (maidArray[index1] && maidArray[index1].Visible && maidArray[index1].body0.isLoadedBody)
  6328. {
  6329. Maid maid = maidArray[index1];
  6330. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6331. {
  6332. if (maid.body0.goSlot[index2].bonehair.bodyhit != null
  6333. && maid.body0.goSlot[index2].bonehair.bodyhit.spherelist.Count == 17 && (index2 == 3 || index2 == 4))
  6334. {
  6335. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine", true);
  6336. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine0a", true);
  6337. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1", true);
  6338. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1a", true);
  6339. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Pelvis", true);
  6340. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Hand", true);
  6341. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L UpperArm", true);
  6342. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Forearm", true);
  6343. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Hand", true);
  6344. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R UpperArm", true);
  6345. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Forearm", true);
  6346. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Foot", true);
  6347. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Thigh", true);
  6348. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Calf", true);
  6349. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Foot", true);
  6350. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Thigh", true);
  6351. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Calf", true);
  6352. List<THitSphere> spherelist = maid.body0.goSlot[index2].bonehair.bodyhit.spherelist;
  6353. THitSphere thitSphere1 = new THitSphere();
  6354. THitSphere thitSphere2 = spherelist[0];
  6355. THitSphere thitSphere3 = new THitSphere
  6356. {
  6357. wv = thitSphere2.wv,
  6358. len = thitSphere2.len * 0.8f,
  6359. t = thitSphere2.t,
  6360. vs = thitSphere2.vs
  6361. };
  6362. thitSphere3.vs.y -= 0.04f;
  6363. thitSphere3.vs.x += 0.05f;
  6364. spherelist.Add(thitSphere3);
  6365. THitSphere thitSphere4 = new THitSphere
  6366. {
  6367. len = 0.09f,
  6368. t = transform4
  6369. };
  6370. thitSphere4.vs.z += 0.04f;
  6371. thitSphere4.vs.x -= 0.04f;
  6372. thitSphere4.vs.y -= 0.01f;
  6373. spherelist.Add(thitSphere4);
  6374. THitSphere thitSphere5 = new THitSphere
  6375. {
  6376. len = 0.09f,
  6377. t = transform4
  6378. };
  6379. thitSphere5.vs.z -= 0.04f;
  6380. thitSphere5.vs.x -= 0.04f;
  6381. thitSphere5.vs.y -= 0.01f;
  6382. spherelist.Add(thitSphere5);
  6383. THitSphere thitSphere6 = new THitSphere
  6384. {
  6385. len = 0.09f,
  6386. t = transform3
  6387. };
  6388. thitSphere6.vs.z += 0.035f;
  6389. spherelist.Add(thitSphere6);
  6390. THitSphere thitSphere7 = new THitSphere
  6391. {
  6392. len = 0.09f,
  6393. t = transform3
  6394. };
  6395. thitSphere7.vs.z -= 0.035f;
  6396. spherelist.Add(thitSphere7);
  6397. THitSphere thitSphere8 = new THitSphere
  6398. {
  6399. len = 0.08f,
  6400. t = transform2
  6401. };
  6402. thitSphere8.vs.z += 0.035f;
  6403. spherelist.Add(thitSphere8);
  6404. THitSphere thitSphere9 = new THitSphere
  6405. {
  6406. len = 0.08f,
  6407. t = transform2
  6408. };
  6409. thitSphere9.vs.z -= 0.035f;
  6410. spherelist.Add(thitSphere9);
  6411. THitSphere thitSphere10 = new THitSphere
  6412. {
  6413. len = 0.09f,
  6414. t = transform1
  6415. };
  6416. thitSphere10.vs.z += 0.04f;
  6417. thitSphere10.vs.y -= 0.02f;
  6418. spherelist.Add(thitSphere10);
  6419. THitSphere thitSphere11 = new THitSphere
  6420. {
  6421. len = 0.09f,
  6422. t = transform1
  6423. };
  6424. thitSphere11.vs.z -= 0.04f;
  6425. thitSphere11.vs.y -= 0.02f;
  6426. spherelist.Add(thitSphere11);
  6427. THitSphere thitSphere12 = new THitSphere
  6428. {
  6429. len = 0.11f,
  6430. t = transform5
  6431. };
  6432. thitSphere12.vs.z += 0.05f;
  6433. thitSphere12.vs.y -= 0.03f;
  6434. spherelist.Add(thitSphere12);
  6435. THitSphere thitSphere13 = new THitSphere
  6436. {
  6437. len = 0.11f,
  6438. t = transform5
  6439. };
  6440. thitSphere13.vs.z -= 0.05f;
  6441. thitSphere13.vs.y -= 0.03f;
  6442. spherelist.Add(thitSphere13);
  6443. THitSphere thitSphere14 = new THitSphere
  6444. {
  6445. len = 0.11f,
  6446. t = transform10
  6447. };
  6448. thitSphere14.vs.x -= 0.03f;
  6449. spherelist.Add(thitSphere14);
  6450. THitSphere thitSphere15 = new THitSphere
  6451. {
  6452. len = 0.11f,
  6453. t = transform11
  6454. };
  6455. thitSphere15.vs.x -= 0.03f;
  6456. spherelist.Add(thitSphere15);
  6457. spherelist.Add(new THitSphere() { len = 0.05f, t = transform6 });
  6458. spherelist.Add(new THitSphere() { len = 0.05f, t = transform8 });
  6459. THitSphere thitSphere16 = new THitSphere
  6460. {
  6461. len = 0.05f,
  6462. t = transform7
  6463. };
  6464. thitSphere16.vs.x -= 0.04f;
  6465. spherelist.Add(thitSphere16);
  6466. THitSphere thitSphere17 = new THitSphere
  6467. {
  6468. len = 0.05f,
  6469. t = transform9
  6470. };
  6471. thitSphere17.vs.x -= 0.04f;
  6472. spherelist.Add(thitSphere17);
  6473. THitSphere thitSphere18 = new THitSphere
  6474. {
  6475. len = 0.05f,
  6476. t = transform7
  6477. };
  6478. thitSphere18.vs.x -= 0.08f;
  6479. spherelist.Add(thitSphere18);
  6480. THitSphere thitSphere19 = new THitSphere
  6481. {
  6482. len = 0.05f,
  6483. t = transform9
  6484. };
  6485. thitSphere19.vs.x -= 0.08f;
  6486. spherelist.Add(thitSphere19);
  6487. THitSphere thitSphere20 = new THitSphere
  6488. {
  6489. len = 0.05f,
  6490. t = transform7
  6491. };
  6492. thitSphere20.vs.x -= 0.12f;
  6493. spherelist.Add(thitSphere20);
  6494. THitSphere thitSphere21 = new THitSphere
  6495. {
  6496. len = 0.05f,
  6497. t = transform9
  6498. };
  6499. thitSphere21.vs.x -= 0.12f;
  6500. spherelist.Add(thitSphere21);
  6501. THitSphere thitSphere22 = new THitSphere
  6502. {
  6503. len = 0.05f,
  6504. t = transform7
  6505. };
  6506. thitSphere22.vs.x -= 0.16f;
  6507. spherelist.Add(thitSphere22);
  6508. THitSphere thitSphere23 = new THitSphere
  6509. {
  6510. len = 0.05f,
  6511. t = transform9
  6512. };
  6513. thitSphere23.vs.x -= 0.16f;
  6514. spherelist.Add(thitSphere23);
  6515. }
  6516. }
  6517. }
  6518. }
  6519. }
  6520. }
  6521. }
  6522. public string SerializeScene()
  6523. {
  6524. string str1 = "";
  6525. string str2 = "";
  6526. DateTime now = DateTime.Now;
  6527. string str3 = now.Year.ToString() + "/" + now.Month.ToString("00") + "/" + now.Day.ToString("00") + " "
  6528. + now.Hour.ToString("00") + ":" + now.Minute.ToString("00");
  6529. if (!quickSaveFlag)
  6530. {
  6531. date[0] = str3;
  6532. ninzu[0] = maidCnt.ToString() + "人";
  6533. }
  6534. string[] strArray1 = new string[7]
  6535. {
  6536. str2 + str3 + "," + maidCnt + "," + bgArray[bgIndex].Replace("_", " ") + ",",
  6537. bg.localEulerAngles.x.ToString("0.###"), ",", null, null, null, null
  6538. };
  6539. string[] strArray2 = strArray1;
  6540. int index1 = 3;
  6541. float num = bg.localEulerAngles.y;
  6542. string str4 = num.ToString("0.###");
  6543. strArray2[index1] = str4;
  6544. strArray1[4] = ",";
  6545. string[] strArray3 = strArray1;
  6546. int index2 = 5;
  6547. num = bg.localEulerAngles.z;
  6548. string str5 = num.ToString("0.###");
  6549. strArray3[index2] = str5;
  6550. strArray1[6] = ",";
  6551. string str6 = string.Concat(strArray1);
  6552. string[] strArray4 = new string[7];
  6553. strArray4[0] = str6;
  6554. string[] strArray5 = strArray4;
  6555. int index3 = 1;
  6556. num = bg.position.x;
  6557. string str7 = num.ToString("0.###");
  6558. strArray5[index3] = str7;
  6559. strArray4[2] = ",";
  6560. string[] strArray6 = strArray4;
  6561. int index4 = 3;
  6562. num = bg.position.y;
  6563. string str8 = num.ToString("0.###");
  6564. strArray6[index4] = str8;
  6565. strArray4[4] = ",";
  6566. string[] strArray7 = strArray4;
  6567. int index5 = 5;
  6568. num = bg.position.z;
  6569. string str9 = num.ToString("0.###");
  6570. strArray7[index5] = str9;
  6571. strArray4[6] = ",";
  6572. string str10 = string.Concat(strArray4);
  6573. string[] strArray8 = new string[7];
  6574. strArray8[0] = str10;
  6575. string[] strArray9 = strArray8;
  6576. int index6 = 1;
  6577. num = bg.localScale.x;
  6578. string str11 = num.ToString("0.###");
  6579. strArray9[index6] = str11;
  6580. strArray8[2] = ",";
  6581. string[] strArray10 = strArray8;
  6582. int index7 = 3;
  6583. num = bg.localScale.y;
  6584. string str12 = num.ToString("0.###");
  6585. strArray10[index7] = str12;
  6586. strArray8[4] = ",";
  6587. string[] strArray11 = strArray8;
  6588. int index8 = 5;
  6589. num = bg.localScale.z;
  6590. string str13 = num.ToString("0.###");
  6591. strArray11[index8] = str13;
  6592. strArray8[6] = ",";
  6593. string str14 = string.Concat(strArray8) + softG.x.ToString("0.###") + "," + softG.y.ToString("0.###") + ","
  6594. + softG.z.ToString("0.###") + "," + bgmIndex + "," + effectIndex + ","
  6595. + lightIndex[0] + "," + lightColorR[0] + "," + lightColorG[0] + ","
  6596. + lightColorB[0] + ",";
  6597. string[] strArray12 = new string[7];
  6598. strArray12[0] = str14;
  6599. string[] strArray13 = strArray12;
  6600. int index9 = 1;
  6601. num = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6602. string str15 = num.ToString("0.###");
  6603. strArray13[index9] = str15;
  6604. strArray12[2] = ",";
  6605. string[] strArray14 = strArray12;
  6606. int index10 = 3;
  6607. num = GameMain.Instance.MainLight.transform.eulerAngles.y;
  6608. string str16 = num.ToString("0.###");
  6609. strArray14[index10] = str16;
  6610. strArray12[4] = ",";
  6611. string[] strArray15 = strArray12;
  6612. int index11 = 5;
  6613. num = GameMain.Instance.MainLight.transform.eulerAngles.z;
  6614. string str17 = num.ToString("0.###");
  6615. strArray15[index11] = str17;
  6616. strArray12[6] = ",";
  6617. string str18 = string.Concat(strArray12) + GameMain.Instance.MainLight.GetComponent<Light>().intensity + ","
  6618. + GameMain.Instance.MainLight.GetComponent<Light>().spotAngle + ","
  6619. + GameMain.Instance.MainLight.GetComponent<Light>().range + ","
  6620. + mainCamera.GetTargetPos().x + "," + mainCamera.GetTargetPos().y + ","
  6621. + mainCamera.GetTargetPos().z + "," + mainCamera.GetDistance() + ",";
  6622. string[] strArray16 = new string[7];
  6623. strArray16[0] = str18;
  6624. string[] strArray17 = strArray16;
  6625. int index12 = 1;
  6626. num = mainCamera.transform.eulerAngles.x;
  6627. string str19 = num.ToString("0.###");
  6628. strArray17[index12] = str19;
  6629. strArray16[2] = ",";
  6630. string[] strArray18 = strArray16;
  6631. int index13 = 3;
  6632. num = mainCamera.transform.eulerAngles.y;
  6633. string str20 = num.ToString("0.###");
  6634. strArray18[index13] = str20;
  6635. strArray16[4] = ",";
  6636. string[] strArray19 = strArray16;
  6637. int index14 = 5;
  6638. num = mainCamera.transform.eulerAngles.z;
  6639. string str21 = num.ToString("0.###");
  6640. strArray19[index14] = str21;
  6641. strArray16[6] = ",";
  6642. string str22 = string.Concat(strArray16);
  6643. inName = inName.Replace("_", " ").Replace(",", " ");
  6644. inText = inText.Replace("_", " ").Replace(",", " ");
  6645. string str23;
  6646. if (isMessage)
  6647. {
  6648. str23 = str22 + "1," + inName + "," + inText.Replace("\n", "&kaigyo");
  6649. }
  6650. else
  6651. {
  6652. str23 = str22 + "0,,";
  6653. }
  6654. if (doguObject.Count > 0)
  6655. {
  6656. string str24 = str23 + "," + doguArray[doguIndex[doguSelectIndex]].Replace("_", " ") + ",";
  6657. string[] strArray20 = new string[7];
  6658. strArray20[0] = str24;
  6659. string[] strArray21 = strArray20;
  6660. int index15 = 1;
  6661. num = doguObject[doguSelectIndex].transform.localEulerAngles.x;
  6662. string str25 = num.ToString("0.###");
  6663. strArray21[index15] = str25;
  6664. strArray20[2] = ",";
  6665. string[] strArray22 = strArray20;
  6666. int index16 = 3;
  6667. num = doguObject[doguSelectIndex].transform.localEulerAngles.y;
  6668. string str26 = num.ToString("0.###");
  6669. strArray22[index16] = str26;
  6670. strArray20[4] = ",";
  6671. string[] strArray23 = strArray20;
  6672. int index17 = 5;
  6673. num = doguObject[doguSelectIndex].transform.localEulerAngles.z;
  6674. string str27 = num.ToString("0.###");
  6675. strArray23[index17] = str27;
  6676. strArray20[6] = ",";
  6677. string str28 = string.Concat(strArray20);
  6678. string[] strArray24 = new string[7];
  6679. strArray24[0] = str28;
  6680. string[] strArray25 = strArray24;
  6681. int index18 = 1;
  6682. num = doguObject[doguSelectIndex].transform.position.x;
  6683. string str29 = num.ToString("0.###");
  6684. strArray25[index18] = str29;
  6685. strArray24[2] = ",";
  6686. string[] strArray26 = strArray24;
  6687. int index19 = 3;
  6688. num = doguObject[doguSelectIndex].transform.position.y;
  6689. string str30 = num.ToString("0.###");
  6690. strArray26[index19] = str30;
  6691. strArray24[4] = ",";
  6692. string[] strArray27 = strArray24;
  6693. int index20 = 5;
  6694. num = doguObject[doguSelectIndex].transform.position.z;
  6695. string str31 = num.ToString("0.###");
  6696. strArray27[index20] = str31;
  6697. strArray24[6] = ",";
  6698. string str32 = string.Concat(strArray24);
  6699. string[] strArray28 = new string[6];
  6700. strArray28[0] = str32;
  6701. string[] strArray29 = strArray28;
  6702. int index21 = 1;
  6703. num = doguObject[doguSelectIndex].transform.localScale.x;
  6704. string str33 = num.ToString("0.###");
  6705. strArray29[index21] = str33;
  6706. strArray28[2] = ",";
  6707. string[] strArray30 = strArray28;
  6708. int index22 = 3;
  6709. num = doguObject[doguSelectIndex].transform.localScale.y;
  6710. string str34 = num.ToString("0.###");
  6711. strArray30[index22] = str34;
  6712. strArray28[4] = ",";
  6713. string[] strArray31 = strArray28;
  6714. int index23 = 5;
  6715. num = doguObject[doguSelectIndex].transform.localScale.z;
  6716. string str35 = num.ToString("0.###");
  6717. strArray31[index23] = str35;
  6718. str23 = string.Concat(strArray28);
  6719. }
  6720. string str36 = str23 + "_";
  6721. for (int i = 0; i < maidCnt; ++i)
  6722. {
  6723. Maid maid = maidArray[i];
  6724. string str24 = "";
  6725. string str25 = "";
  6726. SetIK(maid, i);
  6727. for (int index15 = 0; index15 < 20; ++index15)
  6728. {
  6729. string str26 = str24;
  6730. string[] strArray20 = new string[7];
  6731. strArray20[0] = str26;
  6732. string[] strArray21 = strArray20;
  6733. int index16 = 1;
  6734. num = Finger[i, index15].localEulerAngles.x;
  6735. string str27 = num.ToString("0.###");
  6736. strArray21[index16] = str27;
  6737. strArray20[2] = ",";
  6738. string[] strArray22 = strArray20;
  6739. int index17 = 3;
  6740. num = Finger[i, index15].localEulerAngles.y;
  6741. string str28 = num.ToString("0.###");
  6742. strArray22[index17] = str28;
  6743. strArray20[4] = ",";
  6744. string[] strArray23 = strArray20;
  6745. int index18 = 5;
  6746. num = Finger[i, index15].localEulerAngles.z;
  6747. string str29 = num.ToString("0.###");
  6748. strArray23[index18] = str29;
  6749. strArray20[6] = ":";
  6750. str24 = string.Concat(strArray20);
  6751. }
  6752. for (int index15 = 20; index15 < 40; ++index15)
  6753. {
  6754. string str26 = str25;
  6755. string[] strArray20 = new string[7];
  6756. strArray20[0] = str26;
  6757. string[] strArray21 = strArray20;
  6758. int index16 = 1;
  6759. num = Finger[i, index15].localEulerAngles.x;
  6760. string str27 = num.ToString("0.###");
  6761. strArray21[index16] = str27;
  6762. strArray20[2] = ",";
  6763. string[] strArray22 = strArray20;
  6764. int index17 = 3;
  6765. num = Finger[i, index15].localEulerAngles.y;
  6766. string str28 = num.ToString("0.###");
  6767. strArray22[index17] = str28;
  6768. strArray20[4] = ",";
  6769. string[] strArray23 = strArray20;
  6770. int index18 = 5;
  6771. num = Finger[i, index15].localEulerAngles.z;
  6772. string str29 = num.ToString("0.###");
  6773. strArray23[index18] = str29;
  6774. strArray20[6] = ":";
  6775. str25 = string.Concat(strArray20);
  6776. }
  6777. string str30 = "";
  6778. string[] strArray24 = new string[7];
  6779. strArray24[0] = str30;
  6780. string[] strArray25 = strArray24;
  6781. int index19 = 1;
  6782. num = Spine.eulerAngles.x;
  6783. string str31 = num.ToString("0.###");
  6784. strArray25[index19] = str31;
  6785. strArray24[2] = ",";
  6786. string[] strArray26 = strArray24;
  6787. int index20 = 3;
  6788. num = Spine.eulerAngles.y;
  6789. string str32 = num.ToString("0.###");
  6790. strArray26[index20] = str32;
  6791. strArray24[4] = ",";
  6792. string[] strArray27 = strArray24;
  6793. int index21 = 5;
  6794. num = Spine.eulerAngles.z;
  6795. string str33 = num.ToString("0.###");
  6796. strArray27[index21] = str33;
  6797. strArray24[6] = ":";
  6798. string str34 = string.Concat(strArray24);
  6799. string[] strArray28 = new string[7];
  6800. strArray28[0] = str34;
  6801. string[] strArray29 = strArray28;
  6802. int index22 = 1;
  6803. num = Spine0a.eulerAngles.x;
  6804. string str35 = num.ToString("0.###");
  6805. strArray29[index22] = str35;
  6806. strArray28[2] = ",";
  6807. string[] strArray30 = strArray28;
  6808. int index23 = 3;
  6809. num = Spine0a.eulerAngles.y;
  6810. string str37 = num.ToString("0.###");
  6811. strArray30[index23] = str37;
  6812. strArray28[4] = ",";
  6813. string[] strArray31 = strArray28;
  6814. int index24 = 5;
  6815. num = Spine0a.eulerAngles.z;
  6816. string str38 = num.ToString("0.###");
  6817. strArray31[index24] = str38;
  6818. strArray28[6] = ":";
  6819. string str39 = string.Concat(strArray28);
  6820. string[] strArray32 = new string[7];
  6821. strArray32[0] = str39;
  6822. string[] strArray33 = strArray32;
  6823. int index25 = 1;
  6824. num = Spine1.eulerAngles.x;
  6825. string str40 = num.ToString("0.###");
  6826. strArray33[index25] = str40;
  6827. strArray32[2] = ",";
  6828. string[] strArray34 = strArray32;
  6829. int index26 = 3;
  6830. num = Spine1.eulerAngles.y;
  6831. string str41 = num.ToString("0.###");
  6832. strArray34[index26] = str41;
  6833. strArray32[4] = ",";
  6834. string[] strArray35 = strArray32;
  6835. int index27 = 5;
  6836. num = Spine1.eulerAngles.z;
  6837. string str42 = num.ToString("0.###");
  6838. strArray35[index27] = str42;
  6839. strArray32[6] = ":";
  6840. string str43 = string.Concat(strArray32);
  6841. string[] strArray36 = new string[7];
  6842. strArray36[0] = str43;
  6843. string[] strArray37 = strArray36;
  6844. int index28 = 1;
  6845. num = Spine1a.eulerAngles.x;
  6846. string str44 = num.ToString("0.###");
  6847. strArray37[index28] = str44;
  6848. strArray36[2] = ",";
  6849. string[] strArray38 = strArray36;
  6850. int index29 = 3;
  6851. num = Spine1a.eulerAngles.y;
  6852. string str45 = num.ToString("0.###");
  6853. strArray38[index29] = str45;
  6854. strArray36[4] = ",";
  6855. string[] strArray39 = strArray36;
  6856. int index30 = 5;
  6857. num = Spine1a.eulerAngles.z;
  6858. string str46 = num.ToString("0.###");
  6859. strArray39[index30] = str46;
  6860. strArray36[6] = ":";
  6861. string str47 = string.Concat(strArray36);
  6862. string[] strArray40 = new string[7];
  6863. strArray40[0] = str47;
  6864. string[] strArray41 = strArray40;
  6865. int index31 = 1;
  6866. num = Pelvis.eulerAngles.x;
  6867. string str48 = num.ToString("0.###");
  6868. strArray41[index31] = str48;
  6869. strArray40[2] = ",";
  6870. string[] strArray42 = strArray40;
  6871. int index32 = 3;
  6872. num = Pelvis.eulerAngles.y;
  6873. string str49 = num.ToString("0.###");
  6874. strArray42[index32] = str49;
  6875. strArray40[4] = ",";
  6876. string[] strArray43 = strArray40;
  6877. int index33 = 5;
  6878. num = Pelvis.eulerAngles.z;
  6879. string str50 = num.ToString("0.###");
  6880. strArray43[index33] = str50;
  6881. strArray40[6] = ":";
  6882. string str51 = string.Concat(strArray40);
  6883. string[] strArray44 = new string[7];
  6884. strArray44[0] = str51;
  6885. string[] strArray45 = strArray44;
  6886. int index34 = 1;
  6887. num = HandL1[i].localEulerAngles.x;
  6888. string str52 = num.ToString("0.###");
  6889. strArray45[index34] = str52;
  6890. strArray44[2] = ",";
  6891. string[] strArray46 = strArray44;
  6892. int index35 = 3;
  6893. num = HandL1[i].localEulerAngles.y;
  6894. string str53 = num.ToString("0.###");
  6895. strArray46[index35] = str53;
  6896. strArray44[4] = ",";
  6897. string[] strArray47 = strArray44;
  6898. int index36 = 5;
  6899. num = HandL1[i].localEulerAngles.z;
  6900. string str54 = num.ToString("0.###");
  6901. strArray47[index36] = str54;
  6902. strArray44[6] = ":";
  6903. string str55 = string.Concat(strArray44);
  6904. string[] strArray48 = new string[7];
  6905. strArray48[0] = str55;
  6906. string[] strArray49 = strArray48;
  6907. int index37 = 1;
  6908. num = UpperArmL1[i].eulerAngles.x;
  6909. string str56 = num.ToString("0.###");
  6910. strArray49[index37] = str56;
  6911. strArray48[2] = ",";
  6912. string[] strArray50 = strArray48;
  6913. int index38 = 3;
  6914. num = UpperArmL1[i].eulerAngles.y;
  6915. string str57 = num.ToString("0.###");
  6916. strArray50[index38] = str57;
  6917. strArray48[4] = ",";
  6918. string[] strArray51 = strArray48;
  6919. int index39 = 5;
  6920. num = UpperArmL1[i].eulerAngles.z;
  6921. string str58 = num.ToString("0.###");
  6922. strArray51[index39] = str58;
  6923. strArray48[6] = ":";
  6924. string str59 = string.Concat(strArray48);
  6925. string[] strArray52 = new string[7];
  6926. strArray52[0] = str59;
  6927. string[] strArray53 = strArray52;
  6928. int index40 = 1;
  6929. num = ForearmL1[i].eulerAngles.x;
  6930. string str60 = num.ToString("0.###");
  6931. strArray53[index40] = str60;
  6932. strArray52[2] = ",";
  6933. string[] strArray54 = strArray52;
  6934. int index41 = 3;
  6935. num = ForearmL1[i].eulerAngles.y;
  6936. string str61 = num.ToString("0.###");
  6937. strArray54[index41] = str61;
  6938. strArray52[4] = ",";
  6939. string[] strArray55 = strArray52;
  6940. int index42 = 5;
  6941. num = ForearmL1[i].eulerAngles.z;
  6942. string str62 = num.ToString("0.###");
  6943. strArray55[index42] = str62;
  6944. strArray52[6] = ":";
  6945. string str63 = string.Concat(strArray52);
  6946. string[] strArray56 = new string[7];
  6947. strArray56[0] = str63;
  6948. string[] strArray57 = strArray56;
  6949. int index43 = 1;
  6950. num = HandR1[i].localEulerAngles.x;
  6951. string str64 = num.ToString("0.###");
  6952. strArray57[index43] = str64;
  6953. strArray56[2] = ",";
  6954. string[] strArray58 = strArray56;
  6955. int index44 = 3;
  6956. num = HandR1[i].localEulerAngles.y;
  6957. string str65 = num.ToString("0.###");
  6958. strArray58[index44] = str65;
  6959. strArray56[4] = ",";
  6960. string[] strArray59 = strArray56;
  6961. int index45 = 5;
  6962. num = HandR1[i].localEulerAngles.z;
  6963. string str66 = num.ToString("0.###");
  6964. strArray59[index45] = str66;
  6965. strArray56[6] = ":";
  6966. string str67 = string.Concat(strArray56);
  6967. string[] strArray60 = new string[7];
  6968. strArray60[0] = str67;
  6969. string[] strArray61 = strArray60;
  6970. int index46 = 1;
  6971. num = UpperArmR1[i].eulerAngles.x;
  6972. string str68 = num.ToString("0.###");
  6973. strArray61[index46] = str68;
  6974. strArray60[2] = ",";
  6975. string[] strArray62 = strArray60;
  6976. int index47 = 3;
  6977. num = UpperArmR1[i].eulerAngles.y;
  6978. string str69 = num.ToString("0.###");
  6979. strArray62[index47] = str69;
  6980. strArray60[4] = ",";
  6981. string[] strArray63 = strArray60;
  6982. int index48 = 5;
  6983. num = UpperArmR1[i].eulerAngles.z;
  6984. string str70 = num.ToString("0.###");
  6985. strArray63[index48] = str70;
  6986. strArray60[6] = ":";
  6987. string str71 = string.Concat(strArray60);
  6988. string[] strArray64 = new string[7];
  6989. strArray64[0] = str71;
  6990. string[] strArray65 = strArray64;
  6991. int index49 = 1;
  6992. num = ForearmR1[i].eulerAngles.x;
  6993. string str72 = num.ToString("0.###");
  6994. strArray65[index49] = str72;
  6995. strArray64[2] = ",";
  6996. string[] strArray66 = strArray64;
  6997. int index50 = 3;
  6998. num = ForearmR1[i].eulerAngles.y;
  6999. string str73 = num.ToString("0.###");
  7000. strArray66[index50] = str73;
  7001. strArray64[4] = ",";
  7002. string[] strArray67 = strArray64;
  7003. int index51 = 5;
  7004. num = ForearmR1[i].eulerAngles.z;
  7005. string str74 = num.ToString("0.###");
  7006. strArray67[index51] = str74;
  7007. strArray64[6] = ":";
  7008. string str75 = string.Concat(strArray64);
  7009. string[] strArray68 = new string[7];
  7010. strArray68[0] = str75;
  7011. string[] strArray69 = strArray68;
  7012. int index52 = 1;
  7013. num = HandL2[i].localEulerAngles.x;
  7014. string str76 = num.ToString("0.###");
  7015. strArray69[index52] = str76;
  7016. strArray68[2] = ",";
  7017. string[] strArray70 = strArray68;
  7018. int index53 = 3;
  7019. num = HandL2[i].localEulerAngles.y;
  7020. string str77 = num.ToString("0.###");
  7021. strArray70[index53] = str77;
  7022. strArray68[4] = ",";
  7023. string[] strArray71 = strArray68;
  7024. int index54 = 5;
  7025. num = HandL2[i].localEulerAngles.z;
  7026. string str78 = num.ToString("0.###");
  7027. strArray71[index54] = str78;
  7028. strArray68[6] = ":";
  7029. string str79 = string.Concat(strArray68);
  7030. string[] strArray72 = new string[7];
  7031. strArray72[0] = str79;
  7032. string[] strArray73 = strArray72;
  7033. int index55 = 1;
  7034. num = UpperArmL2[i].eulerAngles.x;
  7035. string str80 = num.ToString("0.###");
  7036. strArray73[index55] = str80;
  7037. strArray72[2] = ",";
  7038. string[] strArray74 = strArray72;
  7039. int index56 = 3;
  7040. num = UpperArmL2[i].eulerAngles.y;
  7041. string str81 = num.ToString("0.###");
  7042. strArray74[index56] = str81;
  7043. strArray72[4] = ",";
  7044. string[] strArray75 = strArray72;
  7045. int index57 = 5;
  7046. num = UpperArmL2[i].eulerAngles.z;
  7047. string str82 = num.ToString("0.###");
  7048. strArray75[index57] = str82;
  7049. strArray72[6] = ":";
  7050. string str83 = string.Concat(strArray72);
  7051. string[] strArray76 = new string[7];
  7052. strArray76[0] = str83;
  7053. string[] strArray77 = strArray76;
  7054. int index58 = 1;
  7055. num = ForearmL2[i].eulerAngles.x;
  7056. string str84 = num.ToString("0.###");
  7057. strArray77[index58] = str84;
  7058. strArray76[2] = ",";
  7059. string[] strArray78 = strArray76;
  7060. int index59 = 3;
  7061. num = ForearmL2[i].eulerAngles.y;
  7062. string str85 = num.ToString("0.###");
  7063. strArray78[index59] = str85;
  7064. strArray76[4] = ",";
  7065. string[] strArray79 = strArray76;
  7066. int index60 = 5;
  7067. num = ForearmL2[i].eulerAngles.z;
  7068. string str86 = num.ToString("0.###");
  7069. strArray79[index60] = str86;
  7070. strArray76[6] = ":";
  7071. string str87 = string.Concat(strArray76);
  7072. string[] strArray80 = new string[7];
  7073. strArray80[0] = str87;
  7074. string[] strArray81 = strArray80;
  7075. int index61 = 1;
  7076. num = HandR2[i].localEulerAngles.x;
  7077. string str88 = num.ToString("0.###");
  7078. strArray81[index61] = str88;
  7079. strArray80[2] = ",";
  7080. string[] strArray82 = strArray80;
  7081. int index62 = 3;
  7082. num = HandR2[i].localEulerAngles.y;
  7083. string str89 = num.ToString("0.###");
  7084. strArray82[index62] = str89;
  7085. strArray80[4] = ",";
  7086. string[] strArray83 = strArray80;
  7087. int index63 = 5;
  7088. num = HandR2[i].localEulerAngles.z;
  7089. string str90 = num.ToString("0.###");
  7090. strArray83[index63] = str90;
  7091. strArray80[6] = ":";
  7092. string str91 = string.Concat(strArray80);
  7093. string[] strArray84 = new string[7];
  7094. strArray84[0] = str91;
  7095. string[] strArray85 = strArray84;
  7096. int index64 = 1;
  7097. num = UpperArmR2[i].eulerAngles.x;
  7098. string str92 = num.ToString("0.###");
  7099. strArray85[index64] = str92;
  7100. strArray84[2] = ",";
  7101. string[] strArray86 = strArray84;
  7102. int index65 = 3;
  7103. num = UpperArmR2[i].eulerAngles.y;
  7104. string str93 = num.ToString("0.###");
  7105. strArray86[index65] = str93;
  7106. strArray84[4] = ",";
  7107. string[] strArray87 = strArray84;
  7108. int index66 = 5;
  7109. num = UpperArmR2[i].eulerAngles.z;
  7110. string str94 = num.ToString("0.###");
  7111. strArray87[index66] = str94;
  7112. strArray84[6] = ":";
  7113. string str95 = string.Concat(strArray84);
  7114. string[] strArray88 = new string[7];
  7115. strArray88[0] = str95;
  7116. string[] strArray89 = strArray88;
  7117. int index67 = 1;
  7118. num = ForearmR2[i].eulerAngles.x;
  7119. string str96 = num.ToString("0.###");
  7120. strArray89[index67] = str96;
  7121. strArray88[2] = ",";
  7122. string[] strArray90 = strArray88;
  7123. int index68 = 3;
  7124. num = ForearmR2[i].eulerAngles.y;
  7125. string str97 = num.ToString("0.###");
  7126. strArray90[index68] = str97;
  7127. strArray88[4] = ",";
  7128. string[] strArray91 = strArray88;
  7129. int index69 = 5;
  7130. num = ForearmR2[i].eulerAngles.z;
  7131. string str98 = num.ToString("0.###");
  7132. strArray91[index69] = str98;
  7133. strArray88[6] = ":";
  7134. string str99 = string.Concat(strArray88);
  7135. string[] strArray92 = new string[7];
  7136. strArray92[0] = str99;
  7137. string[] strArray93 = strArray92;
  7138. int index70 = 1;
  7139. num = Head.eulerAngles.x;
  7140. string str100 = num.ToString("0.###");
  7141. strArray93[index70] = str100;
  7142. strArray92[2] = ",";
  7143. string[] strArray94 = strArray92;
  7144. int index71 = 3;
  7145. num = Head.eulerAngles.y;
  7146. string str101 = num.ToString("0.###");
  7147. strArray94[index71] = str101;
  7148. strArray92[4] = ",";
  7149. string[] strArray95 = strArray92;
  7150. int index72 = 5;
  7151. num = Head.eulerAngles.z;
  7152. string str102 = num.ToString("0.###");
  7153. strArray95[index72] = str102;
  7154. strArray92[6] = ":";
  7155. string str103 = string.Concat(strArray92);
  7156. string[] strArray96 = new string[7];
  7157. strArray96[0] = str103;
  7158. string[] strArray97 = strArray96;
  7159. int index73 = 1;
  7160. num = maid.transform.localEulerAngles.x;
  7161. string str104 = num.ToString("0.###");
  7162. strArray97[index73] = str104;
  7163. strArray96[2] = ",";
  7164. string[] strArray98 = strArray96;
  7165. int index74 = 3;
  7166. num = maid.transform.localEulerAngles.y;
  7167. string str105 = num.ToString("0.###");
  7168. strArray98[index74] = str105;
  7169. strArray96[4] = ",";
  7170. string[] strArray99 = strArray96;
  7171. int index75 = 5;
  7172. num = maid.transform.localEulerAngles.z;
  7173. string str106 = num.ToString("0.###");
  7174. strArray99[index75] = str106;
  7175. strArray96[6] = ":";
  7176. string str107 = string.Concat(strArray96);
  7177. string[] strArray100 = new string[7];
  7178. strArray100[0] = str107;
  7179. string[] strArray101 = strArray100;
  7180. int index76 = 1;
  7181. num = maid.transform.position.x;
  7182. string str108 = num.ToString("0.###");
  7183. strArray101[index76] = str108;
  7184. strArray100[2] = ",";
  7185. string[] strArray102 = strArray100;
  7186. int index77 = 3;
  7187. num = maid.transform.position.y;
  7188. string str109 = num.ToString("0.###");
  7189. strArray102[index77] = str109;
  7190. strArray100[4] = ",";
  7191. string[] strArray103 = strArray100;
  7192. int index78 = 5;
  7193. num = maid.transform.position.z;
  7194. string str110 = num.ToString("0.###");
  7195. strArray103[index78] = str110;
  7196. strArray100[6] = ":";
  7197. string str111 = string.Concat(strArray100);
  7198. string[] strArray104 = new string[7];
  7199. strArray104[0] = str111;
  7200. string[] strArray105 = strArray104;
  7201. int index79 = 1;
  7202. num = maid.transform.localScale.x;
  7203. string str112 = num.ToString("0.###");
  7204. strArray105[index79] = str112;
  7205. strArray104[2] = ",";
  7206. string[] strArray106 = strArray104;
  7207. int index80 = 3;
  7208. num = maid.transform.localScale.y;
  7209. string str113 = num.ToString("0.###");
  7210. strArray106[index80] = str113;
  7211. strArray104[4] = ",";
  7212. string[] strArray107 = strArray104;
  7213. int index81 = 5;
  7214. num = maid.transform.localScale.z;
  7215. string str114 = num.ToString("0.###");
  7216. strArray107[index81] = str114;
  7217. strArray104[6] = ":";
  7218. string str115 = string.Concat(strArray104);
  7219. string str116;
  7220. if (poseArray[poseIndex[i]].Contains("MultipleMaidsPose"))
  7221. {
  7222. string str26 = poseArray[poseIndex[i]].Replace(" ", "").Split('/')[0];
  7223. str116 = str115 + "MultipleMaidsPose" + str26.Replace("_", " ").Replace(",", "|") + ":";
  7224. }
  7225. else
  7226. {
  7227. str116 = str115 + poseArray[poseIndex[i]].Replace("_", " ").Replace(",", "|") + ":";
  7228. }
  7229. string str117 = str116 + faceIndex[i] + ":";
  7230. TMorph morph = maid.body0.Face.morph;
  7231. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  7232. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  7233. string str118 = str117 + fieldValue2[(int)morph.hash["eyeclose"]] + ","
  7234. + fieldValue2[(int)morph.hash["eyeclose2"]] + ","
  7235. + fieldValue2[(int)morph.hash["eyeclose3"]] + ","
  7236. + fieldValue2[(int)morph.hash["eyeclose6"]] + ","
  7237. + fieldValue1[(int)morph.hash["hitomih"]] + ","
  7238. + fieldValue1[(int)morph.hash["hitomis"]] + ","
  7239. + fieldValue1[(int)morph.hash["mayuha"]] + ","
  7240. + fieldValue1[(int)morph.hash["mayuup"]] + ","
  7241. + fieldValue1[(int)morph.hash["mayuv"]] + ","
  7242. + fieldValue1[(int)morph.hash["mayuvhalf"]] + ","
  7243. + fieldValue1[(int)morph.hash["moutha"]] + ","
  7244. + fieldValue1[(int)morph.hash["mouths"]] + ","
  7245. + fieldValue1[(int)morph.hash["mouthdw"]] + ","
  7246. + fieldValue1[(int)morph.hash["mouthup"]] + ","
  7247. + fieldValue1[(int)morph.hash["tangout"]] + ","
  7248. + fieldValue1[(int)morph.hash["tangup"]] + ","
  7249. + fieldValue1[(int)morph.hash["eyebig"]] + ","
  7250. + fieldValue2[(int)morph.hash["eyeclose5"]] + ","
  7251. + fieldValue1[(int)morph.hash["mayuw"]] + ","
  7252. + fieldValue1[(int)morph.hash["mouthhe"]] + ","
  7253. + fieldValue1[(int)morph.hash["mouthc"]] + ","
  7254. + fieldValue1[(int)morph.hash["mouthi"]] + ","
  7255. + fieldValue1[(int)morph.hash["mouthuphalf"]] + ",";
  7256. string str119;
  7257. try
  7258. {
  7259. str119 = str118 + fieldValue1[(int)morph.hash["tangopen"]] + ",";
  7260. }
  7261. catch
  7262. {
  7263. str119 = str118 + "0,";
  7264. }
  7265. string str120 = fieldValue1[(int)morph.hash["namida"]] <= 0.0
  7266. ? str119 + 0 + ","
  7267. : str119 + 1 + ",";
  7268. string str121 = fieldValue1[(int)morph.hash["tear1"]] <= 0.0
  7269. ? str120 + 0 + ","
  7270. : str120 + 1 + ",";
  7271. string str122 = fieldValue1[(int)morph.hash["tear2"]] <= 0.0
  7272. ? str121 + 0 + ","
  7273. : str121 + 1 + ",";
  7274. string str123 = fieldValue1[(int)morph.hash["tear3"]] <= 0.0
  7275. ? str122 + 0 + ","
  7276. : str122 + 1 + ",";
  7277. string str124 = fieldValue1[(int)morph.hash["shock"]] <= 0.0
  7278. ? str123 + 0 + ","
  7279. : str123 + 1 + ",";
  7280. string str125 = fieldValue1[(int)morph.hash["yodare"]] <= 0.0
  7281. ? str124 + 0 + ","
  7282. : str124 + 1 + ",";
  7283. string str126 = fieldValue1[(int)morph.hash["hoho"]] <= 0.0
  7284. ? str125 + 0 + ","
  7285. : str125 + 1 + ",";
  7286. string str127 = fieldValue1[(int)morph.hash["hoho2"]] <= 0.0
  7287. ? str126 + 0 + ","
  7288. : str126 + 1 + ",";
  7289. string str128 = fieldValue1[(int)morph.hash["hohos"]] <= 0.0
  7290. ? str127 + 0 + ","
  7291. : str127 + 1 + ",";
  7292. string str129 = fieldValue1[(int)morph.hash["hohol"]] <= 0.0
  7293. ? str128 + 0 + ","
  7294. : str128 + 1 + ",";
  7295. string str130 = fieldValue1[(int)morph.hash["toothoff"]] <= 0.0
  7296. ? str129 + 0 + ","
  7297. : str129 + 1 + ",";
  7298. string str131 = fieldValue1[(int)morph.hash["nosefook"]] <= 0.0
  7299. ? str130 + 0 + ":"
  7300. : str130 + 1 + ":";
  7301. string str132 = "";
  7302. string str133 =
  7303. (!isLook[i]
  7304. ? str132 + 0 + ",0,0:"
  7305. : str132 + 1 + "," + lookX[i].ToString("0.###") + "," + lookY[i].ToString("0.###")
  7306. + ":").ToString() + itemIndex[i] + ":";
  7307. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true);
  7308. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true);
  7309. string str134 = str133 + transform1.localEulerAngles.x.ToString("0.###") + ","
  7310. + transform1.localEulerAngles.y.ToString("0.###") + ","
  7311. + transform1.localEulerAngles.z.ToString("0.###") + ":"
  7312. + transform2.localEulerAngles.x.ToString("0.###") + ","
  7313. + transform2.localEulerAngles.y.ToString("0.###") + ","
  7314. + transform2.localEulerAngles.z.ToString("0.###") + ":";
  7315. string[] strArray108 = new string[7];
  7316. strArray108[0] = str134;
  7317. string[] strArray109 = strArray108;
  7318. int index82 = 1;
  7319. num = ClavicleL1[i].eulerAngles.x;
  7320. string str135 = num.ToString("0.###");
  7321. strArray109[index82] = str135;
  7322. strArray108[2] = ",";
  7323. string[] strArray110 = strArray108;
  7324. int index83 = 3;
  7325. num = ClavicleL1[i].eulerAngles.y;
  7326. string str136 = num.ToString("0.###");
  7327. strArray110[index83] = str136;
  7328. strArray108[4] = ",";
  7329. string[] strArray111 = strArray108;
  7330. int index84 = 5;
  7331. num = ClavicleL1[i].eulerAngles.z;
  7332. string str137 = num.ToString("0.###");
  7333. strArray111[index84] = str137;
  7334. strArray108[6] = ":";
  7335. string str138 = string.Concat(strArray108);
  7336. string[] strArray112 = new string[7];
  7337. strArray112[0] = str138;
  7338. string[] strArray113 = strArray112;
  7339. int index85 = 1;
  7340. num = ClavicleR1[i].eulerAngles.x;
  7341. string str139 = num.ToString("0.###");
  7342. strArray113[index85] = str139;
  7343. strArray112[2] = ",";
  7344. string[] strArray114 = strArray112;
  7345. int index86 = 3;
  7346. num = ClavicleR1[i].eulerAngles.y;
  7347. string str140 = num.ToString("0.###");
  7348. strArray114[index86] = str140;
  7349. strArray112[4] = ",";
  7350. string[] strArray115 = strArray112;
  7351. int index87 = 5;
  7352. num = ClavicleR1[i].eulerAngles.z;
  7353. string str141 = num.ToString("0.###");
  7354. strArray115[index87] = str141;
  7355. strArray112[6] = ":";
  7356. string str142 = string.Concat(strArray112);
  7357. string str143 = !hanten[i] ? str142 + "0:" : str142 + "1:";
  7358. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  7359. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  7360. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  7361. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  7362. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  7363. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  7364. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  7365. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  7366. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  7367. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  7368. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  7369. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  7370. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  7371. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  7372. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  7373. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  7374. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  7375. Transform transform20 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  7376. Transform transform21 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  7377. string str144 = str143;
  7378. string[] strArray116 = new string[7];
  7379. strArray116[0] = str144;
  7380. string[] strArray117 = strArray116;
  7381. int index88 = 1;
  7382. num = transform3.eulerAngles.x;
  7383. string str145 = num.ToString("0.###");
  7384. strArray117[index88] = str145;
  7385. strArray116[2] = ",";
  7386. string[] strArray118 = strArray116;
  7387. int index89 = 3;
  7388. num = transform3.eulerAngles.y;
  7389. string str146 = num.ToString("0.###");
  7390. strArray118[index89] = str146;
  7391. strArray116[4] = ",";
  7392. string[] strArray119 = strArray116;
  7393. int index90 = 5;
  7394. num = transform3.eulerAngles.z;
  7395. string str147 = num.ToString("0.###");
  7396. strArray119[index90] = str147;
  7397. strArray116[6] = ":";
  7398. string str148 = string.Concat(strArray116);
  7399. string[] strArray120 = new string[7];
  7400. strArray120[0] = str148;
  7401. string[] strArray121 = strArray120;
  7402. int index91 = 1;
  7403. num = transform4.localEulerAngles.x;
  7404. string str149 = num.ToString("0.###");
  7405. strArray121[index91] = str149;
  7406. strArray120[2] = ",";
  7407. string[] strArray122 = strArray120;
  7408. int index92 = 3;
  7409. num = transform4.localEulerAngles.y;
  7410. string str150 = num.ToString("0.###");
  7411. strArray122[index92] = str150;
  7412. strArray120[4] = ",";
  7413. string[] strArray123 = strArray120;
  7414. int index93 = 5;
  7415. num = transform4.localEulerAngles.z;
  7416. string str151 = num.ToString("0.###");
  7417. strArray123[index93] = str151;
  7418. strArray120[6] = ":";
  7419. string str152 = string.Concat(strArray120);
  7420. string[] strArray124 = new string[7];
  7421. strArray124[0] = str152;
  7422. string[] strArray125 = strArray124;
  7423. int index94 = 1;
  7424. num = transform5.localEulerAngles.x;
  7425. string str153 = num.ToString("0.###");
  7426. strArray125[index94] = str153;
  7427. strArray124[2] = ",";
  7428. string[] strArray126 = strArray124;
  7429. int index95 = 3;
  7430. num = transform5.localEulerAngles.y;
  7431. string str154 = num.ToString("0.###");
  7432. strArray126[index95] = str154;
  7433. strArray124[4] = ",";
  7434. string[] strArray127 = strArray124;
  7435. int index96 = 5;
  7436. num = transform5.localEulerAngles.z;
  7437. string str155 = num.ToString("0.###");
  7438. strArray127[index96] = str155;
  7439. strArray124[6] = ":";
  7440. string str156 = string.Concat(strArray124);
  7441. string[] strArray128 = new string[7];
  7442. strArray128[0] = str156;
  7443. string[] strArray129 = strArray128;
  7444. int index97 = 1;
  7445. num = transform6.localEulerAngles.x;
  7446. string str157 = num.ToString("0.###");
  7447. strArray129[index97] = str157;
  7448. strArray128[2] = ",";
  7449. string[] strArray130 = strArray128;
  7450. int index98 = 3;
  7451. num = transform6.localEulerAngles.y;
  7452. string str158 = num.ToString("0.###");
  7453. strArray130[index98] = str158;
  7454. strArray128[4] = ",";
  7455. string[] strArray131 = strArray128;
  7456. int index99 = 5;
  7457. num = transform6.localEulerAngles.z;
  7458. string str159 = num.ToString("0.###");
  7459. strArray131[index99] = str159;
  7460. strArray128[6] = ":";
  7461. string str160 = string.Concat(strArray128);
  7462. string[] strArray132 = new string[7];
  7463. strArray132[0] = str160;
  7464. string[] strArray133 = strArray132;
  7465. int index100 = 1;
  7466. num = transform7.localEulerAngles.x;
  7467. string str161 = num.ToString("0.###");
  7468. strArray133[index100] = str161;
  7469. strArray132[2] = ",";
  7470. string[] strArray134 = strArray132;
  7471. int index101 = 3;
  7472. num = transform7.localEulerAngles.y;
  7473. string str162 = num.ToString("0.###");
  7474. strArray134[index101] = str162;
  7475. strArray132[4] = ",";
  7476. string[] strArray135 = strArray132;
  7477. int index102 = 5;
  7478. num = transform7.localEulerAngles.z;
  7479. string str163 = num.ToString("0.###");
  7480. strArray135[index102] = str163;
  7481. strArray132[6] = ":";
  7482. string str164 = string.Concat(strArray132);
  7483. string[] strArray136 = new string[7];
  7484. strArray136[0] = str164;
  7485. string[] strArray137 = strArray136;
  7486. int index103 = 1;
  7487. num = transform8.localEulerAngles.x;
  7488. string str165 = num.ToString("0.###");
  7489. strArray137[index103] = str165;
  7490. strArray136[2] = ",";
  7491. string[] strArray138 = strArray136;
  7492. int index104 = 3;
  7493. num = transform8.localEulerAngles.y;
  7494. string str166 = num.ToString("0.###");
  7495. strArray138[index104] = str166;
  7496. strArray136[4] = ",";
  7497. string[] strArray139 = strArray136;
  7498. int index105 = 5;
  7499. num = transform8.localEulerAngles.z;
  7500. string str167 = num.ToString("0.###");
  7501. strArray139[index105] = str167;
  7502. strArray136[6] = ":";
  7503. string str168 = string.Concat(strArray136);
  7504. string[] strArray140 = new string[7];
  7505. strArray140[0] = str168;
  7506. string[] strArray141 = strArray140;
  7507. int index106 = 1;
  7508. num = transform9.localEulerAngles.x;
  7509. string str169 = num.ToString("0.###");
  7510. strArray141[index106] = str169;
  7511. strArray140[2] = ",";
  7512. string[] strArray142 = strArray140;
  7513. int index107 = 3;
  7514. num = transform9.localEulerAngles.y;
  7515. string str170 = num.ToString("0.###");
  7516. strArray142[index107] = str170;
  7517. strArray140[4] = ",";
  7518. string[] strArray143 = strArray140;
  7519. int index108 = 5;
  7520. num = transform9.localEulerAngles.z;
  7521. string str171 = num.ToString("0.###");
  7522. strArray143[index108] = str171;
  7523. strArray140[6] = ":";
  7524. string str172 = string.Concat(strArray140);
  7525. string[] strArray144 = new string[7];
  7526. strArray144[0] = str172;
  7527. string[] strArray145 = strArray144;
  7528. int index109 = 1;
  7529. num = transform10.localEulerAngles.x;
  7530. string str173 = num.ToString("0.###");
  7531. strArray145[index109] = str173;
  7532. strArray144[2] = ",";
  7533. string[] strArray146 = strArray144;
  7534. int index110 = 3;
  7535. num = transform10.localEulerAngles.y;
  7536. string str174 = num.ToString("0.###");
  7537. strArray146[index110] = str174;
  7538. strArray144[4] = ",";
  7539. string[] strArray147 = strArray144;
  7540. int index111 = 5;
  7541. num = transform10.localEulerAngles.z;
  7542. string str175 = num.ToString("0.###");
  7543. strArray147[index111] = str175;
  7544. strArray144[6] = ":";
  7545. string str176 = string.Concat(strArray144);
  7546. string[] strArray148 = new string[7];
  7547. strArray148[0] = str176;
  7548. string[] strArray149 = strArray148;
  7549. int index112 = 1;
  7550. num = transform11.localEulerAngles.x;
  7551. string str177 = num.ToString("0.###");
  7552. strArray149[index112] = str177;
  7553. strArray148[2] = ",";
  7554. string[] strArray150 = strArray148;
  7555. int index113 = 3;
  7556. num = transform11.localEulerAngles.y;
  7557. string str178 = num.ToString("0.###");
  7558. strArray150[index113] = str178;
  7559. strArray148[4] = ",";
  7560. string[] strArray151 = strArray148;
  7561. int index114 = 5;
  7562. num = transform11.localEulerAngles.z;
  7563. string str179 = num.ToString("0.###");
  7564. strArray151[index114] = str179;
  7565. strArray148[6] = ":";
  7566. string str180 = string.Concat(strArray148);
  7567. string[] strArray152 = new string[7];
  7568. strArray152[0] = str180;
  7569. string[] strArray153 = strArray152;
  7570. int index115 = 1;
  7571. num = transform12.localEulerAngles.x;
  7572. string str181 = num.ToString("0.###");
  7573. strArray153[index115] = str181;
  7574. strArray152[2] = ",";
  7575. string[] strArray154 = strArray152;
  7576. int index116 = 3;
  7577. num = transform12.localEulerAngles.y;
  7578. string str182 = num.ToString("0.###");
  7579. strArray154[index116] = str182;
  7580. strArray152[4] = ",";
  7581. string[] strArray155 = strArray152;
  7582. int index117 = 5;
  7583. num = transform12.localEulerAngles.z;
  7584. string str183 = num.ToString("0.###");
  7585. strArray155[index117] = str183;
  7586. strArray152[6] = ":";
  7587. string str184 = string.Concat(strArray152);
  7588. string[] strArray156 = new string[7];
  7589. strArray156[0] = str184;
  7590. string[] strArray157 = strArray156;
  7591. int index118 = 1;
  7592. num = transform13.localEulerAngles.x;
  7593. string str185 = num.ToString("0.###");
  7594. strArray157[index118] = str185;
  7595. strArray156[2] = ",";
  7596. string[] strArray158 = strArray156;
  7597. int index119 = 3;
  7598. num = transform13.localEulerAngles.y;
  7599. string str186 = num.ToString("0.###");
  7600. strArray158[index119] = str186;
  7601. strArray156[4] = ",";
  7602. string[] strArray159 = strArray156;
  7603. int index120 = 5;
  7604. num = transform13.localEulerAngles.z;
  7605. string str187 = num.ToString("0.###");
  7606. strArray159[index120] = str187;
  7607. strArray156[6] = ":";
  7608. string str188 = string.Concat(strArray156);
  7609. string[] strArray160 = new string[7];
  7610. strArray160[0] = str188;
  7611. string[] strArray161 = strArray160;
  7612. int index121 = 1;
  7613. num = transform14.localEulerAngles.x;
  7614. string str189 = num.ToString("0.###");
  7615. strArray161[index121] = str189;
  7616. strArray160[2] = ",";
  7617. string[] strArray162 = strArray160;
  7618. int index122 = 3;
  7619. num = transform14.localEulerAngles.y;
  7620. string str190 = num.ToString("0.###");
  7621. strArray162[index122] = str190;
  7622. strArray160[4] = ",";
  7623. string[] strArray163 = strArray160;
  7624. int index123 = 5;
  7625. num = transform14.localEulerAngles.z;
  7626. string str191 = num.ToString("0.###");
  7627. strArray163[index123] = str191;
  7628. strArray160[6] = ":";
  7629. string str192 = string.Concat(strArray160);
  7630. string[] strArray164 = new string[7];
  7631. strArray164[0] = str192;
  7632. string[] strArray165 = strArray164;
  7633. int index124 = 1;
  7634. num = transform15.localEulerAngles.x;
  7635. string str193 = num.ToString("0.###");
  7636. strArray165[index124] = str193;
  7637. strArray164[2] = ",";
  7638. string[] strArray166 = strArray164;
  7639. int index125 = 3;
  7640. num = transform15.localEulerAngles.y;
  7641. string str194 = num.ToString("0.###");
  7642. strArray166[index125] = str194;
  7643. strArray164[4] = ",";
  7644. string[] strArray167 = strArray164;
  7645. int index126 = 5;
  7646. num = transform15.localEulerAngles.z;
  7647. string str195 = num.ToString("0.###");
  7648. strArray167[index126] = str195;
  7649. strArray164[6] = ":";
  7650. string str196 = string.Concat(strArray164);
  7651. string[] strArray168 = new string[7];
  7652. strArray168[0] = str196;
  7653. string[] strArray169 = strArray168;
  7654. int index127 = 1;
  7655. num = transform16.localEulerAngles.x;
  7656. string str197 = num.ToString("0.###");
  7657. strArray169[index127] = str197;
  7658. strArray168[2] = ",";
  7659. string[] strArray170 = strArray168;
  7660. int index128 = 3;
  7661. num = transform16.localEulerAngles.y;
  7662. string str198 = num.ToString("0.###");
  7663. strArray170[index128] = str198;
  7664. strArray168[4] = ",";
  7665. string[] strArray171 = strArray168;
  7666. int index129 = 5;
  7667. num = transform16.localEulerAngles.z;
  7668. string str199 = num.ToString("0.###");
  7669. strArray171[index129] = str199;
  7670. strArray168[6] = ":";
  7671. string str200 = string.Concat(strArray168);
  7672. string[] strArray172 = new string[7];
  7673. strArray172[0] = str200;
  7674. string[] strArray173 = strArray172;
  7675. int index130 = 1;
  7676. num = transform17.localEulerAngles.x;
  7677. string str201 = num.ToString("0.###");
  7678. strArray173[index130] = str201;
  7679. strArray172[2] = ",";
  7680. string[] strArray174 = strArray172;
  7681. int index131 = 3;
  7682. num = transform17.localEulerAngles.y;
  7683. string str202 = num.ToString("0.###");
  7684. strArray174[index131] = str202;
  7685. strArray172[4] = ",";
  7686. string[] strArray175 = strArray172;
  7687. int index132 = 5;
  7688. num = transform17.localEulerAngles.z;
  7689. string str203 = num.ToString("0.###");
  7690. strArray175[index132] = str203;
  7691. strArray172[6] = ":";
  7692. string str204 = string.Concat(strArray172);
  7693. string[] strArray176 = new string[7];
  7694. strArray176[0] = str204;
  7695. string[] strArray177 = strArray176;
  7696. int index133 = 1;
  7697. num = transform18.localEulerAngles.x;
  7698. string str205 = num.ToString("0.###");
  7699. strArray177[index133] = str205;
  7700. strArray176[2] = ",";
  7701. string[] strArray178 = strArray176;
  7702. int index134 = 3;
  7703. num = transform18.localEulerAngles.y;
  7704. string str206 = num.ToString("0.###");
  7705. strArray178[index134] = str206;
  7706. strArray176[4] = ",";
  7707. string[] strArray179 = strArray176;
  7708. int index135 = 5;
  7709. num = transform18.localEulerAngles.z;
  7710. string str207 = num.ToString("0.###");
  7711. strArray179[index135] = str207;
  7712. strArray176[6] = ":";
  7713. string str208 = string.Concat(strArray176);
  7714. string[] strArray180 = new string[7];
  7715. strArray180[0] = str208;
  7716. string[] strArray181 = strArray180;
  7717. int index136 = 1;
  7718. num = transform19.localEulerAngles.x;
  7719. string str209 = num.ToString("0.###");
  7720. strArray181[index136] = str209;
  7721. strArray180[2] = ",";
  7722. string[] strArray182 = strArray180;
  7723. int index137 = 3;
  7724. num = transform19.localEulerAngles.y;
  7725. string str210 = num.ToString("0.###");
  7726. strArray182[index137] = str210;
  7727. strArray180[4] = ",";
  7728. string[] strArray183 = strArray180;
  7729. int index138 = 5;
  7730. num = transform19.localEulerAngles.z;
  7731. string str211 = num.ToString("0.###");
  7732. strArray183[index138] = str211;
  7733. strArray180[6] = ":";
  7734. string str212 = string.Concat(strArray180);
  7735. string[] strArray184 = new string[7];
  7736. strArray184[0] = str212;
  7737. string[] strArray185 = strArray184;
  7738. int index139 = 1;
  7739. num = transform20.localEulerAngles.x;
  7740. string str213 = num.ToString("0.###");
  7741. strArray185[index139] = str213;
  7742. strArray184[2] = ",";
  7743. string[] strArray186 = strArray184;
  7744. int index140 = 3;
  7745. num = transform20.localEulerAngles.y;
  7746. string str214 = num.ToString("0.###");
  7747. strArray186[index140] = str214;
  7748. strArray184[4] = ",";
  7749. string[] strArray187 = strArray184;
  7750. int index141 = 5;
  7751. num = transform20.localEulerAngles.z;
  7752. string str215 = num.ToString("0.###");
  7753. strArray187[index141] = str215;
  7754. strArray184[6] = ":";
  7755. string str216 = string.Concat(strArray184);
  7756. string[] strArray188 = new string[7];
  7757. strArray188[0] = str216;
  7758. string[] strArray189 = strArray188;
  7759. int index142 = 1;
  7760. num = transform21.localEulerAngles.x;
  7761. string str217 = num.ToString("0.###");
  7762. strArray189[index142] = str217;
  7763. strArray188[2] = ",";
  7764. string[] strArray190 = strArray188;
  7765. int index143 = 3;
  7766. num = transform21.localEulerAngles.y;
  7767. string str218 = num.ToString("0.###");
  7768. strArray190[index143] = str218;
  7769. strArray188[4] = ",";
  7770. string[] strArray191 = strArray188;
  7771. int index144 = 5;
  7772. num = transform21.localEulerAngles.z;
  7773. string str219 = num.ToString("0.###");
  7774. strArray191[index144] = str219;
  7775. strArray188[6] = ":";
  7776. string str220 = string.Concat(strArray188);
  7777. string[] strArray192 = new string[7];
  7778. strArray192[0] = str220;
  7779. string[] strArray193 = strArray192;
  7780. int index145 = 1;
  7781. num = maid.body0.quaDefEyeL.eulerAngles.x;
  7782. string str221 = num.ToString("0.###");
  7783. strArray193[index145] = str221;
  7784. strArray192[2] = ",";
  7785. string[] strArray194 = strArray192;
  7786. int index146 = 3;
  7787. num = maid.body0.quaDefEyeL.eulerAngles.y;
  7788. string str222 = num.ToString("0.###");
  7789. strArray194[index146] = str222;
  7790. strArray192[4] = ",";
  7791. string[] strArray195 = strArray192;
  7792. int index147 = 5;
  7793. num = maid.body0.quaDefEyeL.eulerAngles.z;
  7794. string str223 = num.ToString("0.###");
  7795. strArray195[index147] = str223;
  7796. strArray192[6] = ":";
  7797. string str224 = string.Concat(strArray192);
  7798. string[] strArray196 = new string[7];
  7799. strArray196[0] = str224;
  7800. string[] strArray197 = strArray196;
  7801. int index148 = 1;
  7802. num = maid.body0.quaDefEyeR.eulerAngles.x;
  7803. string str225 = num.ToString("0.###");
  7804. strArray197[index148] = str225;
  7805. strArray196[2] = ",";
  7806. string[] strArray198 = strArray196;
  7807. int index149 = 3;
  7808. num = maid.body0.quaDefEyeR.eulerAngles.y;
  7809. string str226 = num.ToString("0.###");
  7810. strArray198[index149] = str226;
  7811. strArray196[4] = ",";
  7812. string[] strArray199 = strArray196;
  7813. int index150 = 5;
  7814. num = maid.body0.quaDefEyeR.eulerAngles.z;
  7815. string str227 = num.ToString("0.###");
  7816. strArray199[index150] = str227;
  7817. strArray196[6] = ":";
  7818. string str228 = string.Concat(strArray196);
  7819. Transform transform22 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_L", true);
  7820. Transform transform23 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_L_sub", true);
  7821. Transform transform24 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_R", true);
  7822. Transform transform25 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_R_sub", true);
  7823. string str229 = str228;
  7824. string[] strArray200 = new string[7];
  7825. strArray200[0] = str229;
  7826. string[] strArray201 = strArray200;
  7827. int index151 = 1;
  7828. num = transform22.localEulerAngles.x;
  7829. string str230 = num.ToString("0.###");
  7830. strArray201[index151] = str230;
  7831. strArray200[2] = ",";
  7832. string[] strArray202 = strArray200;
  7833. int index152 = 3;
  7834. num = transform22.localEulerAngles.y;
  7835. string str231 = num.ToString("0.###");
  7836. strArray202[index152] = str231;
  7837. strArray200[4] = ",";
  7838. string[] strArray203 = strArray200;
  7839. int index153 = 5;
  7840. num = transform22.localEulerAngles.z;
  7841. string str232 = num.ToString("0.###");
  7842. strArray203[index153] = str232;
  7843. strArray200[6] = ":";
  7844. string str233 = string.Concat(strArray200);
  7845. string[] strArray204 = new string[7];
  7846. strArray204[0] = str233;
  7847. string[] strArray205 = strArray204;
  7848. int index154 = 1;
  7849. num = transform23.localEulerAngles.x;
  7850. string str234 = num.ToString("0.###");
  7851. strArray205[index154] = str234;
  7852. strArray204[2] = ",";
  7853. string[] strArray206 = strArray204;
  7854. int index155 = 3;
  7855. num = transform23.localEulerAngles.y;
  7856. string str235 = num.ToString("0.###");
  7857. strArray206[index155] = str235;
  7858. strArray204[4] = ",";
  7859. string[] strArray207 = strArray204;
  7860. int index156 = 5;
  7861. num = transform23.localEulerAngles.z;
  7862. string str236 = num.ToString("0.###");
  7863. strArray207[index156] = str236;
  7864. strArray204[6] = ":";
  7865. string str237 = string.Concat(strArray204);
  7866. string[] strArray208 = new string[7];
  7867. strArray208[0] = str237;
  7868. string[] strArray209 = strArray208;
  7869. int index157 = 1;
  7870. num = transform24.localEulerAngles.x;
  7871. string str238 = num.ToString("0.###");
  7872. strArray209[index157] = str238;
  7873. strArray208[2] = ",";
  7874. string[] strArray210 = strArray208;
  7875. int index158 = 3;
  7876. num = transform24.localEulerAngles.y;
  7877. string str239 = num.ToString("0.###");
  7878. strArray210[index158] = str239;
  7879. strArray208[4] = ",";
  7880. string[] strArray211 = strArray208;
  7881. int index159 = 5;
  7882. num = transform24.localEulerAngles.z;
  7883. string str240 = num.ToString("0.###");
  7884. strArray211[index159] = str240;
  7885. strArray208[6] = ":";
  7886. string str241 = string.Concat(strArray208);
  7887. string[] strArray212 = new string[7];
  7888. strArray212[0] = str241;
  7889. string[] strArray213 = strArray212;
  7890. int index160 = 1;
  7891. num = transform25.localEulerAngles.x;
  7892. string str242 = num.ToString("0.###");
  7893. strArray213[index160] = str242;
  7894. strArray212[2] = ",";
  7895. string[] strArray214 = strArray212;
  7896. int index161 = 3;
  7897. num = transform25.localEulerAngles.y;
  7898. string str243 = num.ToString("0.###");
  7899. strArray214[index161] = str243;
  7900. strArray212[4] = ",";
  7901. string[] strArray215 = strArray212;
  7902. int index162 = 5;
  7903. num = transform25.localEulerAngles.z;
  7904. string str244 = num.ToString("0.###");
  7905. strArray215[index162] = str244;
  7906. strArray212[6] = ":";
  7907. string str245 = string.Concat(strArray212);
  7908. string[] strArray216 = new string[6];
  7909. strArray216[0] = str245;
  7910. string[] strArray217 = strArray216;
  7911. int index163 = 1;
  7912. num = transform3.position.x;
  7913. string str246 = num.ToString("0.###");
  7914. strArray217[index163] = str246;
  7915. strArray216[2] = ",";
  7916. string[] strArray218 = strArray216;
  7917. int index164 = 3;
  7918. num = transform3.position.y;
  7919. string str247 = num.ToString("0.###");
  7920. strArray218[index164] = str247;
  7921. strArray216[4] = ",";
  7922. string[] strArray219 = strArray216;
  7923. int index165 = 5;
  7924. num = transform3.position.z;
  7925. string str248 = num.ToString("0.###");
  7926. strArray219[index165] = str248;
  7927. string str249 = string.Concat(strArray216);
  7928. str1 = str1 + str24 + str25 + str131 + str249;
  7929. if (i + 1 != maidCnt)
  7930. {
  7931. str1 += ";";
  7932. }
  7933. }
  7934. string str250 = "_" + lightKage[0] + ",";
  7935. string str251;
  7936. if (isBloom)
  7937. {
  7938. string str24 = str250 + "1," + bloom1 + "," + bloom2 + "," + bloom3 + "," + bloom4
  7939. + "," + bloom5 + ",";
  7940. str251 = !isBloomA ? str24 + "0," : str24 + "1,";
  7941. }
  7942. else
  7943. {
  7944. str251 = str250 + "0,0,0,0,0,0,0,";
  7945. }
  7946. string str252 =
  7947. (!isBlur
  7948. ? str251 + "0,0,0,0,0,"
  7949. : str251 + "1," + blur1 + "," + blur2 + "," + blur3 + ","
  7950. + blur4 + ",").ToString() + bokashi + "," + kamiyure + ",";
  7951. string str253;
  7952. if (isDepth)
  7953. {
  7954. string str24 = str252 + "1," + depth1 + "," + depth2 + "," + depth3 + "," + depth4
  7955. + ",";
  7956. str253 = !isDepthA ? str24 + "0," : str24 + "1,";
  7957. }
  7958. else
  7959. {
  7960. str253 = str252 + "0,0,0,0,0,0,";
  7961. }
  7962. string str254 = !isFog
  7963. ? str253 + "0,0,0,0,0,0,0,0,"
  7964. : str253 + "1," + fog1 + "," + fog2 + "," + fog3 + "," + fog4
  7965. + "," + fog5 + "," + fog6 + "," + fog7 + ",";
  7966. string str255 = !isSepia ? str254 + "0" : str254 + "1";
  7967. string str256 = "_";
  7968. for (int index15 = 1; index15 < lightList.Count; ++index15)
  7969. {
  7970. str256 = str256 + lightIndex[index15] + "," + lightColorR[index15] + ","
  7971. + lightColorG[index15] + "," + lightColorB[index15] + "," + lightX[index15] + ","
  7972. + lightY[index15] + "," + lightAkarusa[index15] + "," + lightRange[index15] + ";";
  7973. }
  7974. string str257 = "_";
  7975. for (int index15 = 0; index15 < doguBObject.Count; ++index15)
  7976. {
  7977. string str24 = str257 + doguBObject[index15].name.Replace("_", " ") + ",";
  7978. string[] strArray20 = new string[7];
  7979. strArray20[0] = str24;
  7980. string[] strArray21 = strArray20;
  7981. int index16 = 1;
  7982. num = doguBObject[index15].transform.localEulerAngles.x;
  7983. string str25 = num.ToString("0.###");
  7984. strArray21[index16] = str25;
  7985. strArray20[2] = ",";
  7986. string[] strArray22 = strArray20;
  7987. int index17 = 3;
  7988. num = doguBObject[index15].transform.localEulerAngles.y;
  7989. string str26 = num.ToString("0.###");
  7990. strArray22[index17] = str26;
  7991. strArray20[4] = ",";
  7992. string[] strArray23 = strArray20;
  7993. int index18 = 5;
  7994. num = doguBObject[index15].transform.localEulerAngles.z;
  7995. string str27 = num.ToString("0.###");
  7996. strArray23[index18] = str27;
  7997. strArray20[6] = ",";
  7998. string str28 = string.Concat(strArray20);
  7999. string[] strArray24 = new string[7];
  8000. strArray24[0] = str28;
  8001. string[] strArray25 = strArray24;
  8002. int index19 = 1;
  8003. num = doguBObject[index15].transform.position.x;
  8004. string str29 = num.ToString("0.###");
  8005. strArray25[index19] = str29;
  8006. strArray24[2] = ",";
  8007. string[] strArray26 = strArray24;
  8008. int index20 = 3;
  8009. num = doguBObject[index15].transform.position.y;
  8010. string str30 = num.ToString("0.###");
  8011. strArray26[index20] = str30;
  8012. strArray24[4] = ",";
  8013. string[] strArray27 = strArray24;
  8014. int index21 = 5;
  8015. num = doguBObject[index15].transform.position.z;
  8016. string str31 = num.ToString("0.###");
  8017. strArray27[index21] = str31;
  8018. strArray24[6] = ",";
  8019. string str32 = string.Concat(strArray24);
  8020. string[] strArray28 = new string[6];
  8021. strArray28[0] = str32;
  8022. string[] strArray29 = strArray28;
  8023. int index22 = 1;
  8024. num = doguBObject[index15].transform.localScale.x;
  8025. string str33 = num.ToString("0.###");
  8026. strArray29[index22] = str33;
  8027. strArray28[2] = ",";
  8028. string[] strArray30 = strArray28;
  8029. int index23 = 3;
  8030. num = doguBObject[index15].transform.localScale.y;
  8031. string str34 = num.ToString("0.###");
  8032. strArray30[index23] = str34;
  8033. strArray28[4] = ",";
  8034. string[] strArray31 = strArray28;
  8035. int index24 = 5;
  8036. num = doguBObject[index15].transform.localScale.z;
  8037. string str35 = num.ToString("0.###");
  8038. strArray31[index24] = str35;
  8039. str257 = string.Concat(strArray28) + ";";
  8040. }
  8041. string str258 = "_";
  8042. for (int index15 = 0; index15 < lightList.Count; ++index15)
  8043. {
  8044. str258 = str258 + lightList[index15].transform.position.x + ","
  8045. + lightList[index15].transform.position.y + "," + lightList[index15].transform.position.z
  8046. + ";";
  8047. }
  8048. string serializedScene = str36 + str1 + str255 + str256 + str257 + str258;
  8049. return serializedScene;
  8050. }
  8051. }
  8052. }