MultipleMaids.Update.cs 433 KB

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