MultipleMaids.Update.cs 446 KB

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