MultipleMaids.Update.cs 433 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456
  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;
  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. else
  4108. {
  4109. f_byBuf = null;
  4110. }
  4111. }
  4112. string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, str2, false);
  4113. original1 = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  4114. doguBObject.Add(original1);
  4115. original1.name = str2;
  4116. Vector3 zero1 = Vector3.zero;
  4117. Vector3 zero2 = Vector3.zero;
  4118. zero1.z = 0.4f;
  4119. if (str1.Contains("HandItem"))
  4120. {
  4121. switch (str1)
  4122. {
  4123. case "HandItemR_WineGlass_I_.menu":
  4124. zero2.z = 90f;
  4125. zero1.y = 0.04f;
  4126. goto case "HandItemL_Dance_Hataki_I_.menu";
  4127. case "HandItemR_WineBottle_I_.menu":
  4128. zero2.z = 90f;
  4129. goto case "HandItemL_Dance_Hataki_I_.menu";
  4130. case "HandItemR_Mop_I_.menu":
  4131. zero2.x = 90f;
  4132. goto case "HandItemL_Dance_Hataki_I_.menu";
  4133. case "HandItemL_Dance_Hataki_I_.menu":
  4134. case "HandItemL_Dance_Mop_I_.menu": break;
  4135. default:
  4136. zero2.x = -90f;
  4137. goto case "HandItemL_Dance_Hataki_I_.menu";
  4138. }
  4139. }
  4140. original1.transform.localPosition = zero1;
  4141. original1.transform.localRotation = Quaternion.Euler(zero2);
  4142. }
  4143. else
  4144. {
  4145. try
  4146. {
  4147. bool flag2 = false;
  4148. bool flag3 = false;
  4149. if (str1.StartsWith("BG_"))
  4150. {
  4151. Object original2 = (Object) GameMain.Instance.BgMgr.CreateAssetBundle(str1.Replace("BG_", ""));
  4152. if (original2 == (Object) null)
  4153. original2 = Resources.Load(str1.Replace("BG_", "BG/"));
  4154. original1 = Instantiate(original2) as GameObject;
  4155. doguBObject.Add(original1);
  4156. }
  4157. else if (str1.Contains("#"))
  4158. {
  4159. original1 = GameMain.Instance.BgMgr.CreateAssetBundle(str1.Split('#')[1]);
  4160. if ((Object) original1 != (Object) null)
  4161. {
  4162. original1 = Instantiate<GameObject>(original1);
  4163. MeshRenderer[] componentsInChildren = original1.GetComponentsInChildren<MeshRenderer>();
  4164. for (int index2 = 0; index2 < componentsInChildren.Length; ++index2)
  4165. {
  4166. if ((Object) componentsInChildren[index2] != (Object) null)
  4167. componentsInChildren[index2].shadowCastingMode = ShadowCastingMode.Off;
  4168. }
  4169. }
  4170. flag2 = true;
  4171. if (!parArray[parIndex].Contains("Odogu_"))
  4172. flag3 = true;
  4173. doguBObject.Add(original1);
  4174. }
  4175. else if (!str1.StartsWith("mirror") && str1.IndexOf(":") < 0)
  4176. {
  4177. Object original2;
  4178. if (str1.StartsWith("BG"))
  4179. {
  4180. string name = str1.Replace("BG", "");
  4181. original2 = (Object) GameMain.Instance.BgMgr.CreateAssetBundle(name);
  4182. if (original2 == (Object) null)
  4183. original2 = Resources.Load("BG/" + name);
  4184. }
  4185. else
  4186. original2 = Resources.Load("Prefab/" + str1);
  4187. original1 = Instantiate(original2) as GameObject;
  4188. doguBObject.Add(original1);
  4189. }
  4190. else if (str1.StartsWith("mirror"))
  4191. {
  4192. Material material = new Material(Shader.Find("Mirror"));
  4193. GameObject primitive = GameObject.CreatePrimitive(PrimitiveType.Plane);
  4194. primitive.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  4195. primitive.GetComponent<Renderer>().material = material;
  4196. primitive.AddComponent<MirrorReflection2>();
  4197. MirrorReflection2 component = primitive.GetComponent<MirrorReflection2>();
  4198. component.m_TextureSize = 2048;
  4199. component.m_ClipPlaneOffset = 0.0f;
  4200. primitive.GetComponent<Renderer>().enabled = true;
  4201. original1 = primitive;
  4202. doguBObject.Add(original1);
  4203. }
  4204. else
  4205. {
  4206. string[] strArray9 = str1.Split(':');
  4207. Object original2 = (Object) GameMain.Instance.BgMgr.CreateAssetBundle(strArray9[0]);
  4208. if (original2 == (Object) null)
  4209. original2 = Resources.Load("BG/" + strArray9[0]);
  4210. GameObject gameObject = Instantiate(original2) as GameObject;
  4211. int num = 0;
  4212. int result = 0;
  4213. int.TryParse(strArray9[1], out result);
  4214. foreach (Transform transform in gameObject.transform)
  4215. {
  4216. if (result == num)
  4217. {
  4218. original1 = transform.gameObject;
  4219. break;
  4220. }
  4221. ++num;
  4222. }
  4223. doguBObject.Add(original1);
  4224. original1.transform.parent = (Transform) null;
  4225. Destroy((Object) gameObject);
  4226. gameObject.SetActive(false);
  4227. }
  4228. original1.name = str1;
  4229. Vector3 zero1 = Vector3.zero;
  4230. Vector3 zero2 = Vector3.zero;
  4231. if (str1.StartsWith("BG_"))
  4232. original1.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
  4233. switch (str1)
  4234. {
  4235. case "Odogu_XmasTreeMini_photo_ver":
  4236. zero1.z = 0.6f;
  4237. original1.transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  4238. IEnumerator enumerator1 = original1.transform.GetEnumerator();
  4239. try
  4240. {
  4241. while (enumerator1.MoveNext())
  4242. {
  4243. Transform current = (Transform) enumerator1.Current;
  4244. if ((Object) current.GetComponent<Collider>() != (Object) null)
  4245. current.GetComponent<Collider>().enabled = false;
  4246. }
  4247. break;
  4248. }
  4249. finally
  4250. {
  4251. (enumerator1 as IDisposable)?.Dispose();
  4252. }
  4253. case "Odogu_KadomatsuMini_photo_ver":
  4254. zero1.z = 0.6f;
  4255. original1.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  4256. IEnumerator enumerator2 = original1.transform.GetEnumerator();
  4257. try
  4258. {
  4259. while (enumerator2.MoveNext())
  4260. {
  4261. Transform current = (Transform) enumerator2.Current;
  4262. if ((Object) current.GetComponent<Collider>() != (Object) null)
  4263. current.GetComponent<Collider>().enabled = false;
  4264. }
  4265. break;
  4266. }
  4267. finally
  4268. {
  4269. (enumerator2 as IDisposable)?.Dispose();
  4270. }
  4271. case "Odogu_ClassRoomDesk":
  4272. zero1.z = 0.5f;
  4273. zero2.x = -90f;
  4274. break;
  4275. case "mirror1":
  4276. zero1.z = -0.6f;
  4277. zero1.y = 0.96f;
  4278. zero2.z = 180f;
  4279. zero2.x = -90f;
  4280. original1.transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  4281. break;
  4282. case "mirror2":
  4283. zero1.z = -0.6f;
  4284. zero1.y = 0.96f;
  4285. zero2.z = 180f;
  4286. zero2.x = -90f;
  4287. original1.transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  4288. break;
  4289. case "mirror3":
  4290. zero1.z = -0.6f;
  4291. zero1.y = 0.85f;
  4292. zero2.z = 180f;
  4293. zero2.x = -90f;
  4294. original1.transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  4295. break;
  4296. case "Particle/pLineY":
  4297. case "Particle/pLineP02":
  4298. case "Particle/pLine_act2":
  4299. original1.transform.localScale = new Vector3(3f, 3f, 3f);
  4300. break;
  4301. case "Mob_Man_Stand001":
  4302. case "Mob_Man_Stand002":
  4303. case "Mob_Man_Stand003":
  4304. case "Mob_Man_Sit001":
  4305. case "Mob_Man_Sit002":
  4306. case "Mob_Man_Sit003":
  4307. case "Mob_Girl_Stand001":
  4308. case "Mob_Girl_Stand002":
  4309. case "Mob_Girl_Stand003":
  4310. case "Mob_Girl_Sit001":
  4311. case "Mob_Girl_Sit002":
  4312. case "Mob_Girl_Sit003":
  4313. case "Salon:63":
  4314. case "Salon:65":
  4315. case "Salon:69":
  4316. case "Salon_Entrance:0":
  4317. case "Salon_Entrance:1":
  4318. case "Salon_Entrance:2":
  4319. case "Salon_Entrance:3":
  4320. case "Salon_Entrance:4":
  4321. case "Pool:26":
  4322. case "Shitsumu:23":
  4323. case "Shitsumu_Night:23":
  4324. zero1.z = 0.5f;
  4325. zero2.x = -90f;
  4326. break;
  4327. case "Odogu_Dresser_photo_ver":
  4328. GameObject.Find("Prim.00000000").GetComponent<Collider>().enabled = false;
  4329. GameObject.Find("Prim.00000001").GetComponent<Collider>().enabled = false;
  4330. GameObject.Find("Prim.00000002").GetComponent<Collider>().enabled = false;
  4331. GameObject.Find("Prim.00000004").GetComponent<Collider>().enabled = false;
  4332. break;
  4333. default:
  4334. zero1.z = 0.5f;
  4335. if (str1.StartsWith("Odogu_"))
  4336. {
  4337. IEnumerator enumerator3 = original1.transform.GetEnumerator();
  4338. try
  4339. {
  4340. while (enumerator3.MoveNext())
  4341. {
  4342. Transform current = (Transform) enumerator3.Current;
  4343. if ((Object) current.GetComponent<Collider>() != (Object) null)
  4344. current.GetComponent<Collider>().enabled = false;
  4345. }
  4346. break;
  4347. }
  4348. finally
  4349. {
  4350. (enumerator3 as IDisposable)?.Dispose();
  4351. }
  4352. }
  4353. else
  4354. {
  4355. if ((Object) original1.GetComponent<Collider>() != (Object) null)
  4356. original1.GetComponent<Collider>().enabled = false;
  4357. break;
  4358. }
  4359. }
  4360. if (flag2)
  4361. {
  4362. zero1.z = 0.4f;
  4363. if (flag3)
  4364. zero2.x = -90f;
  4365. }
  4366. original1.transform.localPosition = zero1;
  4367. original1.transform.localRotation = Quaternion.Euler(zero2);
  4368. }
  4369. catch
  4370. {
  4371. flag1 = true;
  4372. }
  4373. }
  4374. if (!flag1)
  4375. {
  4376. doguCnt = doguBObject.Count - 1;
  4377. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4378. Vector3 localEulerAngles = original1.transform.localEulerAngles;
  4379. original1.transform.localEulerAngles =
  4380. new Vector3(float.Parse(strArray8[1]), float.Parse(strArray8[2]), float.Parse(strArray8[3]));
  4381. original1.transform.position =
  4382. new Vector3(float.Parse(strArray8[4]), float.Parse(strArray8[5]), float.Parse(strArray8[6]));
  4383. gDogu[doguCnt].transform.localEulerAngles =
  4384. new Vector3(float.Parse(strArray8[1]), float.Parse(strArray8[2]), float.Parse(strArray8[3]));
  4385. gDogu[doguCnt].transform.position =
  4386. new Vector3(float.Parse(strArray8[4]), float.Parse(strArray8[5]), float.Parse(strArray8[6]));
  4387. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  4388. gDogu[doguCnt].layer = 8;
  4389. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  4390. gDogu[doguCnt].SetActive(false);
  4391. gDogu[doguCnt].transform.position = original1.transform.position;
  4392. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  4393. mDogu[doguCnt].obj = gDogu[doguCnt];
  4394. mDogu[doguCnt].maid = original1;
  4395. mDogu[doguCnt].angles = localEulerAngles;
  4396. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  4397. mDogu[doguCnt].ido = 1;
  4398. mDogu[doguCnt].isScale = false;
  4399. if (str1 == "Particle/pLineY")
  4400. mDogu[doguCnt].count = 180;
  4401. if (str1 == "Particle/pLineP02")
  4402. mDogu[doguCnt].count = 115;
  4403. if (original1.name == "Particle/pLine_act2")
  4404. {
  4405. mDogu[doguCnt].count = 80;
  4406. original1.transform.localScale = new Vector3(3f, 3f, 3f);
  4407. }
  4408. if (original1.name == "Particle/pHeart01")
  4409. mDogu[doguCnt].count = 80;
  4410. if (str1 == "mirror1" || str1 == "mirror2" || str1 == "mirror3")
  4411. {
  4412. mDogu[doguCnt].isScale = true;
  4413. mDogu[doguCnt].isScale2 = true;
  4414. mDogu[doguCnt].scale2 = original1.transform.localScale;
  4415. if (str1 == "mirror1")
  4416. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 5f,
  4417. original1.transform.localScale.y * 5f,
  4418. original1.transform.localScale.z * 5f);
  4419. if (str1 == "mirror2")
  4420. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 10f,
  4421. original1.transform.localScale.y * 10f,
  4422. original1.transform.localScale.z * 10f);
  4423. if (str1 == "mirror3")
  4424. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 33f,
  4425. original1.transform.localScale.y * 33f,
  4426. original1.transform.localScale.z * 33f);
  4427. }
  4428. if (str1 == "Odogu_XmasTreeMini_photo_ver" || str1 == "Odogu_KadomatsuMini_photo_ver")
  4429. {
  4430. mDogu[doguCnt].isScale2 = true;
  4431. mDogu[doguCnt].scale2 = original1.transform.localScale;
  4432. }
  4433. original1.transform.localScale =
  4434. new Vector3(float.Parse(strArray8[7]), float.Parse(strArray8[8]), float.Parse(strArray8[9]));
  4435. }
  4436. }
  4437. }
  4438. loadScene = 0;
  4439. kankyoLoadFlg = false;
  4440. }
  4441. for (int i = 0; i < maidCnt; ++i)
  4442. {
  4443. if (loadPose[i] != "" && isLoadPose[i])
  4444. {
  4445. IniKey iniKey = this.Preferences["pose"][loadPose[i]];
  4446. if (iniKey.Value == null || !(iniKey.Value.ToString() != "") || !(iniKey.Value.ToString() != "del"))
  4447. {
  4448. loadPose[i] = "";
  4449. isLoadPose[i] = false;
  4450. }
  4451. else
  4452. {
  4453. if (loadCount[i] > 4)
  4454. {
  4455. isLoadPose[i] = false;
  4456. loadPose[i] = "";
  4457. loadCount[i] = 0;
  4458. }
  4459. int num = 0;
  4460. while (num < 10)
  4461. ++num;
  4462. ++loadCount[i];
  4463. Maid maid = maidArray[i];
  4464. isStop[i] = true;
  4465. if ((bool) ((Object) maid) && maid.Visible)
  4466. {
  4467. this.SetIK(maid, i);
  4468. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  4469. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  4470. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  4471. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  4472. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  4473. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  4474. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  4475. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  4476. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  4477. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  4478. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  4479. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  4480. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  4481. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  4482. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  4483. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  4484. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  4485. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  4486. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  4487. string[] strArray1 = iniKey.Value.Split('_')[1].Split(':');
  4488. for (int index = 0; index < 40; ++index)
  4489. {
  4490. string[] strArray2 = strArray1[index].Split(',');
  4491. Finger[i, index].localEulerAngles =
  4492. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4493. }
  4494. bool flag = false;
  4495. if (strArray1.Length == 64)
  4496. flag = true;
  4497. Vector3 localEulerAngles = maid.transform.localEulerAngles;
  4498. maid.transform.localEulerAngles = new Vector3(0.0f, 0.0f, 0.0f);
  4499. Vector3 position = maid.transform.position;
  4500. maid.transform.position = new Vector3(0.0f, 0.0f, 0.0f);
  4501. for (int index1 = 0; index1 < 3; ++index1)
  4502. {
  4503. for (int index2 = 40; index2 < strArray1.Length; ++index2)
  4504. {
  4505. string[] strArray2 = strArray1[index2].Split(',');
  4506. switch (index2)
  4507. {
  4508. case 40:
  4509. if (flag)
  4510. Spine.localEulerAngles =
  4511. new Vector3(float.Parse(strArray2[0]),
  4512. float.Parse(strArray2[1]),
  4513. float.Parse(strArray2[2]));
  4514. if (!flag)
  4515. {
  4516. Spine.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4517. float.Parse(strArray2[1]),
  4518. float.Parse(strArray2[2]));
  4519. break;
  4520. }
  4521. break;
  4522. case 41:
  4523. if (flag)
  4524. Spine0a.localEulerAngles =
  4525. new Vector3(float.Parse(strArray2[0]),
  4526. float.Parse(strArray2[1]),
  4527. float.Parse(strArray2[2]));
  4528. if (!flag)
  4529. {
  4530. Spine0a.eulerAngles =
  4531. new Vector3(float.Parse(strArray2[0]),
  4532. float.Parse(strArray2[1]),
  4533. float.Parse(strArray2[2]));
  4534. break;
  4535. }
  4536. break;
  4537. case 42:
  4538. if (flag)
  4539. Spine1.localEulerAngles =
  4540. new Vector3(float.Parse(strArray2[0]),
  4541. float.Parse(strArray2[1]),
  4542. float.Parse(strArray2[2]));
  4543. if (!flag)
  4544. {
  4545. Spine1.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4546. float.Parse(strArray2[1]),
  4547. float.Parse(strArray2[2]));
  4548. break;
  4549. }
  4550. break;
  4551. case 43:
  4552. if (flag)
  4553. Spine1a.localEulerAngles =
  4554. new Vector3(float.Parse(strArray2[0]),
  4555. float.Parse(strArray2[1]),
  4556. float.Parse(strArray2[2]));
  4557. if (!flag)
  4558. {
  4559. Spine1a.eulerAngles =
  4560. new Vector3(float.Parse(strArray2[0]),
  4561. float.Parse(strArray2[1]),
  4562. float.Parse(strArray2[2]));
  4563. break;
  4564. }
  4565. break;
  4566. case 44:
  4567. if (flag)
  4568. Pelvis.localEulerAngles =
  4569. new Vector3(float.Parse(strArray2[0]),
  4570. float.Parse(strArray2[1]),
  4571. float.Parse(strArray2[2]));
  4572. if (!flag)
  4573. {
  4574. Pelvis.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4575. float.Parse(strArray2[1]),
  4576. float.Parse(strArray2[2]));
  4577. break;
  4578. }
  4579. break;
  4580. case 45:
  4581. HandL1[i].localEulerAngles =
  4582. new Vector3(float.Parse(strArray2[0]),
  4583. float.Parse(strArray2[1]),
  4584. float.Parse(strArray2[2]));
  4585. break;
  4586. case 46:
  4587. if (flag)
  4588. UpperArmL1[i].localEulerAngles =
  4589. new Vector3(float.Parse(strArray2[0]),
  4590. float.Parse(strArray2[1]),
  4591. float.Parse(strArray2[2]));
  4592. if (!flag)
  4593. {
  4594. UpperArmL1[i].eulerAngles =
  4595. new Vector3(float.Parse(strArray2[0]),
  4596. float.Parse(strArray2[1]),
  4597. float.Parse(strArray2[2]));
  4598. break;
  4599. }
  4600. break;
  4601. case 47:
  4602. if (flag)
  4603. ForearmL1[i].localEulerAngles =
  4604. new Vector3(float.Parse(strArray2[0]),
  4605. float.Parse(strArray2[1]),
  4606. float.Parse(strArray2[2]));
  4607. if (!flag)
  4608. {
  4609. ForearmL1[i].eulerAngles =
  4610. new Vector3(float.Parse(strArray2[0]),
  4611. float.Parse(strArray2[1]),
  4612. float.Parse(strArray2[2]));
  4613. break;
  4614. }
  4615. break;
  4616. case 48:
  4617. HandR1[i].localEulerAngles =
  4618. new Vector3(float.Parse(strArray2[0]),
  4619. float.Parse(strArray2[1]),
  4620. float.Parse(strArray2[2]));
  4621. break;
  4622. case 49:
  4623. if (flag)
  4624. UpperArmR1[i].localEulerAngles =
  4625. new Vector3(float.Parse(strArray2[0]),
  4626. float.Parse(strArray2[1]),
  4627. float.Parse(strArray2[2]));
  4628. if (!flag)
  4629. {
  4630. UpperArmR1[i].eulerAngles =
  4631. new Vector3(float.Parse(strArray2[0]),
  4632. float.Parse(strArray2[1]),
  4633. float.Parse(strArray2[2]));
  4634. break;
  4635. }
  4636. break;
  4637. case 50:
  4638. if (flag)
  4639. ForearmR1[i].localEulerAngles =
  4640. new Vector3(float.Parse(strArray2[0]),
  4641. float.Parse(strArray2[1]),
  4642. float.Parse(strArray2[2]));
  4643. if (!flag)
  4644. {
  4645. ForearmR1[i].eulerAngles =
  4646. new Vector3(float.Parse(strArray2[0]),
  4647. float.Parse(strArray2[1]),
  4648. float.Parse(strArray2[2]));
  4649. break;
  4650. }
  4651. break;
  4652. case 51:
  4653. HandL2[i].localEulerAngles =
  4654. new Vector3(float.Parse(strArray2[0]),
  4655. float.Parse(strArray2[1]),
  4656. float.Parse(strArray2[2]));
  4657. break;
  4658. case 52:
  4659. if (flag)
  4660. UpperArmL2[i].localEulerAngles =
  4661. new Vector3(float.Parse(strArray2[0]),
  4662. float.Parse(strArray2[1]),
  4663. float.Parse(strArray2[2]));
  4664. if (!flag)
  4665. {
  4666. UpperArmL2[i].eulerAngles =
  4667. new Vector3(float.Parse(strArray2[0]),
  4668. float.Parse(strArray2[1]),
  4669. float.Parse(strArray2[2]));
  4670. break;
  4671. }
  4672. break;
  4673. case 53:
  4674. if (flag)
  4675. ForearmL2[i].localEulerAngles =
  4676. new Vector3(float.Parse(strArray2[0]),
  4677. float.Parse(strArray2[1]),
  4678. float.Parse(strArray2[2]));
  4679. if (!flag)
  4680. {
  4681. ForearmL2[i].eulerAngles =
  4682. new Vector3(float.Parse(strArray2[0]),
  4683. float.Parse(strArray2[1]),
  4684. float.Parse(strArray2[2]));
  4685. break;
  4686. }
  4687. break;
  4688. case 54:
  4689. HandR2[i].localEulerAngles =
  4690. new Vector3(float.Parse(strArray2[0]),
  4691. float.Parse(strArray2[1]),
  4692. float.Parse(strArray2[2]));
  4693. break;
  4694. case 55:
  4695. if (flag)
  4696. UpperArmR2[i].localEulerAngles =
  4697. new Vector3(float.Parse(strArray2[0]),
  4698. float.Parse(strArray2[1]),
  4699. float.Parse(strArray2[2]));
  4700. if (!flag)
  4701. {
  4702. UpperArmR2[i].eulerAngles =
  4703. new Vector3(float.Parse(strArray2[0]),
  4704. float.Parse(strArray2[1]),
  4705. float.Parse(strArray2[2]));
  4706. break;
  4707. }
  4708. break;
  4709. case 56:
  4710. if (flag)
  4711. ForearmR2[i].localEulerAngles =
  4712. new Vector3(float.Parse(strArray2[0]),
  4713. float.Parse(strArray2[1]),
  4714. float.Parse(strArray2[2]));
  4715. if (!flag)
  4716. {
  4717. ForearmR2[i].eulerAngles =
  4718. new Vector3(float.Parse(strArray2[0]),
  4719. float.Parse(strArray2[1]),
  4720. float.Parse(strArray2[2]));
  4721. break;
  4722. }
  4723. break;
  4724. case 57:
  4725. if (flag)
  4726. Head.localEulerAngles =
  4727. new Vector3(float.Parse(strArray2[0]),
  4728. float.Parse(strArray2[1]),
  4729. float.Parse(strArray2[2]));
  4730. if (!flag)
  4731. {
  4732. Head.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4733. float.Parse(strArray2[1]),
  4734. float.Parse(strArray2[2]));
  4735. break;
  4736. }
  4737. break;
  4738. case 66:
  4739. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true).localEulerAngles =
  4740. new Vector3(float.Parse(strArray2[0]),
  4741. float.Parse(strArray2[1]),
  4742. float.Parse(strArray2[2]));
  4743. break;
  4744. case 67:
  4745. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true).localEulerAngles =
  4746. new Vector3(float.Parse(strArray2[0]),
  4747. float.Parse(strArray2[1]),
  4748. float.Parse(strArray2[2]));
  4749. break;
  4750. case 68:
  4751. if (strArray2.Length >= 2)
  4752. {
  4753. ClavicleL1[i].eulerAngles =
  4754. new Vector3(float.Parse(strArray2[0]),
  4755. float.Parse(strArray2[1]),
  4756. float.Parse(strArray2[2]));
  4757. break;
  4758. }
  4759. break;
  4760. case 69:
  4761. ClavicleR1[i].eulerAngles =
  4762. new Vector3(float.Parse(strArray2[0]),
  4763. float.Parse(strArray2[1]),
  4764. float.Parse(strArray2[2]));
  4765. break;
  4766. case 71:
  4767. transform1.eulerAngles =
  4768. new Vector3(float.Parse(strArray2[0]),
  4769. float.Parse(strArray2[1]),
  4770. float.Parse(strArray2[2]));
  4771. break;
  4772. case 72:
  4773. transform2.localEulerAngles =
  4774. new Vector3(float.Parse(strArray2[0]),
  4775. float.Parse(strArray2[1]),
  4776. float.Parse(strArray2[2]));
  4777. break;
  4778. case 73:
  4779. transform3.localEulerAngles =
  4780. new Vector3(float.Parse(strArray2[0]),
  4781. float.Parse(strArray2[1]),
  4782. float.Parse(strArray2[2]));
  4783. break;
  4784. case 74:
  4785. transform4.localEulerAngles =
  4786. new Vector3(float.Parse(strArray2[0]),
  4787. float.Parse(strArray2[1]),
  4788. float.Parse(strArray2[2]));
  4789. break;
  4790. case 75:
  4791. transform5.localEulerAngles =
  4792. new Vector3(float.Parse(strArray2[0]),
  4793. float.Parse(strArray2[1]),
  4794. float.Parse(strArray2[2]));
  4795. break;
  4796. case 76:
  4797. transform6.localEulerAngles =
  4798. new Vector3(float.Parse(strArray2[0]),
  4799. float.Parse(strArray2[1]),
  4800. float.Parse(strArray2[2]));
  4801. break;
  4802. case 77:
  4803. transform7.localEulerAngles =
  4804. new Vector3(float.Parse(strArray2[0]),
  4805. float.Parse(strArray2[1]),
  4806. float.Parse(strArray2[2]));
  4807. break;
  4808. case 78:
  4809. transform8.localEulerAngles =
  4810. new Vector3(float.Parse(strArray2[0]),
  4811. float.Parse(strArray2[1]),
  4812. float.Parse(strArray2[2]));
  4813. break;
  4814. case 79:
  4815. transform9.localEulerAngles =
  4816. new Vector3(float.Parse(strArray2[0]),
  4817. float.Parse(strArray2[1]),
  4818. float.Parse(strArray2[2]));
  4819. break;
  4820. case 80:
  4821. transform10.localEulerAngles =
  4822. new Vector3(float.Parse(strArray2[0]),
  4823. float.Parse(strArray2[1]),
  4824. float.Parse(strArray2[2]));
  4825. break;
  4826. case 81:
  4827. transform11.localEulerAngles =
  4828. new Vector3(float.Parse(strArray2[0]),
  4829. float.Parse(strArray2[1]),
  4830. float.Parse(strArray2[2]));
  4831. break;
  4832. case 82:
  4833. transform12.localEulerAngles =
  4834. new Vector3(float.Parse(strArray2[0]),
  4835. float.Parse(strArray2[1]),
  4836. float.Parse(strArray2[2]));
  4837. break;
  4838. case 83:
  4839. transform13.localEulerAngles =
  4840. new Vector3(float.Parse(strArray2[0]),
  4841. float.Parse(strArray2[1]),
  4842. float.Parse(strArray2[2]));
  4843. break;
  4844. case 84:
  4845. transform14.localEulerAngles =
  4846. new Vector3(float.Parse(strArray2[0]),
  4847. float.Parse(strArray2[1]),
  4848. float.Parse(strArray2[2]));
  4849. break;
  4850. case 85:
  4851. transform15.localEulerAngles =
  4852. new Vector3(float.Parse(strArray2[0]),
  4853. float.Parse(strArray2[1]),
  4854. float.Parse(strArray2[2]));
  4855. break;
  4856. case 86:
  4857. transform16.localEulerAngles =
  4858. new Vector3(float.Parse(strArray2[0]),
  4859. float.Parse(strArray2[1]),
  4860. float.Parse(strArray2[2]));
  4861. break;
  4862. case 87:
  4863. transform17.localEulerAngles =
  4864. new Vector3(float.Parse(strArray2[0]),
  4865. float.Parse(strArray2[1]),
  4866. float.Parse(strArray2[2]));
  4867. break;
  4868. case 88:
  4869. transform18.localEulerAngles =
  4870. new Vector3(float.Parse(strArray2[0]),
  4871. float.Parse(strArray2[1]),
  4872. float.Parse(strArray2[2]));
  4873. break;
  4874. case 89:
  4875. transform19.localEulerAngles =
  4876. new Vector3(float.Parse(strArray2[0]),
  4877. float.Parse(strArray2[1]),
  4878. float.Parse(strArray2[2]));
  4879. break;
  4880. case 92:
  4881. vIKMuneL[i] = new Vector3(float.Parse(strArray2[0]),
  4882. float.Parse(strArray2[1]),
  4883. float.Parse(strArray2[2]));
  4884. muneIKL[i] = true;
  4885. break;
  4886. case 93:
  4887. vIKMuneLSub[i] = new Vector3(float.Parse(strArray2[0]),
  4888. float.Parse(strArray2[1]),
  4889. float.Parse(strArray2[2]));
  4890. break;
  4891. case 94:
  4892. vIKMuneR[i] = new Vector3(float.Parse(strArray2[0]),
  4893. float.Parse(strArray2[1]),
  4894. float.Parse(strArray2[2]));
  4895. muneIKR[i] = true;
  4896. break;
  4897. case 95:
  4898. vIKMuneRSub[i] = new Vector3(float.Parse(strArray2[0]),
  4899. float.Parse(strArray2[1]),
  4900. float.Parse(strArray2[2]));
  4901. break;
  4902. case 96:
  4903. transform1.position = new Vector3(float.Parse(strArray2[0]),
  4904. float.Parse(strArray2[1]),
  4905. float.Parse(strArray2[2]));
  4906. break;
  4907. }
  4908. }
  4909. }
  4910. maid.transform.localEulerAngles = localEulerAngles;
  4911. maid.transform.position = position;
  4912. }
  4913. }
  4914. }
  4915. if (loadPose[i] != "" && !isLoadPose[i])
  4916. {
  4917. IniKey iniKey = this.Preferences["pose"][loadPose[i]];
  4918. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  4919. isStop[i] = true;
  4920. isLoadPose[i] = true;
  4921. }
  4922. }
  4923. if (loadScene > 0)
  4924. {
  4925. IniKey iniKey = this.Preferences["scene"]["s" + (object) loadScene];
  4926. if (iniKey.Value == null || !(iniKey.Value.ToString() != ""))
  4927. {
  4928. loadScene = 0;
  4929. }
  4930. else
  4931. {
  4932. isScene = true;
  4933. if (!kankyoLoadFlg)
  4934. {
  4935. string[] strArray1 = iniKey.Value.Split('_')[1].Split(';');
  4936. for (int i = 0; i < strArray1.Length; ++i)
  4937. {
  4938. if (maidCnt > i)
  4939. {
  4940. Maid maid = maidArray[i];
  4941. for (int index = 0; index < 10; ++index)
  4942. {
  4943. Transform transform1 = maid.transform;
  4944. Vector3 position1 = maid.transform.position;
  4945. Vector3 right = Vector3.right;
  4946. rotation = maid.transform.rotation;
  4947. double num1 = -(double) rotation.eulerAngles.x;
  4948. transform1.RotateAround(position1, right, (float) num1);
  4949. Transform transform2 = maid.transform;
  4950. Vector3 position2 = maid.transform.position;
  4951. Vector3 forward = Vector3.forward;
  4952. rotation = maid.transform.rotation;
  4953. double num2 = -(double) rotation.eulerAngles.z;
  4954. transform2.RotateAround(position2, forward, (float) num2);
  4955. }
  4956. string[] array2 = strArray1[i].Split(':');
  4957. if (!int.TryParse(array2[61], out poseIndex[i]))
  4958. {
  4959. string str = array2[61].Replace(" ", "_").Replace("|", ",");
  4960. for (int index = 0; index < poseArray.Length; ++index)
  4961. {
  4962. if (str == poseArray[index])
  4963. {
  4964. poseIndex[i] = index;
  4965. break;
  4966. }
  4967. }
  4968. }
  4969. string[] strArray2 = poseArray[poseIndex[i]].Split(',');
  4970. isStop[i] = true;
  4971. poseCount[i] = 20;
  4972. if (array2[61].Contains("MultipleMaidsPose"))
  4973. {
  4974. string url = "";
  4975. ((Action<string, List<string>>) ((path, result_list) =>
  4976. {
  4977. string[] files = Directory.GetFiles(path);
  4978. for (int index1 = 0; index1 < files.Length; ++index1)
  4979. {
  4980. if (Path.GetExtension(files[index1]) == ".anm")
  4981. {
  4982. string str1 =
  4983. files[index1].Split('\\')[files[index1]
  4984. .Split('\\').Length
  4985. - 1].Split('.')[0];
  4986. if (str1 == array2[61].Replace("MultipleMaidsPose", ""))
  4987. {
  4988. url = files[index1];
  4989. for (int index2 = 0;
  4990. index2 < poseArray.Length;
  4991. ++index2)
  4992. {
  4993. string str2 = poseArray[index2]
  4994. .Replace(" ", "").Split('/')[0];
  4995. if (str1 == str2)
  4996. poseIndex[i] = index2;
  4997. }
  4998. break;
  4999. }
  5000. }
  5001. }
  5002. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose",
  5003. new List<string>());
  5004. if (url != "")
  5005. {
  5006. string path = url;
  5007. byte[] numArray = new byte[0];
  5008. try
  5009. {
  5010. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  5011. {
  5012. numArray = new byte[fileStream.Length];
  5013. fileStream.Read(numArray, 0, numArray.Length);
  5014. }
  5015. }
  5016. catch { }
  5017. if (0 < numArray.Length)
  5018. {
  5019. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  5020. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  5021. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  5022. {
  5023. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
  5024. Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  5025. };
  5026. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  5027. maid.SetAutoTwist(f_eType, true);
  5028. }
  5029. }
  5030. }
  5031. else
  5032. {
  5033. int result;
  5034. if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  5035. loadPose[i] = strArray2[0];
  5036. else if (!strArray2[0].StartsWith("dance_"))
  5037. {
  5038. maidArray[i].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  5039. }
  5040. else
  5041. {
  5042. if (!(bool) ((Object) maidArray[i]
  5043. .body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  5044. maidArray[i].body0.LoadAnime(strArray2[0] + ".anm",
  5045. GameUty.FileSystem,
  5046. strArray2[0] + ".anm",
  5047. false,
  5048. false);
  5049. maidArray[i].body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  5050. }
  5051. }
  5052. if (strArray2.Length > 1)
  5053. {
  5054. maidArray[i].body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time =
  5055. float.Parse(strArray2[1]);
  5056. isStop[i] = true;
  5057. if (strArray2.Length > 2)
  5058. {
  5059. CMT.SearchObjName(maidArray[i].body0.m_Bones.transform, "Bip01", true);
  5060. isPoseIti[i] = true;
  5061. poseIti[i] = maidArray[i].transform.position;
  5062. maidArray[i].transform.position = new Vector3(100f, 100f, 100f);
  5063. }
  5064. }
  5065. faceIndex[i] = int.Parse(array2[62]);
  5066. if (faceIndex[i] < faceArray.Length)
  5067. maid.FaceAnime(faceArray[faceIndex[i]], 0.01f, 0);
  5068. else
  5069. faceIndex[i] = 0;
  5070. TMorph morph = maid.body0.Face.morph;
  5071. if (!isVR)
  5072. {
  5073. maid.boMabataki = false;
  5074. morph.EyeMabataki = 0.0f;
  5075. maid.body0.Face.morph.FixBlendValues_Face();
  5076. }
  5077. }
  5078. else
  5079. break;
  5080. }
  5081. }
  5082. }
  5083. }
  5084. if (allowUpdate || sceneLevel == 14 || sceneLevel == 24)
  5085. {
  5086. if (isF6 && !(bool) ((Object) cameraObj) && !isVR)
  5087. {
  5088. cameraObj = new GameObject("subCamera");
  5089. subcamera = cameraObj.AddComponent<Camera>();
  5090. subcamera.CopyFrom(Camera.main);
  5091. cameraObj.SetActive(true);
  5092. subcamera.clearFlags = CameraClearFlags.Depth;
  5093. subcamera.cullingMask = 256;
  5094. subcamera.depth = 1f;
  5095. subcamera.transform.parent = mainCamera.transform;
  5096. float num = 2f;
  5097. if (Application.unityVersion.StartsWith("4"))
  5098. num = 1f;
  5099. GameObject gameObject = new GameObject("Light");
  5100. gameObject.AddComponent<Light>();
  5101. lightList.Add(gameObject);
  5102. lightColorR.Add(1f);
  5103. lightColorG.Add(1f);
  5104. lightColorB.Add(1f);
  5105. lightIndex.Add(0);
  5106. lightX.Add(40f);
  5107. lightY.Add(180f);
  5108. lightAkarusa.Add(num);
  5109. lightKage.Add(0.098f);
  5110. lightRange.Add(50f);
  5111. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  5112. gameObject.GetComponent<Light>().intensity = 2f;
  5113. gameObject.GetComponent<Light>().spotAngle = 50f;
  5114. gameObject.GetComponent<Light>().range = 10f;
  5115. gameObject.GetComponent<Light>().type = LightType.Directional;
  5116. gameObject.GetComponent<Light>().color = new Color(0.5f, 1f, 0.0f);
  5117. gameObject.GetComponent<Light>().cullingMask = 256;
  5118. }
  5119. if ((!isF6S || !this.getModKeyPressing(modKey.Shift) || !Input.GetKeyDown(KeyCode.F6))
  5120. && (isF6S || !this.getModKeyPressing(modKey.Shift) || !Input.GetKeyDown(KeyCode.F6)))
  5121. {
  5122. if (!isF6 && Input.GetKeyDown(KeyCode.F6) && (sceneLevel != 5 && sceneLevel != 3)
  5123. && (!isVR && (bool) ((Object) maidArray[0])) && maidArray[0].Visible)
  5124. {
  5125. isF6 = true;
  5126. bGui = true;
  5127. isFaceInit = true;
  5128. isGuiInit = true;
  5129. maidArray[0].boMabataki = false;
  5130. selectMaidIndex = 0;
  5131. maidCnt = 1;
  5132. isFace[0] = true;
  5133. faceFlg = true;
  5134. kankyoFlg = false;
  5135. string bgName = GameMain.Instance.BgMgr.GetBGName();
  5136. int num = 0;
  5137. foreach (string bg in bgArray)
  5138. {
  5139. if (bg == bgName)
  5140. {
  5141. bgIndex = num;
  5142. bgIndex6 = num;
  5143. break;
  5144. }
  5145. ++num;
  5146. }
  5147. bgCombo.selectedItemIndex = bgIndex6;
  5148. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5149. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5150. }
  5151. else if (!isF6 && Input.GetKeyDown(KeyCode.F7) && (sceneLevel != 5 && sceneLevel != 3)
  5152. && (!isVR && (bool) ((Object) maidArray[0])) && maidArray[0].Visible)
  5153. {
  5154. isF6 = true;
  5155. bGui = true;
  5156. isGuiInit = true;
  5157. selectMaidIndex = 0;
  5158. maidCnt = 1;
  5159. isFace[0] = false;
  5160. faceFlg = false;
  5161. kankyoFlg = true;
  5162. string bgName = GameMain.Instance.BgMgr.GetBGName();
  5163. int num = 0;
  5164. foreach (string bg in bgArray)
  5165. {
  5166. if (bg == bgName)
  5167. {
  5168. bgIndex = num;
  5169. bgIndex6 = num;
  5170. break;
  5171. }
  5172. ++num;
  5173. }
  5174. bgmCombo.selectedItemIndex = bgmIndex;
  5175. bgCombo.selectedItemIndex = bgIndex6;
  5176. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5177. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5178. lightX6 = lightX[0];
  5179. lightY6 = lightY[0];
  5180. }
  5181. else if (isVR && Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.BackQuote)
  5182. || isF6 && (Input.GetKeyDown(KeyCode.F6) || Input.GetKeyDown(KeyCode.F7)))
  5183. {
  5184. isF6 = false;
  5185. bGui = false;
  5186. maidArray[0].boMabataki = true;
  5187. bgIndex = bgIndex6;
  5188. bg.localScale = new Vector3(1f, 1f, 1f);
  5189. if (!isVR)
  5190. {
  5191. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  5192. fieldValue.enabled = true;
  5193. fieldValue.bloomIntensity = 2.85f;
  5194. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  5195. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  5196. fieldValue.bloomBlurIterations = 3;
  5197. }
  5198. else if (bgArray[bgIndex].Length == 36)
  5199. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5200. else
  5201. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5202. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  5203. maidCnt = 0;
  5204. wearIndex = 0;
  5205. faceFlg = false;
  5206. faceFlg2 = false;
  5207. sceneFlg = false;
  5208. poseFlg = false;
  5209. kankyoFlg = false;
  5210. kankyo2Flg = false;
  5211. unLockFlg = false;
  5212. ikMaid = 0;
  5213. ikBui = 0;
  5214. isNamida = false;
  5215. isTear1 = false;
  5216. isTear2 = false;
  5217. isTear3 = false;
  5218. isShock = false;
  5219. isYodare = false;
  5220. isHoho = false;
  5221. isHoho2 = false;
  5222. isHohos = false;
  5223. isHohol = false;
  5224. isToothoff = false;
  5225. isNosefook = false;
  5226. isFaceInit = false;
  5227. isPoseInit = false;
  5228. isWear = true;
  5229. isSkirt = true;
  5230. isBra = true;
  5231. isPanz = true;
  5232. isHeadset = true;
  5233. isAccUde = true;
  5234. isStkg = true;
  5235. isShoes = true;
  5236. isGlove = true;
  5237. isMegane = true;
  5238. isAccSenaka = true;
  5239. isPanel = true;
  5240. isBloom = false;
  5241. isBloomA = false;
  5242. isBlur = false;
  5243. isBlur2 = false;
  5244. bloom1 = 2.85f;
  5245. bloom2 = 3f;
  5246. bloom3 = 0.0f;
  5247. bloom4 = 0.0f;
  5248. bloom5 = 0.0f;
  5249. blur1 = -3.98f;
  5250. blur4 = -0.75f;
  5251. blur2 = 0.9f;
  5252. blur3 = 4.19f;
  5253. bokashi = 0.0f;
  5254. kamiyure = 0.0f;
  5255. isDepth = false;
  5256. isDepthA = false;
  5257. depth1 = 3f;
  5258. depth2 = 0.1f;
  5259. depth3 = 15f;
  5260. depth4 = 2.5f;
  5261. isFog = false;
  5262. fog1 = 4f;
  5263. fog2 = 1f;
  5264. fog3 = 1f;
  5265. fog4 = 0.0f;
  5266. fog5 = 1f;
  5267. fog6 = 1f;
  5268. fog7 = 1f;
  5269. isSepia = false;
  5270. isBloomS = true;
  5271. isDepthS = false;
  5272. isBlurS = false;
  5273. isFogS = false;
  5274. if ((Object) depth_field_ != (Object) null)
  5275. depth_field_.enabled = false;
  5276. if ((Object) fog_ != (Object) null)
  5277. fog_.enabled = false;
  5278. if ((Object) sepia_tone_ != (Object) null)
  5279. sepia_tone_.enabled = false;
  5280. isCube = false;
  5281. isCube2 = true;
  5282. isCube3 = false;
  5283. isCube4 = true;
  5284. effectIndex = 0;
  5285. selectMaidIndex = 0;
  5286. copyIndex = 0;
  5287. selectLightIndex = 0;
  5288. doguBIndex = 0;
  5289. parIndex = 0;
  5290. isEditNo = 0;
  5291. editSelectMaid = (Maid) null;
  5292. for (int index = 0; index < 10; ++index)
  5293. {
  5294. date[index] = "";
  5295. ninzu[index] = "";
  5296. }
  5297. if ((bool) ((Object) kami))
  5298. kami.SetActive(false);
  5299. lightIndex = new List<int>();
  5300. lightIndex.Add(0);
  5301. lightColorR = new List<float>();
  5302. lightColorR.Add(1f);
  5303. lightColorG = new List<float>();
  5304. lightColorG.Add(1f);
  5305. lightColorB = new List<float>();
  5306. lightColorB.Add(1f);
  5307. lightX = new List<float>();
  5308. lightX.Add(lightX6);
  5309. lightY = new List<float>();
  5310. lightY.Add(lightY6);
  5311. lightAkarusa = new List<float>();
  5312. lightAkarusa.Add(0.95f);
  5313. lightKage = new List<float>();
  5314. lightKage.Add(0.098f);
  5315. lightRange = new List<float>();
  5316. lightRange.Add(50f);
  5317. isIdx1 = false;
  5318. isIdx2 = false;
  5319. isIdx3 = false;
  5320. isIdx4 = false;
  5321. bgObject.SetActive(true);
  5322. GameMain.Instance.MainLight.Reset();
  5323. GameMain.Instance.MainLight.SetIntensity(0.95f);
  5324. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 30f;
  5325. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  5326. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  5327. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  5328. GameMain.Instance.MainLight.transform.eulerAngles =
  5329. new Vector3(lightX6, lightY6, GameMain.Instance.MainLight.transform.eulerAngles.z);
  5330. for (int index = 0; index < doguBObject.Count; ++index)
  5331. Destroy((Object) doguBObject[index]);
  5332. doguBObject.Clear();
  5333. doguBIndex = 0;
  5334. parIndex = 0;
  5335. doguCombo.selectedItemIndex = 0;
  5336. parCombo.selectedItemIndex = 0;
  5337. for (int index = 1; index < lightList.Count; ++index)
  5338. Destroy((Object) lightList[index]);
  5339. lightList = new List<GameObject>();
  5340. lightList.Add(GameMain.Instance.MainLight.gameObject);
  5341. lightComboList = new GUIContent[lightList.Count];
  5342. lightComboList[0] = new GUIContent("メイン");
  5343. lightCombo.selectedItemIndex = 0;
  5344. selectLightIndex = 0;
  5345. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex6]);
  5346. bgCombo.selectedItemIndex = bgIndex6;
  5347. bgCombo2.selectedItemIndex = 0;
  5348. itemCombo2.selectedItemIndex = 0;
  5349. slotCombo.selectedItemIndex = 0;
  5350. sortList.Clear();
  5351. scrollPos = new Vector2(0.0f, 0.0f);
  5352. if (!isVR)
  5353. {
  5354. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  5355. component.mode = Vignetting.AberrationMode.Simple;
  5356. component.intensity = -3.98f;
  5357. component.chromaticAberration = -0.75f;
  5358. component.axialAberration = 1.18f;
  5359. component.blurSpread = 4.19f;
  5360. component.luminanceDependency = 0.494f;
  5361. component.blurDistance = 1.71f;
  5362. component.enabled = false;
  5363. }
  5364. doguIndex.Clear();
  5365. doguSelectIndex = 0;
  5366. for (int index = 0; index < doguObject.Count; ++index)
  5367. {
  5368. if ((Object) doguObject[index] != (Object) null)
  5369. {
  5370. Destroy((Object) doguObject[index]);
  5371. doguObject[index] = (GameObject) null;
  5372. }
  5373. }
  5374. doguObject.Clear();
  5375. }
  5376. }
  5377. for (int index = 0; index < maidCnt; ++index)
  5378. {
  5379. if ((bool) ((Object) maidArray[index]) && maidArray[index].Visible)
  5380. {
  5381. Maid maid = maidArray[index];
  5382. if (isLook[index] != isLookn[index])
  5383. {
  5384. isLookn[index] = isLook[index];
  5385. if (isLook[index])
  5386. {
  5387. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5388. maid.body0.boHeadToCam = true;
  5389. maid.body0.boEyeToCam = true;
  5390. maid.body0.trsLookTarget = (Transform) null;
  5391. }
  5392. else
  5393. {
  5394. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5395. maid.body0.boHeadToCam = true;
  5396. maid.body0.boEyeToCam = true;
  5397. }
  5398. }
  5399. }
  5400. }
  5401. if ((bool) ((Object) maidArray[selectMaidIndex]) && maidArray[selectMaidIndex].Visible
  5402. && (!faceFlg && !poseFlg && (!sceneFlg && !kankyoFlg) && !kankyo2Flg
  5403. || (sceneFlg || kankyoFlg) || kankyo2Flg))
  5404. {
  5405. for (int index = 0; index < maidCnt; ++index)
  5406. {
  5407. if ((bool) ((Object) maidArray[index]) && !maidArray[index].boMabataki)
  5408. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5409. }
  5410. }
  5411. if ((bool) ((Object) maidArray[selectMaidIndex]) && maidArray[selectMaidIndex].Visible && poseFlg)
  5412. {
  5413. if (isPoseInit)
  5414. {
  5415. if (!isDanceChu)
  5416. {
  5417. Maid maid = maidArray[selectMaidIndex];
  5418. isPoseInit = false;
  5419. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  5420. || maid.body0.GetMask(TBody.SlotID.onepiece);
  5421. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  5422. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  5423. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  5424. isMaid = maid.body0.GetMask(TBody.SlotID.body);
  5425. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  5426. || (maid.body0.GetMask(TBody.SlotID.accHead)
  5427. || maid.body0.GetMask(TBody.SlotID.accKamiSubL))
  5428. || (maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  5429. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  5430. || maid.body0.GetMask(TBody.SlotID.accKami_2_))
  5431. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  5432. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  5433. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  5434. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  5435. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  5436. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  5437. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  5438. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5439. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5440. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5441. eyeclose = fieldValue2[(int) morph.hash[(object) "eyeclose"]];
  5442. eyeclose2 = fieldValue2[(int) morph.hash[(object) "eyeclose2"]];
  5443. eyeclose3 = fieldValue2[(int) morph.hash[(object) "eyeclose3"]];
  5444. eyeclose6 = fieldValue2[(int) morph.hash[(object) "eyeclose6"]];
  5445. hitomih = fieldValue1[(int) morph.hash[(object) "hitomih"]];
  5446. hitomis = fieldValue1[(int) morph.hash[(object) "hitomis"]];
  5447. mayuha = fieldValue1[(int) morph.hash[(object) "mayuha"]];
  5448. mayuup = fieldValue1[(int) morph.hash[(object) "mayuup"]];
  5449. mayuv = fieldValue1[(int) morph.hash[(object) "mayuv"]];
  5450. mayuvhalf = fieldValue1[(int) morph.hash[(object) "mayuvhalf"]];
  5451. moutha = fieldValue1[(int) morph.hash[(object) "moutha"]];
  5452. mouths = fieldValue1[(int) morph.hash[(object) "mouths"]];
  5453. mouthdw = fieldValue1[(int) morph.hash[(object) "mouthdw"]];
  5454. mouthup = fieldValue1[(int) morph.hash[(object) "mouthup"]];
  5455. tangout = fieldValue1[(int) morph.hash[(object) "tangout"]];
  5456. tangup = fieldValue1[(int) morph.hash[(object) "tangup"]];
  5457. eyebig = fieldValue1[(int) morph.hash[(object) "eyebig"]];
  5458. eyeclose5 = fieldValue2[(int) morph.hash[(object) "eyeclose5"]];
  5459. mayuw = fieldValue1[(int) morph.hash[(object) "mayuw"]];
  5460. mouthhe = fieldValue1[(int) morph.hash[(object) "mouthhe"]];
  5461. mouthc = fieldValue1[(int) morph.hash[(object) "mouthc"]];
  5462. mouthi = fieldValue1[(int) morph.hash[(object) "mouthi"]];
  5463. mouthuphalf = fieldValue1[(int) morph.hash[(object) "mouthuphalf"]];
  5464. try
  5465. {
  5466. tangopen = fieldValue1[(int) morph.hash[(object) "tangopen"]];
  5467. }
  5468. catch { }
  5469. isNamida = (double) fieldValue1[(int) morph.hash[(object) "namida"]] > 0.0;
  5470. isTear1 = (double) fieldValue1[(int) morph.hash[(object) "tear1"]] > 0.0;
  5471. isTear2 = (double) fieldValue1[(int) morph.hash[(object) "tear2"]] > 0.0;
  5472. isTear3 = (double) fieldValue1[(int) morph.hash[(object) "tear3"]] > 0.0;
  5473. isShock = (double) fieldValue1[(int) morph.hash[(object) "shock"]] > 0.0;
  5474. isYodare = (double) fieldValue1[(int) morph.hash[(object) "yodare"]] > 0.0;
  5475. isHoho = (double) fieldValue1[(int) morph.hash[(object) "hoho"]] > 0.0;
  5476. isHoho2 = (double) fieldValue1[(int) morph.hash[(object) "hoho2"]] > 0.0;
  5477. isHohos = (double) fieldValue1[(int) morph.hash[(object) "hohos"]] > 0.0;
  5478. isHohol = (double) fieldValue1[(int) morph.hash[(object) "hohol"]] > 0.0;
  5479. isToothoff = (double) fieldValue1[(int) morph.hash[(object) "toothoff"]] > 0.0;
  5480. isNosefook = (double) fieldValue1[(int) morph.hash[(object) "nosefook"]] > 0.0;
  5481. }
  5482. }
  5483. else
  5484. {
  5485. Maid maid = maidArray[selectMaidIndex];
  5486. if (goSlot[(int) selectList[selectMaidIndex]] != null)
  5487. {
  5488. maidArray[selectMaidIndex].body0.goSlot =
  5489. new List<TBodySkin>((IEnumerable<TBodySkin>) goSlot[(int) selectList[selectMaidIndex]]);
  5490. for (int index = 0; index < bodyHit[(int) selectList[selectMaidIndex]].Count; ++index)
  5491. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit =
  5492. bodyHit[(int) selectList[selectMaidIndex]][index];
  5493. }
  5494. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  5495. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  5496. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  5497. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  5498. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  5499. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  5500. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  5501. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  5502. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  5503. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  5504. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  5505. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  5506. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  5507. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  5508. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  5509. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  5510. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  5511. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  5512. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  5513. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  5514. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  5515. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  5516. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  5517. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  5518. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  5519. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  5520. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  5521. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  5522. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  5523. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  5524. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  5525. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  5526. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  5527. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  5528. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  5529. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  5530. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  5531. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  5532. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  5533. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  5534. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  5535. {
  5536. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  5537. if (mekure1[selectMaidIndex])
  5538. {
  5539. maid.ItemChangeTemp("skirt", "めくれスカート");
  5540. maid.ItemChangeTemp("onepiece", "めくれスカート");
  5541. mekure2[selectMaidIndex] = false;
  5542. mekure2n[selectMaidIndex] = false;
  5543. }
  5544. else
  5545. {
  5546. this.ResetProp(maid, MPN.skirt);
  5547. this.ResetProp(maid, MPN.onepiece);
  5548. }
  5549. maid.AllProcPropSeqStart();
  5550. }
  5551. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  5552. {
  5553. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  5554. if (mekure2[selectMaidIndex])
  5555. {
  5556. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  5557. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  5558. mekure1[selectMaidIndex] = false;
  5559. mekure1n[selectMaidIndex] = false;
  5560. }
  5561. else
  5562. {
  5563. this.ResetProp(maid, MPN.skirt);
  5564. this.ResetProp(maid, MPN.onepiece);
  5565. }
  5566. maid.AllProcPropSeqStart();
  5567. }
  5568. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  5569. {
  5570. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  5571. if (zurasi[selectMaidIndex])
  5572. {
  5573. maid.ItemChangeTemp("panz", "パンツずらし");
  5574. maid.ItemChangeTemp("mizugi", "パンツずらし");
  5575. }
  5576. else
  5577. {
  5578. this.ResetProp(maid, MPN.panz);
  5579. this.ResetProp(maid, MPN.mizugi);
  5580. }
  5581. maid.AllProcPropSeqStart();
  5582. }
  5583. if (!isDanceChu)
  5584. {
  5585. if (maid.body0.GetMask(TBody.SlotID.body) != isMaid)
  5586. {
  5587. Hashtable fieldValue = GetFieldValue<TBody, Hashtable>(maid.body0, "m_hFoceHide");
  5588. fieldValue[(object) TBody.SlotID.body] = (object) isMaid;
  5589. fieldValue[(object) TBody.SlotID.head] = (object) isMaid;
  5590. fieldValue[(object) TBody.SlotID.eye] = (object) isMaid;
  5591. fieldValue[(object) TBody.SlotID.hairF] = (object) isMaid;
  5592. fieldValue[(object) TBody.SlotID.hairR] = (object) isMaid;
  5593. fieldValue[(object) TBody.SlotID.hairS] = (object) isMaid;
  5594. fieldValue[(object) TBody.SlotID.hairT] = (object) isMaid;
  5595. fieldValue[(object) TBody.SlotID.hairAho] = (object) isMaid;
  5596. fieldValue[(object) TBody.SlotID.chikubi] = (object) isMaid;
  5597. fieldValue[(object) TBody.SlotID.underhair] = (object) isMaid;
  5598. fieldValue[(object) TBody.SlotID.moza] = (object) isMaid;
  5599. if (maid.body0.goSlot[19].m_strModelFileName.Contains("melala_body"))
  5600. fieldValue[(object) TBody.SlotID.accHana] = (object) isMaid;
  5601. maid.body0.FixMaskFlag();
  5602. maid.body0.FixVisibleFlag(false);
  5603. }
  5604. if (isLook[selectMaidIndex] != isLookn[selectMaidIndex])
  5605. {
  5606. isLookn[selectMaidIndex] = isLook[selectMaidIndex];
  5607. if (isLook[selectMaidIndex])
  5608. {
  5609. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5610. maid.body0.boHeadToCam = true;
  5611. maid.body0.boEyeToCam = true;
  5612. maid.body0.trsLookTarget = (Transform) null;
  5613. }
  5614. else
  5615. {
  5616. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5617. maid.body0.boHeadToCam = true;
  5618. maid.body0.boEyeToCam = true;
  5619. }
  5620. }
  5621. if (isLook[selectMaidIndex])
  5622. {
  5623. if ((double) maid.body0.offsetLookTarget.x != (double) lookY[selectMaidIndex])
  5624. {
  5625. int num = !isLock[selectMaidIndex] ? 1 : ((double) lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  5626. maid.body0.offsetLookTarget =
  5627. num != 0
  5628. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  5629. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  5630. }
  5631. if ((double) lookX[selectMaidIndex] != (double) lookXn[selectMaidIndex])
  5632. {
  5633. lookXn[selectMaidIndex] = lookX[selectMaidIndex];
  5634. maid.body0.offsetLookTarget = new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex]);
  5635. }
  5636. if ((double) lookY[selectMaidIndex] != (double) lookYn[selectMaidIndex])
  5637. {
  5638. lookYn[selectMaidIndex] = lookY[selectMaidIndex];
  5639. int num = !isLock[selectMaidIndex] ? 1 : ((double) lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  5640. maid.body0.offsetLookTarget =
  5641. num != 0
  5642. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  5643. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  5644. }
  5645. }
  5646. if (isHanten)
  5647. {
  5648. isHanten = false;
  5649. this.SetHanten(maid, selectMaidIndex);
  5650. }
  5651. if (hanten[selectMaidIndex] != hantenn[selectMaidIndex])
  5652. {
  5653. hantenn[selectMaidIndex] = hanten[selectMaidIndex];
  5654. isStop[selectMaidIndex] = true;
  5655. isLock[selectMaidIndex] = true;
  5656. isHanten = true;
  5657. }
  5658. if (voice1[selectMaidIndex] != voice1n[selectMaidIndex])
  5659. {
  5660. voice1n[selectMaidIndex] = voice1[selectMaidIndex];
  5661. if (voice1[selectMaidIndex])
  5662. {
  5663. zFlg[selectMaidIndex] = true;
  5664. xFlg[selectMaidIndex] = false;
  5665. voice2[selectMaidIndex] = false;
  5666. voice2n[selectMaidIndex] = false;
  5667. }
  5668. else
  5669. zFlg[selectMaidIndex] = false;
  5670. }
  5671. if (voice2[selectMaidIndex] != voice2n[selectMaidIndex])
  5672. {
  5673. voice2n[selectMaidIndex] = voice2[selectMaidIndex];
  5674. if (voice2[selectMaidIndex])
  5675. {
  5676. xFlg[selectMaidIndex] = true;
  5677. zFlg[selectMaidIndex] = false;
  5678. voice1[selectMaidIndex] = false;
  5679. voice1n[selectMaidIndex] = false;
  5680. }
  5681. else
  5682. xFlg[selectMaidIndex] = false;
  5683. }
  5684. for (int index = 0; index < maidCnt; ++index)
  5685. {
  5686. if (!maidArray[index].boMabataki)
  5687. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5688. }
  5689. }
  5690. }
  5691. }
  5692. if ((bool) ((Object) maidArray[selectMaidIndex]) && maidArray[selectMaidIndex].Visible && (isF6 || okFlg && faceFlg))
  5693. {
  5694. if (isFaceInit)
  5695. {
  5696. if (!isDanceChu)
  5697. {
  5698. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5699. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5700. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5701. Maid maid = maidArray[selectMaidIndex];
  5702. maidArray[selectMaidIndex].boMabataki = false;
  5703. morph.EyeMabataki = 0.0f;
  5704. isFaceInit = false;
  5705. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  5706. eyeclose = fieldValue2[(int) morph.hash[(object) "eyeclose"]];
  5707. eyeclose2 = fieldValue2[(int) morph.hash[(object) "eyeclose2"]];
  5708. eyeclose3 = fieldValue2[(int) morph.hash[(object) "eyeclose3"]];
  5709. eyeclose6 = fieldValue2[(int) morph.hash[(object) "eyeclose6"]];
  5710. hitomih = fieldValue1[(int) morph.hash[(object) "hitomih"]];
  5711. hitomis = fieldValue1[(int) morph.hash[(object) "hitomis"]];
  5712. mayuha = fieldValue1[(int) morph.hash[(object) "mayuha"]];
  5713. mayuup = fieldValue1[(int) morph.hash[(object) "mayuup"]];
  5714. mayuv = fieldValue1[(int) morph.hash[(object) "mayuv"]];
  5715. mayuvhalf = fieldValue1[(int) morph.hash[(object) "mayuvhalf"]];
  5716. moutha = fieldValue1[(int) morph.hash[(object) "moutha"]];
  5717. mouths = fieldValue1[(int) morph.hash[(object) "mouths"]];
  5718. mouthdw = fieldValue1[(int) morph.hash[(object) "mouthdw"]];
  5719. mouthup = fieldValue1[(int) morph.hash[(object) "mouthup"]];
  5720. tangout = fieldValue1[(int) morph.hash[(object) "tangout"]];
  5721. tangup = fieldValue1[(int) morph.hash[(object) "tangup"]];
  5722. eyebig = fieldValue1[(int) morph.hash[(object) "eyebig"]];
  5723. eyeclose5 = fieldValue2[(int) morph.hash[(object) "eyeclose5"]];
  5724. mayuw = fieldValue1[(int) morph.hash[(object) "mayuw"]];
  5725. mouthhe = fieldValue1[(int) morph.hash[(object) "mouthhe"]];
  5726. mouthc = fieldValue1[(int) morph.hash[(object) "mouthc"]];
  5727. mouthi = fieldValue1[(int) morph.hash[(object) "mouthi"]];
  5728. mouthuphalf = fieldValue1[(int) morph.hash[(object) "mouthuphalf"]];
  5729. try
  5730. {
  5731. tangopen = fieldValue1[(int) morph.hash[(object) "tangopen"]];
  5732. }
  5733. catch { }
  5734. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  5735. || maid.body0.GetMask(TBody.SlotID.onepiece);
  5736. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  5737. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  5738. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  5739. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  5740. || (maid.body0.GetMask(TBody.SlotID.accHead)
  5741. || maid.body0.GetMask(TBody.SlotID.accKamiSubL))
  5742. || (maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  5743. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  5744. || maid.body0.GetMask(TBody.SlotID.accKami_2_))
  5745. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  5746. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  5747. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  5748. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  5749. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  5750. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  5751. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  5752. isNamida = (double) fieldValue1[(int) morph.hash[(object) "namida"]] > 0.0;
  5753. isTear1 = (double) fieldValue1[(int) morph.hash[(object) "tear1"]] > 0.0;
  5754. isTear2 = (double) fieldValue1[(int) morph.hash[(object) "tear2"]] > 0.0;
  5755. isTear3 = (double) fieldValue1[(int) morph.hash[(object) "tear3"]] > 0.0;
  5756. isShock = (double) fieldValue1[(int) morph.hash[(object) "shock"]] > 0.0;
  5757. isYodare = (double) fieldValue1[(int) morph.hash[(object) "yodare"]] > 0.0;
  5758. isHoho = (double) fieldValue1[(int) morph.hash[(object) "hoho"]] > 0.0;
  5759. isHoho2 = (double) fieldValue1[(int) morph.hash[(object) "hoho2"]] > 0.0;
  5760. isHohos = (double) fieldValue1[(int) morph.hash[(object) "hohos"]] > 0.0;
  5761. isHohol = (double) fieldValue1[(int) morph.hash[(object) "hohol"]] > 0.0;
  5762. isToothoff = (double) fieldValue1[(int) morph.hash[(object) "toothoff"]] > 0.0;
  5763. isNosefook = (double) fieldValue1[(int) morph.hash[(object) "nosefook"]] > 0.0;
  5764. }
  5765. }
  5766. else
  5767. {
  5768. Maid maid = maidArray[selectMaidIndex];
  5769. if (!yotogiFlg && sceneLevel != 5 && sceneLevel != 3)
  5770. {
  5771. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  5772. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  5773. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  5774. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  5775. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  5776. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  5777. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  5778. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  5779. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  5780. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  5781. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  5782. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  5783. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  5784. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  5785. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  5786. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  5787. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  5788. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  5789. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  5790. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  5791. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  5792. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  5793. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  5794. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  5795. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  5796. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  5797. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  5798. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  5799. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  5800. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  5801. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  5802. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  5803. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  5804. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  5805. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  5806. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  5807. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  5808. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  5809. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  5810. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  5811. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  5812. {
  5813. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  5814. if (mekure1[selectMaidIndex])
  5815. {
  5816. maid.ItemChangeTemp("skirt", "めくれスカート");
  5817. maid.ItemChangeTemp("onepiece", "めくれスカート");
  5818. mekure2[selectMaidIndex] = false;
  5819. mekure2n[selectMaidIndex] = false;
  5820. }
  5821. else
  5822. {
  5823. this.ResetProp(maid, MPN.skirt);
  5824. this.ResetProp(maid, MPN.onepiece);
  5825. }
  5826. maid.AllProcPropSeqStart();
  5827. }
  5828. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  5829. {
  5830. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  5831. if (mekure2[selectMaidIndex])
  5832. {
  5833. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  5834. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  5835. mekure1[selectMaidIndex] = false;
  5836. mekure1n[selectMaidIndex] = false;
  5837. }
  5838. else
  5839. {
  5840. this.ResetProp(maid, MPN.skirt);
  5841. this.ResetProp(maid, MPN.onepiece);
  5842. }
  5843. maid.AllProcPropSeqStart();
  5844. }
  5845. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  5846. {
  5847. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  5848. if (zurasi[selectMaidIndex])
  5849. {
  5850. maid.ItemChangeTemp("panz", "パンツずらし");
  5851. maid.ItemChangeTemp("mizugi", "パンツずらし");
  5852. }
  5853. else
  5854. {
  5855. this.ResetProp(maid, MPN.panz);
  5856. this.ResetProp(maid, MPN.mizugi);
  5857. }
  5858. maid.AllProcPropSeqStart();
  5859. }
  5860. }
  5861. if (!isDanceChu)
  5862. {
  5863. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5864. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5865. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5866. fieldValue2[(int) morph.hash[(object) "eyeclose"]] = eyeclose;
  5867. fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = eyeclose2;
  5868. fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = eyeclose3;
  5869. fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = eyeclose6;
  5870. fieldValue1[(int) morph.hash[(object) "hitomih"]] = hitomih;
  5871. fieldValue1[(int) morph.hash[(object) "hitomis"]] = hitomis;
  5872. fieldValue1[(int) morph.hash[(object) "mayuha"]] = mayuha;
  5873. fieldValue1[(int) morph.hash[(object) "mayuup"]] = mayuup;
  5874. fieldValue1[(int) morph.hash[(object) "mayuv"]] = mayuv;
  5875. fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = mayuvhalf;
  5876. fieldValue1[(int) morph.hash[(object) "tangout"]] = tangout;
  5877. fieldValue1[(int) morph.hash[(object) "tangup"]] = tangup;
  5878. fieldValue1[(int) morph.hash[(object) "eyebig"]] = eyebig;
  5879. fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = eyeclose5;
  5880. fieldValue1[(int) morph.hash[(object) "mayuw"]] = mayuw;
  5881. try
  5882. {
  5883. fieldValue1[(int) morph.hash[(object) "tangopen"]] = tangopen;
  5884. }
  5885. catch { }
  5886. if (!isDanceChu)
  5887. {
  5888. fieldValue1[(int) morph.hash[(object) "moutha"]] = moutha;
  5889. fieldValue1[(int) morph.hash[(object) "mouths"]] = mouths;
  5890. fieldValue1[(int) morph.hash[(object) "mouthdw"]] = mouthdw;
  5891. fieldValue1[(int) morph.hash[(object) "mouthup"]] = mouthup;
  5892. fieldValue1[(int) morph.hash[(object) "mouthhe"]] = mouthhe;
  5893. fieldValue1[(int) morph.hash[(object) "mouthc"]] = mouthc;
  5894. fieldValue1[(int) morph.hash[(object) "mouthi"]] = mouthi;
  5895. fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = mouthuphalf;
  5896. }
  5897. if (isNamida)
  5898. fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
  5899. else
  5900. fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
  5901. if (isTear1)
  5902. fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
  5903. else
  5904. fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
  5905. if (isTear2)
  5906. fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
  5907. else
  5908. fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
  5909. if (isTear3)
  5910. fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
  5911. else
  5912. fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
  5913. if (isShock)
  5914. fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
  5915. else
  5916. fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
  5917. if (isYodare)
  5918. fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
  5919. else
  5920. fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
  5921. if (isHoho)
  5922. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
  5923. else
  5924. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
  5925. if (isHoho2)
  5926. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
  5927. else
  5928. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
  5929. if (isHohos)
  5930. fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
  5931. else
  5932. fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
  5933. if (isHohol)
  5934. fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
  5935. else
  5936. fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
  5937. if (isToothoff)
  5938. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
  5939. else
  5940. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
  5941. morph.boNoseFook = isNosefook;
  5942. for (int index = 0; index < maidCnt; ++index)
  5943. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5944. }
  5945. }
  5946. }
  5947. if (isF6 && !okFlg && (!escFlg && Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Tab)))
  5948. bGui = !bGui;
  5949. if (isF6 && (Object) maidArray[0] != (Object) null && maidArray[0].Visible)
  5950. {
  5951. for (int index = 0; index < 999; ++index)
  5952. {
  5953. if ((Object) gDogu[index] != (Object) null)
  5954. {
  5955. gDogu[index].GetComponent<Renderer>().enabled = false;
  5956. gDogu[index].SetActive(false);
  5957. if (mDogu[index].del)
  5958. {
  5959. mDogu[index].del = false;
  5960. Destroy((Object) doguBObject[index]);
  5961. doguBObject.RemoveAt(index);
  5962. }
  5963. else if (mDogu[index].count > 0)
  5964. {
  5965. --mDogu[index].count;
  5966. if (doguBObject.Count > index && (Object) doguBObject[index] != (Object) null
  5967. && doguBObject[index].name.StartsWith("Particle/p"))
  5968. {
  5969. if (mDogu[index].count == 1)
  5970. doguBObject[index].SetActive(false);
  5971. if (mDogu[index].count == 0)
  5972. {
  5973. doguBObject[index].SetActive(true);
  5974. switch (doguBObject[index].name)
  5975. {
  5976. case "Particle/pLineY":
  5977. mDogu[index].count = 180;
  5978. break;
  5979. case "Particle/pLineP02":
  5980. mDogu[index].count = 115;
  5981. break;
  5982. case "Particle/pLine_act2":
  5983. mDogu[index].count = 90;
  5984. break;
  5985. case "Particle/pHeart01":
  5986. mDogu[index].count = 77;
  5987. break;
  5988. }
  5989. }
  5990. }
  5991. }
  5992. }
  5993. }
  5994. ikMode2 = !Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(modKey.Shift)
  5995. ? (!Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(modKey.Ctrl)
  5996. ? (!Input.GetKey(KeyCode.X) || !this.getModKeyPressing(modKey.Shift)
  5997. ? (!Input.GetKey(KeyCode.X)
  5998. ? (!Input.GetKey(KeyCode.Z)
  5999. ? (!Input.GetKey(KeyCode.C)
  6000. ? (!Input.GetKey(KeyCode.D) ? 0 : 15)
  6001. : 13)
  6002. : 10)
  6003. : 9)
  6004. : 14)
  6005. : 12)
  6006. : 11;
  6007. if ((Object) gBg != (Object) null)
  6008. {
  6009. if (!isCube3)
  6010. {
  6011. gBg.GetComponent<Renderer>().enabled = false;
  6012. gBg.SetActive(false);
  6013. }
  6014. else
  6015. {
  6016. if (ikMode2 > 0 && ikMode2 != 15)
  6017. {
  6018. gBg.GetComponent<Renderer>().enabled = true;
  6019. gBg.SetActive(true);
  6020. }
  6021. else
  6022. {
  6023. gBg.GetComponent<Renderer>().enabled = false;
  6024. gBg.SetActive(false);
  6025. }
  6026. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  6027. gBg.GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  6028. if (ikMode2 == 9 || ikMode2 == 14)
  6029. {
  6030. gBg.GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  6031. mBg.Update();
  6032. }
  6033. if (ikMode2 == 13)
  6034. {
  6035. gBg.GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  6036. mBg.Update();
  6037. }
  6038. if (ikMode2 == 13)
  6039. {
  6040. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && (bool) ((Object) gBg))
  6041. {
  6042. mBg.ido = 5;
  6043. mBg.reset = true;
  6044. }
  6045. else
  6046. {
  6047. gBg.transform.position = bg.position;
  6048. gBg.transform.eulerAngles = bg.eulerAngles;
  6049. mBg.maid = bgObject;
  6050. mBg.ido = 5;
  6051. }
  6052. }
  6053. else if (ikMode2 == 11)
  6054. {
  6055. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && (bool) ((Object) gBg))
  6056. {
  6057. mBg.ido = 3;
  6058. mBg.reset = true;
  6059. }
  6060. else
  6061. {
  6062. gBg.transform.position = bg.position;
  6063. gBg.transform.eulerAngles = bg.eulerAngles;
  6064. mBg.maid = bgObject;
  6065. mBg.ido = 3;
  6066. }
  6067. }
  6068. else if (ikMode2 == 12)
  6069. {
  6070. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && (bool) ((Object) gBg))
  6071. {
  6072. mBg.ido = 2;
  6073. mBg.reset = true;
  6074. }
  6075. else
  6076. {
  6077. gBg.transform.position = bg.position;
  6078. gBg.transform.eulerAngles = bg.eulerAngles;
  6079. mBg.maid = bgObject;
  6080. mBg.ido = 2;
  6081. }
  6082. }
  6083. else if (ikMode2 == 10)
  6084. {
  6085. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && (bool) ((Object) gBg))
  6086. {
  6087. mBg.ido = 1;
  6088. mBg.reset = true;
  6089. }
  6090. else
  6091. {
  6092. gBg.transform.position = bg.position;
  6093. gBg.transform.eulerAngles = bg.eulerAngles;
  6094. mBg.maid = bgObject;
  6095. mBg.ido = 1;
  6096. }
  6097. }
  6098. else if (ikMode2 == 9)
  6099. {
  6100. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && (bool) ((Object) gBg))
  6101. {
  6102. mBg.ido = 4;
  6103. mBg.reset = true;
  6104. }
  6105. else
  6106. {
  6107. gBg.transform.position = bg.position;
  6108. gBg.transform.eulerAngles = bg.eulerAngles;
  6109. mBg.maid = bgObject;
  6110. mBg.ido = 4;
  6111. }
  6112. }
  6113. else if (ikMode2 == 14)
  6114. {
  6115. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && (bool) ((Object) gBg))
  6116. {
  6117. mBg.ido = 6;
  6118. mBg.reset = true;
  6119. }
  6120. else
  6121. {
  6122. gBg.transform.position = bg.position;
  6123. gBg.transform.eulerAngles = bg.eulerAngles;
  6124. mBg.maid = bgObject;
  6125. mBg.ido = 6;
  6126. }
  6127. }
  6128. }
  6129. }
  6130. for (int index = 0; index < lightIndex.Count; ++index)
  6131. {
  6132. if ((Object) gLight[0] == (Object) null)
  6133. {
  6134. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  6135. gLight[0].GetComponent<Renderer>().material =
  6136. new Material(Shader.Find("Transparent/Diffuse")) {color = new Color(0.5f, 0.5f, 1f, 0.8f)};
  6137. gLight[0].layer = 8;
  6138. gLight[0].GetComponent<Renderer>().enabled = false;
  6139. gLight[0].SetActive(false);
  6140. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  6141. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  6142. mLight[0].obj = gLight[0];
  6143. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  6144. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  6145. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  6146. mLight[0].ido = 1;
  6147. mLight[0].isScale = false;
  6148. }
  6149. if ((Object) gLight[index] != (Object) null)
  6150. {
  6151. if (!isCube4)
  6152. {
  6153. gLight[index].GetComponent<Renderer>().enabled = false;
  6154. gLight[index].SetActive(false);
  6155. }
  6156. else if (lightList[index].GetComponent<Light>().type == LightType.Spot
  6157. || lightList[index].GetComponent<Light>().type == LightType.Point)
  6158. {
  6159. if (ikMode2 > 0 && ikMode2 != 15)
  6160. {
  6161. gLight[index].GetComponent<Renderer>().enabled = true;
  6162. gLight[index].SetActive(true);
  6163. }
  6164. else
  6165. {
  6166. gLight[index].GetComponent<Renderer>().enabled = false;
  6167. gLight[index].SetActive(false);
  6168. mLight[index].isAlt = false;
  6169. }
  6170. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  6171. {
  6172. gLight[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  6173. if (mLight[index].isAlt)
  6174. gLight[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  6175. }
  6176. if (ikMode2 == 9 || ikMode2 == 14)
  6177. {
  6178. gLight[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  6179. mLight[index].Update();
  6180. }
  6181. if (ikMode2 == 13)
  6182. {
  6183. gLight[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  6184. mLight[index].Update();
  6185. }
  6186. if (ikMode2 == 13)
  6187. {
  6188. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && (bool) ((Object) gLight[index]))
  6189. {
  6190. mLight[index].ido = 15;
  6191. mLight[index].reset = true;
  6192. }
  6193. else
  6194. {
  6195. if ((double) lightList[index].transform.localScale.x == 1.0)
  6196. lightList[index].transform.localScale =
  6197. new Vector3(lightRange[index], lightRange[index], lightRange[index]);
  6198. lightRange[index] = lightList[index].transform.localScale.x;
  6199. gLight[index].transform.position = lightList[index].transform.position;
  6200. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6201. mLight[index].maid = lightList[index];
  6202. mLight[index].ido = 15;
  6203. }
  6204. }
  6205. else if (ikMode2 == 11)
  6206. {
  6207. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && (bool) ((Object) gLight[index]))
  6208. {
  6209. mLight[index].ido = 3;
  6210. mLight[index].reset = true;
  6211. }
  6212. else
  6213. {
  6214. gLight[index].transform.position = lightList[index].transform.position;
  6215. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6216. lightX[index] = gLight[index].transform.eulerAngles.x;
  6217. lightY[index] = gLight[index].transform.eulerAngles.y;
  6218. mLight[index].maid = lightList[index];
  6219. mLight[index].ido = 3;
  6220. }
  6221. }
  6222. else if (ikMode2 == 12)
  6223. {
  6224. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && (bool) ((Object) gLight[index]))
  6225. {
  6226. mLight[index].ido = 2;
  6227. mLight[index].reset = true;
  6228. }
  6229. else
  6230. {
  6231. gLight[index].transform.position = lightList[index].transform.position;
  6232. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6233. mLight[index].maid = lightList[index];
  6234. mLight[index].ido = 2;
  6235. }
  6236. }
  6237. else if (ikMode2 == 10)
  6238. {
  6239. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && (bool) ((Object) gLight[index]))
  6240. {
  6241. mLight[index].ido = 1;
  6242. mLight[index].reset = true;
  6243. }
  6244. else
  6245. {
  6246. gLight[index].transform.position = lightList[index].transform.position;
  6247. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6248. mLight[index].maid = lightList[index];
  6249. mLight[index].ido = 1;
  6250. }
  6251. }
  6252. else if (ikMode2 == 9)
  6253. {
  6254. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && (bool) ((Object) gLight[index]))
  6255. {
  6256. mLight[index].ido = 4;
  6257. mLight[index].reset = true;
  6258. }
  6259. else
  6260. {
  6261. gLight[index].transform.position = lightList[index].transform.position;
  6262. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6263. lightX[index] = gLight[index].transform.eulerAngles.x;
  6264. lightY[index] = gLight[index].transform.eulerAngles.y;
  6265. mLight[index].maid = lightList[index];
  6266. mLight[index].ido = 4;
  6267. }
  6268. }
  6269. else if (ikMode2 == 14)
  6270. {
  6271. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && (bool) ((Object) gLight[index]))
  6272. {
  6273. mLight[index].ido = 6;
  6274. mLight[index].reset = true;
  6275. }
  6276. else
  6277. {
  6278. gLight[index].transform.position = lightList[index].transform.position;
  6279. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6280. lightX[index] = gLight[index].transform.eulerAngles.x;
  6281. lightY[index] = gLight[index].transform.eulerAngles.y;
  6282. mLight[index].maid = lightList[index];
  6283. mLight[index].ido = 6;
  6284. }
  6285. }
  6286. }
  6287. }
  6288. }
  6289. for (int index = 0; index < doguBObject.Count; ++index)
  6290. {
  6291. if (!isCube2)
  6292. {
  6293. gDogu[index].GetComponent<Renderer>().enabled = false;
  6294. gDogu[index].SetActive(false);
  6295. }
  6296. else
  6297. {
  6298. if (ikMode2 > 0)
  6299. {
  6300. gDogu[index].GetComponent<Renderer>().enabled = true;
  6301. gDogu[index].SetActive(true);
  6302. }
  6303. else
  6304. {
  6305. gDogu[index].GetComponent<Renderer>().enabled = false;
  6306. gDogu[index].SetActive(false);
  6307. mDogu[index].isAlt = false;
  6308. }
  6309. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  6310. {
  6311. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  6312. if (mDogu[index].isAlt)
  6313. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  6314. }
  6315. if (ikMode2 == 9 || ikMode2 == 14)
  6316. {
  6317. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  6318. mDogu[index].Update();
  6319. }
  6320. if (ikMode2 == 15)
  6321. gDogu[index].GetComponent<Renderer>().material.color = new Color(1f, 0.3f, 0.3f, 0.5f);
  6322. if (ikMode2 == 13)
  6323. {
  6324. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  6325. mDogu[index].Update();
  6326. }
  6327. if (ikMode2 == 13)
  6328. {
  6329. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && (bool) ((Object) gDogu[index]))
  6330. {
  6331. mDogu[index].ido = 5;
  6332. mDogu[index].reset = true;
  6333. }
  6334. else
  6335. {
  6336. gDogu[index].transform.position = doguBObject[index].transform.position;
  6337. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6338. mDogu[index].maid = doguBObject[index];
  6339. mDogu[index].ido = 5;
  6340. }
  6341. }
  6342. else if (ikMode2 == 11)
  6343. {
  6344. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && (bool) ((Object) gDogu[index]))
  6345. {
  6346. mDogu[index].ido = 3;
  6347. mDogu[index].reset = true;
  6348. }
  6349. else
  6350. {
  6351. gDogu[index].transform.position = doguBObject[index].transform.position;
  6352. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6353. mDogu[index].maid = doguBObject[index];
  6354. mDogu[index].ido = 3;
  6355. }
  6356. }
  6357. else if (ikMode2 == 12)
  6358. {
  6359. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && (bool) ((Object) gDogu[index]))
  6360. {
  6361. mDogu[index].ido = 2;
  6362. mDogu[index].reset = true;
  6363. }
  6364. else
  6365. {
  6366. gDogu[index].transform.position = doguBObject[index].transform.position;
  6367. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6368. mDogu[index].maid = doguBObject[index];
  6369. mDogu[index].ido = 2;
  6370. }
  6371. }
  6372. else if (ikMode2 == 10)
  6373. {
  6374. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && (bool) ((Object) gDogu[index]))
  6375. {
  6376. mDogu[index].ido = 1;
  6377. mDogu[index].reset = true;
  6378. }
  6379. else
  6380. {
  6381. gDogu[index].transform.position = doguBObject[index].transform.position;
  6382. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6383. mDogu[index].maid = doguBObject[index];
  6384. mDogu[index].maidArray = doguBObject.ToArray();
  6385. mDogu[index].mArray = ((IEnumerable<MouseDrag6>) mDogu).ToArray<MouseDrag6>();
  6386. mDogu[index].ido = 1;
  6387. }
  6388. }
  6389. else if (ikMode2 == 9)
  6390. {
  6391. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && (bool) ((Object) gDogu[index]))
  6392. {
  6393. mDogu[index].ido = 4;
  6394. mDogu[index].reset = true;
  6395. }
  6396. else
  6397. {
  6398. gDogu[index].transform.position = doguBObject[index].transform.position;
  6399. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6400. mDogu[index].maid = doguBObject[index];
  6401. mDogu[index].ido = 4;
  6402. }
  6403. }
  6404. else if (ikMode2 == 14)
  6405. {
  6406. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && (bool) ((Object) gDogu[index]))
  6407. {
  6408. mDogu[index].ido = 6;
  6409. mDogu[index].reset = true;
  6410. }
  6411. else
  6412. {
  6413. gDogu[index].transform.position = doguBObject[index].transform.position;
  6414. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6415. mDogu[index].maid = doguBObject[index];
  6416. mDogu[index].ido = 6;
  6417. }
  6418. }
  6419. else if (ikMode2 == 15)
  6420. {
  6421. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 15 && (bool) ((Object) gDogu[index]))
  6422. {
  6423. mDogu[index].ido = 7;
  6424. mDogu[index].reset = true;
  6425. }
  6426. else
  6427. {
  6428. gDogu[index].transform.position = doguBObject[index].transform.position;
  6429. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6430. mDogu[index].maid = doguBObject[index];
  6431. mDogu[index].ido = 7;
  6432. }
  6433. }
  6434. }
  6435. }
  6436. ikModeOld2 = ikMode2;
  6437. Vector3 vector3_2 = mainCameraTransform.TransformDirection(Vector3.forward);
  6438. Vector3 vector3_3 = mainCameraTransform.TransformDirection(Vector3.right);
  6439. vector3_1 = mainCameraTransform.TransformDirection(Vector3.up);
  6440. if (Input.GetKeyDown(KeyCode.Y) && this.getModKeyPressing(modKey.Shift))
  6441. {
  6442. keyFlg = true;
  6443. --bgIndex;
  6444. if (bgIndex <= -1)
  6445. bgIndex = bgArray.Length - 1;
  6446. if (!moveBg)
  6447. {
  6448. bg.localScale = new Vector3(1f, 1f, 1f);
  6449. if (bgArray[bgIndex].Length == 36)
  6450. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  6451. else
  6452. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  6453. bgCombo.selectedItemIndex = bgIndex;
  6454. }
  6455. }
  6456. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.E))
  6457. {
  6458. keyFlg = true;
  6459. bg.localScale = new Vector3(bg.localScale.x * 1.005f, bg.localScale.y * 1.005f, bg.localScale.z * 1.005f);
  6460. }
  6461. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.D))
  6462. {
  6463. keyFlg = true;
  6464. bg.localScale = new Vector3(bg.localScale.x * 0.995f, bg.localScale.y * 0.995f, bg.localScale.z * 0.995f);
  6465. }
  6466. else if (Input.GetKey(KeyCode.Y) && Input.GetKeyDown(KeyCode.C))
  6467. {
  6468. keyFlg = true;
  6469. bg.localScale = new Vector3(1f, 1f, 1f);
  6470. }
  6471. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.J))
  6472. {
  6473. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  6474. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  6475. if (Input.GetKey(KeyCode.Y))
  6476. keyFlg = true;
  6477. }
  6478. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.L))
  6479. {
  6480. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  6481. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  6482. if (Input.GetKey(KeyCode.Y))
  6483. keyFlg = true;
  6484. }
  6485. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.J))
  6486. {
  6487. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  6488. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  6489. if (Input.GetKey(KeyCode.Y))
  6490. keyFlg = true;
  6491. }
  6492. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.L))
  6493. {
  6494. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  6495. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  6496. if (Input.GetKey(KeyCode.Y))
  6497. keyFlg = true;
  6498. }
  6499. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I))
  6500. {
  6501. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed;
  6502. if (Input.GetKey(KeyCode.Y))
  6503. keyFlg = true;
  6504. }
  6505. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K))
  6506. {
  6507. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed;
  6508. if (Input.GetKey(KeyCode.Y))
  6509. keyFlg = true;
  6510. }
  6511. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.J))
  6512. {
  6513. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  6514. if (Input.GetKey(KeyCode.Y))
  6515. keyFlg = true;
  6516. }
  6517. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.L))
  6518. {
  6519. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  6520. if (Input.GetKey(KeyCode.Y))
  6521. keyFlg = true;
  6522. }
  6523. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.Alpha0))
  6524. {
  6525. Vector3 position = bg.position;
  6526. position.y -= 0.015f * speed;
  6527. bg.localPosition = position;
  6528. if (Input.GetKey(KeyCode.Y))
  6529. keyFlg = true;
  6530. }
  6531. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.P))
  6532. {
  6533. Vector3 position = bg.position;
  6534. position.y += 0.015f * speed;
  6535. bg.localPosition = position;
  6536. if (Input.GetKey(KeyCode.Y))
  6537. keyFlg = true;
  6538. }
  6539. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.U))
  6540. {
  6541. bg.RotateAround(maidArray[0].transform.position, Vector3.up, 0.7f);
  6542. if (Input.GetKey(KeyCode.Y))
  6543. keyFlg = true;
  6544. }
  6545. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.O))
  6546. {
  6547. bg.RotateAround(maidArray[0].transform.position, Vector3.up, -0.7f);
  6548. if (Input.GetKey(KeyCode.Y))
  6549. keyFlg = true;
  6550. }
  6551. else if (Input.GetKeyUp(KeyCode.Y))
  6552. {
  6553. if (keyFlg)
  6554. {
  6555. keyFlg = false;
  6556. }
  6557. else
  6558. {
  6559. ++bgIndex;
  6560. if (bgIndex == bgArray.Length)
  6561. bgIndex = 0;
  6562. if (!moveBg)
  6563. {
  6564. bg.localScale = new Vector3(1f, 1f, 1f);
  6565. if (bgArray[bgIndex].Length == 36)
  6566. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  6567. else
  6568. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  6569. bgCombo.selectedItemIndex = bgIndex;
  6570. }
  6571. }
  6572. }
  6573. speed = !this.getModKeyPressing(modKey.Shift)
  6574. ? (float) (1.0 * (double) Time.deltaTime * 60.0)
  6575. : (float) (5.0 * (double) Time.deltaTime * 60.0);
  6576. if (!isVR || isVR2)
  6577. {
  6578. if (!isVR)
  6579. {
  6580. if (isBloom)
  6581. {
  6582. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  6583. fieldValue.enabled = true;
  6584. fieldValue.bloomIntensity = bloom1;
  6585. fieldValue.bloomBlurIterations = (int) bloom2;
  6586. fieldValue.bloomThreshholdColor = new Color(1f - bloom3, 1f - bloom4, 1f - bloom5);
  6587. fieldValue.hdr = !isBloomA ? Bloom.HDRBloomMode.Auto : Bloom.HDRBloomMode.On;
  6588. isBloom2 = true;
  6589. }
  6590. else if (isBloom2)
  6591. {
  6592. isBloom2 = false;
  6593. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  6594. fieldValue.enabled = true;
  6595. fieldValue.bloomIntensity = 2.85f;
  6596. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  6597. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  6598. fieldValue.bloomBlurIterations = 3;
  6599. }
  6600. if (isDepth)
  6601. {
  6602. depth_field_.enabled = true;
  6603. depth_field_.focalLength = depth1;
  6604. depth_field_.focalSize = depth2;
  6605. depth_field_.aperture = depth3;
  6606. depth_field_.maxBlurSize = depth4;
  6607. depth_field_.visualizeFocus = isDepthA;
  6608. }
  6609. else
  6610. {
  6611. if ((Object) depth_field_ == (Object) null)
  6612. {
  6613. depth_field_ = GameMain.Instance.MainCamera.gameObject.AddComponent<DepthOfFieldScatter>();
  6614. if ((Object) depth_field_.dofHdrShader == (Object) null)
  6615. depth_field_.dofHdrShader = Shader.Find("Hidden/Dof/DepthOfFieldHdr");
  6616. if ((Object) depth_field_.dx11BokehShader == (Object) null)
  6617. depth_field_.dx11BokehShader = Shader.Find("Hidden/Dof/DX11Dof");
  6618. if ((Object) depth_field_.dx11BokehTexture == (Object) null)
  6619. depth_field_.dx11BokehTexture = Resources.Load("Textures/hexShape") as Texture2D;
  6620. }
  6621. depth_field_.enabled = false;
  6622. }
  6623. if (isFog)
  6624. {
  6625. if ((Object) fog_.fogShader == (Object) null)
  6626. fog_.fogShader = Shader.Find("Hidden/GlobalFog");
  6627. fog_.enabled = true;
  6628. fog_.startDistance = fog1;
  6629. fog_.globalDensity = fog2;
  6630. fog_.heightScale = fog3;
  6631. fog_.height = fog4;
  6632. fog_.globalFogColor.r = fog5;
  6633. fog_.globalFogColor.g = fog6;
  6634. fog_.globalFogColor.b = fog7;
  6635. }
  6636. else
  6637. {
  6638. if ((Object) fog_ == (Object) null)
  6639. fog_ = GameMain.Instance.MainCamera.gameObject.AddComponent<GlobalFog>();
  6640. fog_.enabled = false;
  6641. }
  6642. if (isSepia)
  6643. {
  6644. if ((Object) sepia_tone_.shader == (Object) null)
  6645. sepia_tone_.shader = Shader.Find("Hidden/Sepiatone Effect");
  6646. sepia_tone_.enabled = true;
  6647. }
  6648. else
  6649. {
  6650. if ((Object) sepia_tone_ == (Object) null)
  6651. sepia_tone_ = GameMain.Instance.MainCamera.gameObject.AddComponent<SepiaToneEffect>();
  6652. sepia_tone_.enabled = false;
  6653. }
  6654. if ((double) bokashi > 0.0)
  6655. {
  6656. Blur component = GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>();
  6657. component.enabled = true;
  6658. component.blurSize = bokashi / 10f;
  6659. component.blurIterations = 0;
  6660. component.downsample = 0;
  6661. if ((double) bokashi > 3.0)
  6662. {
  6663. component.blurSize -= 0.3f;
  6664. component.blurIterations = 1;
  6665. component.downsample = 1;
  6666. }
  6667. }
  6668. else
  6669. GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>().enabled = false;
  6670. if ((double) kamiyure > 0.0)
  6671. {
  6672. for (int index1 = 0; index1 < maidCnt; ++index1)
  6673. {
  6674. Maid maid = maidArray[index1];
  6675. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6676. {
  6677. if ((Object) maid.body0.goSlot[index2].obj != (Object) null)
  6678. {
  6679. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  6680. if ((Object) component != (Object) null && component.enabled)
  6681. component.m_Gravity = new Vector3(softG.x * 5f, softG.y * 5f + kamiyure, softG.z * 5f);
  6682. }
  6683. List<THair1> fieldValue =
  6684. GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
  6685. for (int index3 = 0; index3 < fieldValue.Count; ++index3)
  6686. fieldValue[index3].SoftG = new Vector3(softG.x, softG.y + kamiyure, softG.z);
  6687. }
  6688. }
  6689. }
  6690. if (isBlur)
  6691. {
  6692. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  6693. component.mode = Vignetting.AberrationMode.Simple;
  6694. component.intensity = blur1;
  6695. component.chromaticAberration = blur4;
  6696. component.blur = blur2;
  6697. component.blurSpread = blur3;
  6698. component.enabled = true;
  6699. isBlur2 = true;
  6700. }
  6701. else if (isBlur2)
  6702. {
  6703. isBlur2 = false;
  6704. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  6705. component.mode = Vignetting.AberrationMode.Simple;
  6706. component.intensity = -3.98f;
  6707. component.chromaticAberration = -0.75f;
  6708. component.axialAberration = 1.18f;
  6709. component.blurSpread = 4.19f;
  6710. component.luminanceDependency = 0.494f;
  6711. component.blurDistance = 1.71f;
  6712. component.enabled = false;
  6713. }
  6714. }
  6715. if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.I))
  6716. {
  6717. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  6718. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6719. }
  6720. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.K))
  6721. {
  6722. if ((double) GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  6723. {
  6724. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  6725. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6726. }
  6727. }
  6728. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.J))
  6729. {
  6730. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  6731. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  6732. }
  6733. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.L))
  6734. {
  6735. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  6736. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  6737. }
  6738. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  6739. {
  6740. GameMain.Instance.MainLight.Reset();
  6741. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6742. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6743. lightIndex[0] = 0;
  6744. lightColorR[0] = 1f;
  6745. lightColorG[0] = 1f;
  6746. lightColorB[0] = 1f;
  6747. lightX[0] = 40f;
  6748. lightY[0] = 180f;
  6749. lightAkarusa[0] = 0.95f;
  6750. lightKage[0] = 0.098f;
  6751. lightRange[0] = 50f;
  6752. bgObject.SetActive(true);
  6753. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  6754. isIdx1 = false;
  6755. isIdx2 = false;
  6756. isIdx3 = false;
  6757. isIdx4 = false;
  6758. }
  6759. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus) && this.getModKeyPressing(modKey.Shift))
  6760. {
  6761. List<float> lightColorR;
  6762. (lightColorR = this.lightColorR)[0] = lightColorR[0] + 0.01f;
  6763. if ((double) this.lightColorR[0] > 1.0)
  6764. this.lightColorR[0] = 1f;
  6765. if (lightIndex[0] != 3)
  6766. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6767. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6768. else
  6769. mainCamera.GetComponent<Camera>().backgroundColor =
  6770. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6771. }
  6772. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote) && this.getModKeyPressing(modKey.Shift))
  6773. {
  6774. List<float> lightColorG;
  6775. (lightColorG = this.lightColorG)[0] = lightColorG[0] + 0.01f;
  6776. if ((double) this.lightColorG[0] > 1.0)
  6777. this.lightColorG[0] = 1f;
  6778. if (lightIndex[0] != 3)
  6779. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6780. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6781. else
  6782. mainCamera.GetComponent<Camera>().backgroundColor =
  6783. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6784. }
  6785. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket) && this.getModKeyPressing(modKey.Shift))
  6786. {
  6787. List<float> lightColorB;
  6788. (lightColorB = this.lightColorB)[0] = lightColorB[0] + 0.01f;
  6789. if ((double) this.lightColorB[0] > 1.0)
  6790. this.lightColorB[0] = 1f;
  6791. if (lightIndex[0] != 3)
  6792. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6793. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6794. else
  6795. mainCamera.GetComponent<Camera>().backgroundColor =
  6796. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6797. }
  6798. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus))
  6799. {
  6800. List<float> lightColorR;
  6801. (lightColorR = this.lightColorR)[0] = lightColorR[0] - 0.01f;
  6802. if ((double) this.lightColorR[0] < 0.0)
  6803. this.lightColorR[0] = 0.0f;
  6804. if (lightIndex[0] != 3)
  6805. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6806. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6807. else
  6808. mainCamera.GetComponent<Camera>().backgroundColor =
  6809. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6810. }
  6811. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6812. {
  6813. List<float> lightColorG;
  6814. (lightColorG = this.lightColorG)[0] = lightColorG[0] - 0.01f;
  6815. if ((double) this.lightColorG[0] < 0.0)
  6816. this.lightColorG[0] = 0.0f;
  6817. if (lightIndex[0] != 3)
  6818. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6819. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6820. else
  6821. mainCamera.GetComponent<Camera>().backgroundColor =
  6822. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6823. }
  6824. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6825. {
  6826. List<float> lightColorB;
  6827. (lightColorB = this.lightColorB)[0] = lightColorB[0] - 0.01f;
  6828. if ((double) this.lightColorB[0] < 0.0)
  6829. this.lightColorB[0] = 0.0f;
  6830. if (lightIndex[0] != 3)
  6831. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6832. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6833. else
  6834. mainCamera.GetComponent<Camera>().backgroundColor =
  6835. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6836. }
  6837. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha0))
  6838. {
  6839. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.12f * Time.deltaTime;
  6840. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  6841. }
  6842. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.P))
  6843. {
  6844. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.12f * Time.deltaTime;
  6845. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  6846. }
  6847. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha9))
  6848. {
  6849. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  6850. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  6851. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  6852. }
  6853. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.O))
  6854. {
  6855. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  6856. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  6857. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  6858. }
  6859. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.U))
  6860. {
  6861. List<int> lightIndex;
  6862. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6863. if (this.lightIndex[0] == 4)
  6864. this.lightIndex[0] = 0;
  6865. lightColorR[0] = 1f;
  6866. lightColorG[0] = 1f;
  6867. lightColorB[0] = 1f;
  6868. lightX[0] = 40f;
  6869. lightY[0] = 180f;
  6870. lightAkarusa[0] = 0.95f;
  6871. lightKage[0] = 0.098f;
  6872. lightRange[0] = 50f;
  6873. GameMain.Instance.MainLight.Reset();
  6874. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6875. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  6876. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  6877. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6878. if (this.lightIndex[0] == 0)
  6879. {
  6880. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6881. bgObject.SetActive(true);
  6882. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  6883. }
  6884. else if (this.lightIndex[0] == 1)
  6885. {
  6886. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6887. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6888. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  6889. if ((Object) gLight[0] == (Object) null)
  6890. {
  6891. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  6892. gLight[0].GetComponent<Renderer>().material =
  6893. new Material(Shader.Find("Transparent/Diffuse")) {color = new Color(0.5f, 0.5f, 1f, 0.8f)};
  6894. gLight[0].layer = 8;
  6895. gLight[0].GetComponent<Renderer>().enabled = false;
  6896. gLight[0].SetActive(false);
  6897. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  6898. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  6899. mLight[0].obj = gLight[0];
  6900. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  6901. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  6902. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  6903. mLight[0].ido = 1;
  6904. mLight[0].isScale = false;
  6905. }
  6906. }
  6907. else if (this.lightIndex[0] == 2)
  6908. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  6909. else if (this.lightIndex[0] == 3)
  6910. {
  6911. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6912. mainCamera.GetComponent<Camera>().backgroundColor =
  6913. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6914. bgObject.SetActive(false);
  6915. }
  6916. isIdx1 = false;
  6917. isIdx2 = false;
  6918. isIdx3 = false;
  6919. isIdx4 = false;
  6920. }
  6921. }
  6922. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Insert))
  6923. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  6924. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Delete))
  6925. {
  6926. if ((double) GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  6927. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  6928. }
  6929. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Home))
  6930. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  6931. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.End))
  6932. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  6933. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  6934. {
  6935. GameMain.Instance.MainLight.Reset();
  6936. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6937. }
  6938. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageUp))
  6939. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.1f * Time.deltaTime;
  6940. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageDown))
  6941. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.1f * Time.deltaTime;
  6942. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6943. {
  6944. if (lightIndex[0] == 1)
  6945. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  6946. else
  6947. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  6948. }
  6949. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6950. {
  6951. if (lightIndex[0] == 1)
  6952. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  6953. else
  6954. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  6955. }
  6956. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.Minus))
  6957. {
  6958. List<int> lightIndex;
  6959. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6960. if (this.lightIndex[0] == 3)
  6961. this.lightIndex[0] = 0;
  6962. GameMain.Instance.MainLight.Reset();
  6963. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6964. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  6965. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  6966. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6967. if (this.lightIndex[0] == 0)
  6968. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  6969. else if (this.lightIndex[0] == 1)
  6970. {
  6971. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6972. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  6973. }
  6974. else if (this.lightIndex[0] == 2)
  6975. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  6976. }
  6977. for (int index = 0; index < lightList.Count; ++index)
  6978. {
  6979. if (index > 0)
  6980. {
  6981. lightList[index].GetComponent<Light>().color =
  6982. new Color(lightColorR[index], lightColorG[index], lightColorB[index]);
  6983. lightList[index].GetComponent<Light>().intensity = lightAkarusa[index];
  6984. lightList[index].GetComponent<Light>().spotAngle = lightRange[index];
  6985. lightList[index].GetComponent<Light>().range = lightRange[index] / 5f;
  6986. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(modKey.Shift)))
  6987. lightList[index].transform.eulerAngles = new Vector3(lightX[index], lightY[index], 18f);
  6988. }
  6989. else
  6990. {
  6991. GameMain.Instance.MainLight.SetIntensity(lightAkarusa[0]);
  6992. GameMain.Instance.MainLight.GetComponent<Light>().shadowStrength = lightKage[0];
  6993. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(modKey.Shift)))
  6994. GameMain.Instance.MainLight.SetRotation(new Vector3(lightX[0], lightY[0], 18f));
  6995. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = lightRange[index];
  6996. GameMain.Instance.MainLight.GetComponent<Light>().range = lightRange[index] / 5f;
  6997. if (lightIndex[index] != 3)
  6998. GameMain.Instance.MainLight.GetComponent<Light>().color =
  6999. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  7000. else
  7001. mainCamera.GetComponent<Camera>().backgroundColor =
  7002. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  7003. }
  7004. }
  7005. }
  7006. if (isF6S)
  7007. {
  7008. if (maidCnt < 1)
  7009. ++F6cnt;
  7010. if (F6cnt > 10)
  7011. {
  7012. maidCnt = 1;
  7013. F6cnt = 0;
  7014. }
  7015. for (int index1 = 0; index1 < maidCnt; ++index1)
  7016. {
  7017. if ((bool) ((Object) maidArray[index1]) && maidArray[index1].Visible && maidArray[index1].body0.isLoadedBody)
  7018. {
  7019. Maid maid = maidArray[index1];
  7020. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  7021. {
  7022. if (maid.body0.goSlot[index2].bonehair.bodyhit != null
  7023. && maid.body0.goSlot[index2].bonehair.bodyhit.spherelist.Count == 17 && (index2 == 3 || index2 == 4))
  7024. {
  7025. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine", true);
  7026. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine0a", true);
  7027. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1", true);
  7028. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1a", true);
  7029. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Pelvis", true);
  7030. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Hand", true);
  7031. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L UpperArm", true);
  7032. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Forearm", true);
  7033. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Hand", true);
  7034. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R UpperArm", true);
  7035. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Forearm", true);
  7036. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Foot", true);
  7037. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Thigh", true);
  7038. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Calf", true);
  7039. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Foot", true);
  7040. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Thigh", true);
  7041. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Calf", true);
  7042. List<THitSphere> spherelist = maid.body0.goSlot[index2].bonehair.bodyhit.spherelist;
  7043. THitSphere thitSphere1 = new THitSphere();
  7044. THitSphere thitSphere2 = spherelist[0];
  7045. THitSphere thitSphere3 = new THitSphere();
  7046. thitSphere3.wv = thitSphere2.wv;
  7047. thitSphere3.len = thitSphere2.len * 0.8f;
  7048. thitSphere3.t = thitSphere2.t;
  7049. thitSphere3.vs = thitSphere2.vs;
  7050. thitSphere3.vs.y -= 0.04f;
  7051. thitSphere3.vs.x += 0.05f;
  7052. spherelist.Add(thitSphere3);
  7053. THitSphere thitSphere4 = new THitSphere();
  7054. thitSphere4.len = 0.09f;
  7055. thitSphere4.t = transform4;
  7056. thitSphere4.vs.z += 0.04f;
  7057. thitSphere4.vs.x -= 0.04f;
  7058. thitSphere4.vs.y -= 0.01f;
  7059. spherelist.Add(thitSphere4);
  7060. THitSphere thitSphere5 = new THitSphere();
  7061. thitSphere5.len = 0.09f;
  7062. thitSphere5.t = transform4;
  7063. thitSphere5.vs.z -= 0.04f;
  7064. thitSphere5.vs.x -= 0.04f;
  7065. thitSphere5.vs.y -= 0.01f;
  7066. spherelist.Add(thitSphere5);
  7067. THitSphere thitSphere6 = new THitSphere();
  7068. thitSphere6.len = 0.09f;
  7069. thitSphere6.t = transform3;
  7070. thitSphere6.vs.z += 0.035f;
  7071. spherelist.Add(thitSphere6);
  7072. THitSphere thitSphere7 = new THitSphere();
  7073. thitSphere7.len = 0.09f;
  7074. thitSphere7.t = transform3;
  7075. thitSphere7.vs.z -= 0.035f;
  7076. spherelist.Add(thitSphere7);
  7077. THitSphere thitSphere8 = new THitSphere();
  7078. thitSphere8.len = 0.08f;
  7079. thitSphere8.t = transform2;
  7080. thitSphere8.vs.z += 0.035f;
  7081. spherelist.Add(thitSphere8);
  7082. THitSphere thitSphere9 = new THitSphere();
  7083. thitSphere9.len = 0.08f;
  7084. thitSphere9.t = transform2;
  7085. thitSphere9.vs.z -= 0.035f;
  7086. spherelist.Add(thitSphere9);
  7087. THitSphere thitSphere10 = new THitSphere();
  7088. thitSphere10.len = 0.09f;
  7089. thitSphere10.t = transform1;
  7090. thitSphere10.vs.z += 0.04f;
  7091. thitSphere10.vs.y -= 0.02f;
  7092. spherelist.Add(thitSphere10);
  7093. THitSphere thitSphere11 = new THitSphere();
  7094. thitSphere11.len = 0.09f;
  7095. thitSphere11.t = transform1;
  7096. thitSphere11.vs.z -= 0.04f;
  7097. thitSphere11.vs.y -= 0.02f;
  7098. spherelist.Add(thitSphere11);
  7099. THitSphere thitSphere12 = new THitSphere();
  7100. thitSphere12.len = 0.11f;
  7101. thitSphere12.t = transform5;
  7102. thitSphere12.vs.z += 0.05f;
  7103. thitSphere12.vs.y -= 0.03f;
  7104. spherelist.Add(thitSphere12);
  7105. THitSphere thitSphere13 = new THitSphere();
  7106. thitSphere13.len = 0.11f;
  7107. thitSphere13.t = transform5;
  7108. thitSphere13.vs.z -= 0.05f;
  7109. thitSphere13.vs.y -= 0.03f;
  7110. spherelist.Add(thitSphere13);
  7111. THitSphere thitSphere14 = new THitSphere();
  7112. thitSphere14.len = 0.11f;
  7113. thitSphere14.t = transform10;
  7114. thitSphere14.vs.x -= 0.03f;
  7115. spherelist.Add(thitSphere14);
  7116. THitSphere thitSphere15 = new THitSphere();
  7117. thitSphere15.len = 0.11f;
  7118. thitSphere15.t = transform11;
  7119. thitSphere15.vs.x -= 0.03f;
  7120. spherelist.Add(thitSphere15);
  7121. spherelist.Add(new THitSphere() {len = 0.05f, t = transform6});
  7122. spherelist.Add(new THitSphere() {len = 0.05f, t = transform8});
  7123. THitSphere thitSphere16 = new THitSphere();
  7124. thitSphere16.len = 0.05f;
  7125. thitSphere16.t = transform7;
  7126. thitSphere16.vs.x -= 0.04f;
  7127. spherelist.Add(thitSphere16);
  7128. THitSphere thitSphere17 = new THitSphere();
  7129. thitSphere17.len = 0.05f;
  7130. thitSphere17.t = transform9;
  7131. thitSphere17.vs.x -= 0.04f;
  7132. spherelist.Add(thitSphere17);
  7133. THitSphere thitSphere18 = new THitSphere();
  7134. thitSphere18.len = 0.05f;
  7135. thitSphere18.t = transform7;
  7136. thitSphere18.vs.x -= 0.08f;
  7137. spherelist.Add(thitSphere18);
  7138. THitSphere thitSphere19 = new THitSphere();
  7139. thitSphere19.len = 0.05f;
  7140. thitSphere19.t = transform9;
  7141. thitSphere19.vs.x -= 0.08f;
  7142. spherelist.Add(thitSphere19);
  7143. THitSphere thitSphere20 = new THitSphere();
  7144. thitSphere20.len = 0.05f;
  7145. thitSphere20.t = transform7;
  7146. thitSphere20.vs.x -= 0.12f;
  7147. spherelist.Add(thitSphere20);
  7148. THitSphere thitSphere21 = new THitSphere();
  7149. thitSphere21.len = 0.05f;
  7150. thitSphere21.t = transform9;
  7151. thitSphere21.vs.x -= 0.12f;
  7152. spherelist.Add(thitSphere21);
  7153. THitSphere thitSphere22 = new THitSphere();
  7154. thitSphere22.len = 0.05f;
  7155. thitSphere22.t = transform7;
  7156. thitSphere22.vs.x -= 0.16f;
  7157. spherelist.Add(thitSphere22);
  7158. THitSphere thitSphere23 = new THitSphere();
  7159. thitSphere23.len = 0.05f;
  7160. thitSphere23.t = transform9;
  7161. thitSphere23.vs.x -= 0.16f;
  7162. spherelist.Add(thitSphere23);
  7163. }
  7164. }
  7165. }
  7166. }
  7167. }
  7168. }
  7169. }
  7170. }
  7171. }