MultipleMaids.Update.cs 454 KB

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