MultipleMaids.Update.cs 452 KB

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