MultipleMaids.Update.cs 452 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500
  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. mainCamera.transform.eulerAngles = new Vector3(float.Parse(strArray3[31]), float.Parse(strArray3[32]), float.Parse(strArray3[33]));
  3293. if (int.Parse(strArray3[34]) == 1)
  3294. {
  3295. inName = strArray3[35];
  3296. inText = strArray3[36];
  3297. inText = inText.Replace("&kaigyo", "\n");
  3298. isMessage = true;
  3299. bGuiMessage = false;
  3300. GameObject gameObject =
  3301. GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  3302. MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
  3303. messageWindowMgr.OpenMessageWindowPanel();
  3304. MessageClass messageClass = new MessageClass(gameObject, messageWindowMgr);
  3305. messageClass.SetText(inName, inText, "", 0, AudioSourceMgr.Type.System);
  3306. messageClass.FinishChAnime();
  3307. }
  3308. else if (isMessage)
  3309. {
  3310. isMessage = false;
  3311. GameObject gameObject =
  3312. GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  3313. GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr.CloseMessageWindowPanel();
  3314. }
  3315. }
  3316. }
  3317. if (strArray3.Length > 37 && strArray3[37] != "")
  3318. {
  3319. if (doguSelectIndex == doguObject.Count)
  3320. {
  3321. doguIndex.Add(0);
  3322. }
  3323. else if (doguObject.Count > 0 && doguObject[doguSelectIndex] != null)
  3324. {
  3325. GraphicsUtils.Destroy(doguObject[doguSelectIndex]);
  3326. doguObject.RemoveAt(doguSelectIndex);
  3327. }
  3328. else
  3329. {
  3330. doguIndex.Add(0);
  3331. doguSelectIndex = doguIndex.Count - 1;
  3332. }
  3333. string str = strArray3[37].Replace(" ", "_");
  3334. for (int index = 0; index < doguArray.Length; ++index)
  3335. {
  3336. if (str == doguArray[index])
  3337. {
  3338. doguIndex[doguSelectIndex] = index;
  3339. break;
  3340. }
  3341. }
  3342. if (!doguArray[doguIndex[doguSelectIndex]].StartsWith("mirror"))
  3343. {
  3344. Object original = null;
  3345. for (int index = 0; index < 5; ++index)
  3346. {
  3347. original = Resources.Load("Prefab/" + doguArray[doguIndex[doguSelectIndex]]);
  3348. if (original == null)
  3349. {
  3350. List<int> doguIndex;
  3351. int doguSelectIndex;
  3352. (doguIndex = this.doguIndex)[doguSelectIndex = this.doguSelectIndex] = doguIndex[doguSelectIndex] + 1;
  3353. }
  3354. else
  3355. {
  3356. break;
  3357. }
  3358. }
  3359. doguObject.Add(Instantiate(original) as GameObject);
  3360. }
  3361. else
  3362. {
  3363. Material material = new Material(Shader.Find("Mirror"));
  3364. GameObject primitive = GameObject.CreatePrimitive(PrimitiveType.Plane);
  3365. primitive.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  3366. primitive.GetComponent<Renderer>().material = material;
  3367. primitive.AddComponent<MirrorReflection2>();
  3368. MirrorReflection2 component = primitive.GetComponent<MirrorReflection2>();
  3369. component.m_TextureSize = 2048;
  3370. component.m_ClipPlaneOffset = 0.0f;
  3371. primitive.GetComponent<Renderer>().enabled = true;
  3372. doguObject.Add(primitive);
  3373. }
  3374. Vector3 zero1 = Vector3.zero;
  3375. Vector3 zero2 = Vector3.zero;
  3376. zero2.x = -90f;
  3377. switch (doguIndex[doguSelectIndex])
  3378. {
  3379. case 1:
  3380. zero1.z = -0.5f;
  3381. break;
  3382. case 2:
  3383. zero1.z = -0.5f;
  3384. break;
  3385. case 3:
  3386. zero1.z = 0.5f;
  3387. zero2.z = 90f;
  3388. break;
  3389. case 4:
  3390. zero1.z = 0.9f;
  3391. break;
  3392. case 5:
  3393. zero1.z = 0.9f;
  3394. break;
  3395. case 6:
  3396. zero1.z = 0.6f;
  3397. zero2.x = 0.0f;
  3398. doguObject[doguSelectIndex].transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  3399. break;
  3400. case 7:
  3401. zero1.z = 0.6f;
  3402. doguObject[doguSelectIndex].transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  3403. break;
  3404. case 8:
  3405. zero1.z = 0.5f;
  3406. zero2.x = 0.0f;
  3407. break;
  3408. case 9:
  3409. zero1.z = 0.32f;
  3410. zero2.z = 180f;
  3411. break;
  3412. case 10:
  3413. zero1.z = 0.6f;
  3414. break;
  3415. case 11:
  3416. zero1.z = 0.6f;
  3417. break;
  3418. case 12:
  3419. zero1.z = 0.5f;
  3420. zero2.z = 180f;
  3421. break;
  3422. case 13:
  3423. zero1.z = 0.7f;
  3424. zero2.z = 180f;
  3425. break;
  3426. case 14:
  3427. zero1.z = -0.4f;
  3428. break;
  3429. case 15:
  3430. zero1.z = -0.4f;
  3431. break;
  3432. case 16:
  3433. zero1.z = -0.4f;
  3434. zero2.z = 180f;
  3435. break;
  3436. case 17:
  3437. zero1.z = -0.4f;
  3438. break;
  3439. case 18:
  3440. zero1.z = -0.2f;
  3441. break;
  3442. case 19:
  3443. zero1.z = 0.0f;
  3444. break;
  3445. case 20:
  3446. zero1.z = 3.4f;
  3447. zero1.x = -1f;
  3448. break;
  3449. case 21:
  3450. zero1.z = 3.4f;
  3451. zero1.x = -1f;
  3452. break;
  3453. case 22:
  3454. zero1.z = 3.4f;
  3455. zero1.y = 0.3f;
  3456. zero1.x = -1f;
  3457. break;
  3458. case 23:
  3459. zero1.z = 2.7f;
  3460. zero1.x = 0.77f;
  3461. zero2.z = 90f;
  3462. break;
  3463. case 25:
  3464. zero1.z = 0.5f;
  3465. zero1.y = 0.9f;
  3466. zero2.z = 180f;
  3467. break;
  3468. case 26:
  3469. zero1.z = 0.5f;
  3470. zero1.y = 0.9f;
  3471. zero2.z = 180f;
  3472. break;
  3473. case 29:
  3474. zero1.z = 0.5f;
  3475. zero1.x = -1.05f;
  3476. break;
  3477. case 30:
  3478. zero1.z = 0.0f;
  3479. zero2.z = 0.0f;
  3480. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.75f, 0.75f, 0.75f);
  3481. break;
  3482. case 31:
  3483. zero1.z = -0.6f;
  3484. zero1.y = 0.96f;
  3485. zero2.z = 180f;
  3486. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  3487. break;
  3488. case 32:
  3489. zero1.z = -0.6f;
  3490. zero1.y = 0.96f;
  3491. zero2.z = 180f;
  3492. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  3493. break;
  3494. case 33:
  3495. zero1.z = -0.6f;
  3496. zero1.y = 0.85f;
  3497. zero2.z = 180f;
  3498. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  3499. break;
  3500. default:
  3501. zero1.z = 0.5f;
  3502. break;
  3503. }
  3504. doguObject[doguSelectIndex].transform.localPosition = zero1;
  3505. doguObject[doguSelectIndex].transform.localRotation = Quaternion.Euler(zero2);
  3506. doguObject[doguSelectIndex].transform.localEulerAngles =
  3507. new Vector3(float.Parse(strArray3[38]), float.Parse(strArray3[39]), float.Parse(strArray3[40]));
  3508. doguObject[doguSelectIndex].transform.position =
  3509. new Vector3(float.Parse(strArray3[41]), float.Parse(strArray3[42]), float.Parse(strArray3[43]));
  3510. doguObject[doguSelectIndex].transform.localScale =
  3511. new Vector3(float.Parse(strArray3[44]), float.Parse(strArray3[45]), float.Parse(strArray3[46]));
  3512. }
  3513. if (!kankyoLoadFlg)
  3514. {
  3515. for (int i = 0; i < strArray2.Length && maidCnt > i; ++i)
  3516. {
  3517. Maid maid = maidArray[i];
  3518. if (maid && maid.Visible)
  3519. {
  3520. SetIK(maid, i);
  3521. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  3522. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  3523. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  3524. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  3525. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  3526. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  3527. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  3528. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  3529. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  3530. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  3531. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  3532. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  3533. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  3534. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  3535. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  3536. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  3537. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  3538. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  3539. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  3540. string[] strArray8 = strArray2[i].Split(':');
  3541. for (int index = 0; index < 40; ++index)
  3542. {
  3543. string[] strArray9 = strArray8[index].Split(',');
  3544. Finger[i, index].localEulerAngles =
  3545. new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3546. }
  3547. bool flag1 = false;
  3548. if (strArray8.Length == 64)
  3549. {
  3550. flag1 = true;
  3551. }
  3552. if (!isVR)
  3553. {
  3554. maid.body0.quaDefEyeL.eulerAngles = eyeL[(int)selectList[i]];
  3555. maid.body0.quaDefEyeR.eulerAngles = eyeR[(int)selectList[i]];
  3556. }
  3557. for (int index1 = 0; index1 < 3; ++index1)
  3558. {
  3559. for (int index2 = 40; index2 < strArray8.Length; ++index2)
  3560. {
  3561. string[] strArray9 = strArray8[index2].Split(',');
  3562. switch (index2)
  3563. {
  3564. case 40:
  3565. if (flag1)
  3566. {
  3567. Spine.localEulerAngles =
  3568. new Vector3(float.Parse(strArray9[0]),
  3569. float.Parse(strArray9[1]),
  3570. float.Parse(strArray9[2]));
  3571. }
  3572. if (!flag1)
  3573. {
  3574. Spine.eulerAngles = new Vector3(float.Parse(strArray9[0]),
  3575. float.Parse(strArray9[1]),
  3576. float.Parse(strArray9[2]));
  3577. break;
  3578. }
  3579. break;
  3580. case 41:
  3581. if (flag1)
  3582. {
  3583. Spine0a.localEulerAngles =
  3584. new Vector3(float.Parse(strArray9[0]),
  3585. float.Parse(strArray9[1]),
  3586. float.Parse(strArray9[2]));
  3587. }
  3588. if (!flag1)
  3589. {
  3590. Spine0a.eulerAngles =
  3591. new Vector3(float.Parse(strArray9[0]),
  3592. float.Parse(strArray9[1]),
  3593. float.Parse(strArray9[2]));
  3594. break;
  3595. }
  3596. break;
  3597. case 42:
  3598. if (flag1)
  3599. {
  3600. Spine1.localEulerAngles =
  3601. new Vector3(float.Parse(strArray9[0]),
  3602. float.Parse(strArray9[1]),
  3603. float.Parse(strArray9[2]));
  3604. }
  3605. if (!flag1)
  3606. {
  3607. Spine1.eulerAngles = new Vector3(float.Parse(strArray9[0]),
  3608. float.Parse(strArray9[1]),
  3609. float.Parse(strArray9[2]));
  3610. break;
  3611. }
  3612. break;
  3613. case 43:
  3614. if (flag1)
  3615. {
  3616. Spine1a.localEulerAngles =
  3617. new Vector3(float.Parse(strArray9[0]),
  3618. float.Parse(strArray9[1]),
  3619. float.Parse(strArray9[2]));
  3620. }
  3621. if (!flag1)
  3622. {
  3623. Spine1a.eulerAngles =
  3624. new Vector3(float.Parse(strArray9[0]),
  3625. float.Parse(strArray9[1]),
  3626. float.Parse(strArray9[2]));
  3627. break;
  3628. }
  3629. break;
  3630. case 44:
  3631. if (flag1)
  3632. {
  3633. Pelvis.localEulerAngles =
  3634. new Vector3(float.Parse(strArray9[0]),
  3635. float.Parse(strArray9[1]),
  3636. float.Parse(strArray9[2]));
  3637. }
  3638. if (!flag1)
  3639. {
  3640. Pelvis.eulerAngles = new Vector3(float.Parse(strArray9[0]),
  3641. float.Parse(strArray9[1]),
  3642. float.Parse(strArray9[2]));
  3643. break;
  3644. }
  3645. break;
  3646. case 45:
  3647. HandL1[i].localEulerAngles =
  3648. new Vector3(float.Parse(strArray9[0]),
  3649. float.Parse(strArray9[1]),
  3650. float.Parse(strArray9[2]));
  3651. break;
  3652. case 46:
  3653. if (flag1)
  3654. {
  3655. UpperArmL1[i].localEulerAngles =
  3656. new Vector3(float.Parse(strArray9[0]),
  3657. float.Parse(strArray9[1]),
  3658. float.Parse(strArray9[2]));
  3659. }
  3660. if (!flag1)
  3661. {
  3662. UpperArmL1[i].eulerAngles =
  3663. new Vector3(float.Parse(strArray9[0]),
  3664. float.Parse(strArray9[1]),
  3665. float.Parse(strArray9[2]));
  3666. break;
  3667. }
  3668. break;
  3669. case 47:
  3670. if (flag1)
  3671. {
  3672. ForearmL1[i].localEulerAngles =
  3673. new Vector3(float.Parse(strArray9[0]),
  3674. float.Parse(strArray9[1]),
  3675. float.Parse(strArray9[2]));
  3676. }
  3677. if (!flag1)
  3678. {
  3679. ForearmL1[i].eulerAngles =
  3680. new Vector3(float.Parse(strArray9[0]),
  3681. float.Parse(strArray9[1]),
  3682. float.Parse(strArray9[2]));
  3683. break;
  3684. }
  3685. break;
  3686. case 48:
  3687. HandR1[i].localEulerAngles =
  3688. new Vector3(float.Parse(strArray9[0]),
  3689. float.Parse(strArray9[1]),
  3690. float.Parse(strArray9[2]));
  3691. break;
  3692. case 49:
  3693. if (flag1)
  3694. {
  3695. UpperArmR1[i].localEulerAngles =
  3696. new Vector3(float.Parse(strArray9[0]),
  3697. float.Parse(strArray9[1]),
  3698. float.Parse(strArray9[2]));
  3699. }
  3700. if (!flag1)
  3701. {
  3702. UpperArmR1[i].eulerAngles =
  3703. new Vector3(float.Parse(strArray9[0]),
  3704. float.Parse(strArray9[1]),
  3705. float.Parse(strArray9[2]));
  3706. break;
  3707. }
  3708. break;
  3709. case 50:
  3710. if (flag1)
  3711. {
  3712. ForearmR1[i].localEulerAngles =
  3713. new Vector3(float.Parse(strArray9[0]),
  3714. float.Parse(strArray9[1]),
  3715. float.Parse(strArray9[2]));
  3716. }
  3717. if (!flag1)
  3718. {
  3719. ForearmR1[i].eulerAngles =
  3720. new Vector3(float.Parse(strArray9[0]),
  3721. float.Parse(strArray9[1]),
  3722. float.Parse(strArray9[2]));
  3723. break;
  3724. }
  3725. break;
  3726. case 51:
  3727. HandL2[i].localEulerAngles =
  3728. new Vector3(float.Parse(strArray9[0]),
  3729. float.Parse(strArray9[1]),
  3730. float.Parse(strArray9[2]));
  3731. break;
  3732. case 52:
  3733. if (flag1)
  3734. {
  3735. UpperArmL2[i].localEulerAngles =
  3736. new Vector3(float.Parse(strArray9[0]),
  3737. float.Parse(strArray9[1]),
  3738. float.Parse(strArray9[2]));
  3739. }
  3740. if (!flag1)
  3741. {
  3742. UpperArmL2[i].eulerAngles =
  3743. new Vector3(float.Parse(strArray9[0]),
  3744. float.Parse(strArray9[1]),
  3745. float.Parse(strArray9[2]));
  3746. break;
  3747. }
  3748. break;
  3749. case 53:
  3750. if (flag1)
  3751. {
  3752. ForearmL2[i].localEulerAngles =
  3753. new Vector3(float.Parse(strArray9[0]),
  3754. float.Parse(strArray9[1]),
  3755. float.Parse(strArray9[2]));
  3756. }
  3757. if (!flag1)
  3758. {
  3759. ForearmL2[i].eulerAngles =
  3760. new Vector3(float.Parse(strArray9[0]),
  3761. float.Parse(strArray9[1]),
  3762. float.Parse(strArray9[2]));
  3763. break;
  3764. }
  3765. break;
  3766. case 54:
  3767. HandR2[i].localEulerAngles =
  3768. new Vector3(float.Parse(strArray9[0]),
  3769. float.Parse(strArray9[1]),
  3770. float.Parse(strArray9[2]));
  3771. break;
  3772. case 55:
  3773. if (flag1)
  3774. {
  3775. UpperArmR2[i].localEulerAngles =
  3776. new Vector3(float.Parse(strArray9[0]),
  3777. float.Parse(strArray9[1]),
  3778. float.Parse(strArray9[2]));
  3779. }
  3780. if (!flag1)
  3781. {
  3782. UpperArmR2[i].eulerAngles =
  3783. new Vector3(float.Parse(strArray9[0]),
  3784. float.Parse(strArray9[1]),
  3785. float.Parse(strArray9[2]));
  3786. break;
  3787. }
  3788. break;
  3789. case 56:
  3790. if (flag1)
  3791. {
  3792. ForearmR2[i].localEulerAngles =
  3793. new Vector3(float.Parse(strArray9[0]),
  3794. float.Parse(strArray9[1]),
  3795. float.Parse(strArray9[2]));
  3796. }
  3797. if (!flag1)
  3798. {
  3799. ForearmR2[i].eulerAngles =
  3800. new Vector3(float.Parse(strArray9[0]),
  3801. float.Parse(strArray9[1]),
  3802. float.Parse(strArray9[2]));
  3803. break;
  3804. }
  3805. break;
  3806. case 57:
  3807. if (flag1)
  3808. {
  3809. Head.localEulerAngles =
  3810. new Vector3(float.Parse(strArray9[0]),
  3811. float.Parse(strArray9[1]),
  3812. float.Parse(strArray9[2]));
  3813. }
  3814. if (!flag1)
  3815. {
  3816. Head.eulerAngles = new Vector3(float.Parse(strArray9[0]),
  3817. float.Parse(strArray9[1]),
  3818. float.Parse(strArray9[2]));
  3819. break;
  3820. }
  3821. break;
  3822. case 58:
  3823. maid.transform.localEulerAngles =
  3824. new Vector3(float.Parse(strArray9[0]),
  3825. float.Parse(strArray9[1]),
  3826. float.Parse(strArray9[2]));
  3827. break;
  3828. case 59:
  3829. maid.transform.position =
  3830. new Vector3(float.Parse(strArray9[0]),
  3831. float.Parse(strArray9[1]),
  3832. float.Parse(strArray9[2]));
  3833. break;
  3834. case 60:
  3835. maid.transform.localScale =
  3836. new Vector3(float.Parse(strArray9[0]),
  3837. float.Parse(strArray9[1]),
  3838. float.Parse(strArray9[2]));
  3839. break;
  3840. case 63:
  3841. if (index1 <= 0)
  3842. {
  3843. hanten[i] = false;
  3844. hantenn[i] = false;
  3845. TMorph morph = maid.body0.Face.morph;
  3846. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  3847. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  3848. if (!isVR)
  3849. {
  3850. maid.boMabataki = false;
  3851. }
  3852. fieldValue2[(int)morph.hash["eyeclose"]] = float.Parse(strArray9[0]);
  3853. fieldValue2[(int)morph.hash["eyeclose2"]] = float.Parse(strArray9[1]);
  3854. fieldValue2[(int)morph.hash["eyeclose3"]] = float.Parse(strArray9[2]);
  3855. fieldValue2[(int)morph.hash["eyeclose6"]] = float.Parse(strArray9[3]);
  3856. fieldValue1[(int)morph.hash["hitomih"]] = float.Parse(strArray9[4]);
  3857. fieldValue1[(int)morph.hash["hitomis"]] = float.Parse(strArray9[5]);
  3858. fieldValue1[(int)morph.hash["mayuha"]] = float.Parse(strArray9[6]);
  3859. fieldValue1[(int)morph.hash["mayuup"]] = float.Parse(strArray9[7]);
  3860. fieldValue1[(int)morph.hash["mayuv"]] = float.Parse(strArray9[8]);
  3861. fieldValue1[(int)morph.hash["mayuvhalf"]] = float.Parse(strArray9[9]);
  3862. fieldValue1[(int)morph.hash["moutha"]] = float.Parse(strArray9[10]);
  3863. fieldValue1[(int)morph.hash["mouths"]] = float.Parse(strArray9[11]);
  3864. fieldValue1[(int)morph.hash["mouthdw"]] = float.Parse(strArray9[12]);
  3865. fieldValue1[(int)morph.hash["mouthup"]] = float.Parse(strArray9[13]);
  3866. fieldValue1[(int)morph.hash["tangout"]] = float.Parse(strArray9[14]);
  3867. fieldValue1[(int)morph.hash["tangup"]] = float.Parse(strArray9[15]);
  3868. fieldValue1[(int)morph.hash["eyebig"]] = float.Parse(strArray9[16]);
  3869. fieldValue2[(int)morph.hash["eyeclose5"]] = float.Parse(strArray9[17]);
  3870. fieldValue1[(int)morph.hash["mayuw"]] = float.Parse(strArray9[18]);
  3871. fieldValue1[(int)morph.hash["mouthhe"]] = float.Parse(strArray9[19]);
  3872. fieldValue1[(int)morph.hash["mouthc"]] = float.Parse(strArray9[20]);
  3873. fieldValue1[(int)morph.hash["mouthi"]] = float.Parse(strArray9[21]);
  3874. fieldValue1[(int)morph.hash["mouthuphalf"]] = float.Parse(strArray9[22]) + 0.01f;
  3875. isLoadFace[i] = true;
  3876. try
  3877. {
  3878. fieldValue1[(int)morph.hash["tangopen"]] = float.Parse(strArray9[23]);
  3879. }
  3880. catch { }
  3881. if (float.Parse(strArray9[24]) == 1.0)
  3882. {
  3883. fieldValue1[(int)morph.hash["namida"]] = 1f;
  3884. }
  3885. else
  3886. {
  3887. fieldValue1[(int)morph.hash["namida"]] = 0.0f;
  3888. }
  3889. if (float.Parse(strArray9[25]) == 1.0)
  3890. {
  3891. fieldValue1[(int)morph.hash["tear1"]] = 1f;
  3892. }
  3893. else
  3894. {
  3895. fieldValue1[(int)morph.hash["tear1"]] = 0.0f;
  3896. }
  3897. if (float.Parse(strArray9[26]) == 1.0)
  3898. {
  3899. fieldValue1[(int)morph.hash["tear2"]] = 1f;
  3900. }
  3901. else
  3902. {
  3903. fieldValue1[(int)morph.hash["tear2"]] = 0.0f;
  3904. }
  3905. if (float.Parse(strArray9[27]) == 1.0)
  3906. {
  3907. fieldValue1[(int)morph.hash["tear3"]] = 1f;
  3908. }
  3909. else
  3910. {
  3911. fieldValue1[(int)morph.hash["tear3"]] = 0.0f;
  3912. }
  3913. if (float.Parse(strArray9[28]) == 1.0)
  3914. {
  3915. fieldValue1[(int)morph.hash["shock"]] = 1f;
  3916. }
  3917. else
  3918. {
  3919. fieldValue1[(int)morph.hash["shock"]] = 0.0f;
  3920. }
  3921. if (float.Parse(strArray9[29]) == 1.0)
  3922. {
  3923. fieldValue1[(int)morph.hash["yodare"]] = 1f;
  3924. }
  3925. else
  3926. {
  3927. fieldValue1[(int)morph.hash["yodare"]] = 0.0f;
  3928. }
  3929. if (float.Parse(strArray9[30]) == 1.0)
  3930. {
  3931. fieldValue1[(int)morph.hash["hoho"]] = 0.5f;
  3932. }
  3933. else
  3934. {
  3935. fieldValue1[(int)morph.hash["hoho"]] = 0.0f;
  3936. }
  3937. if (float.Parse(strArray9[31]) == 1.0)
  3938. {
  3939. fieldValue1[(int)morph.hash["hoho2"]] = 0.5f;
  3940. }
  3941. else
  3942. {
  3943. fieldValue1[(int)morph.hash["hoho2"]] = 0.0f;
  3944. }
  3945. if (float.Parse(strArray9[32]) == 1.0)
  3946. {
  3947. fieldValue1[(int)morph.hash["hohos"]] = 1f;
  3948. }
  3949. else
  3950. {
  3951. fieldValue1[(int)morph.hash["hohos"]] = 0.0f;
  3952. }
  3953. if (float.Parse(strArray9[33]) == 1.0)
  3954. {
  3955. fieldValue1[(int)morph.hash["hohol"]] = 1f;
  3956. }
  3957. else
  3958. {
  3959. fieldValue1[(int)morph.hash["hohol"]] = 0.0f;
  3960. }
  3961. if (float.Parse(strArray9[34]) == 1.0)
  3962. {
  3963. fieldValue1[(int)morph.hash["toothoff"]] = 1f;
  3964. }
  3965. else
  3966. {
  3967. fieldValue1[(int)morph.hash["toothoff"]] = 0.0f;
  3968. }
  3969. if (strArray9.Length > 35)
  3970. {
  3971. morph.boNoseFook = float.Parse(strArray9[35]) == 1.0;
  3972. }
  3973. isFace[i] = true;
  3974. isFaceInit = true;
  3975. break;
  3976. }
  3977. break;
  3978. case 64:
  3979. if (index1 <= 0 && !isVR)
  3980. {
  3981. if (int.Parse(strArray9[0]) == 1)
  3982. {
  3983. isLook[i] = true;
  3984. lookX[i] = float.Parse(strArray9[1]);
  3985. lookY[i] = float.Parse(strArray9[2]);
  3986. if (maid.body0.offsetLookTarget.x != (double)lookY[i])
  3987. {
  3988. int num = !isLock[i] ? 1 : (lookY[i] >= 0.0 ? 1 : 0);
  3989. maid.body0.offsetLookTarget =
  3990. num != 0
  3991. ? new Vector3(lookY[i], 1f, lookX[i])
  3992. : new Vector3(lookY[i] * 0.6f, 1f, lookX[i]);
  3993. }
  3994. if (lookX[i] != (double)lookXn[i])
  3995. {
  3996. lookXn[i] = lookX[i];
  3997. maid.body0.offsetLookTarget = new Vector3(lookY[i], 1f, lookX[i]);
  3998. }
  3999. if (lookY[i] != (double)lookYn[i])
  4000. {
  4001. lookYn[i] = lookY[i];
  4002. int num = !isLock[i] ? 1 : (lookY[i] >= 0.0 ? 1 : 0);
  4003. maid.body0.offsetLookTarget =
  4004. num != 0
  4005. ? new Vector3(lookY[i], 1f, lookX[i])
  4006. : new Vector3(lookY[i] * 0.6f, 1f, lookX[i]);
  4007. }
  4008. }
  4009. else
  4010. {
  4011. isLook[i] = false;
  4012. }
  4013. if (isLook[i])
  4014. {
  4015. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4016. maid.body0.boHeadToCam = true;
  4017. maid.body0.boEyeToCam = true;
  4018. maid.body0.trsLookTarget = null;
  4019. }
  4020. else
  4021. {
  4022. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4023. maid.body0.boHeadToCam = true;
  4024. maid.body0.boEyeToCam = true;
  4025. }
  4026. break;
  4027. }
  4028. break;
  4029. case 65:
  4030. if (index1 <= 0)
  4031. {
  4032. if (itemIndex[i] != int.Parse(strArray9[0]))
  4033. {
  4034. itemIndex[i] = int.Parse(strArray9[0]);
  4035. if (itemIndex[i] == itemArray.Length - 1)
  4036. {
  4037. itemIndex[i] = 0;
  4038. }
  4039. string[] strArray10 = new string[2];
  4040. string[] strArray11 = itemArray[itemIndex[i]].Split(',');
  4041. if (itemIndex[i] > 13)
  4042. {
  4043. strArray11 = itemArray[itemIndex[i] + 1].Split(',');
  4044. }
  4045. maid.DelProp(MPN.handitem, true);
  4046. maid.DelProp(MPN.accvag, true);
  4047. maid.DelProp(MPN.accanl, true);
  4048. bool flag2 = false;
  4049. if (itemIndex[i] == 12 || itemIndex[i] == 13)
  4050. {
  4051. flag2 = true;
  4052. }
  4053. if (!flag2)
  4054. {
  4055. maid.DelProp(MPN.kousoku_upper, true);
  4056. maid.DelProp(MPN.kousoku_lower, true);
  4057. }
  4058. if (strArray11[0] != "")
  4059. {
  4060. maid.SetProp(strArray11[0], strArray11[1], 0, true, false);
  4061. }
  4062. if (itemIndex[i] == 12)
  4063. {
  4064. string[] strArray12 = itemArray[itemIndex[i] - 1].Split(',');
  4065. maid.SetProp(strArray12[0], strArray12[1], 0, true, false);
  4066. }
  4067. if (itemIndex[i] == 13)
  4068. {
  4069. string[] strArray12 = itemArray[itemIndex[i] + 1].Split(',');
  4070. maid.SetProp(strArray12[0], strArray12[1], 0, true, false);
  4071. }
  4072. if (itemIndex[i] == 23)
  4073. {
  4074. string[] strArray12 = itemArray[itemIndex[i]].Split(',');
  4075. maid.SetProp(strArray12[0], strArray12[1], 0, true, false);
  4076. cafeFlg[i] = true;
  4077. }
  4078. maid.AllProcPropSeqStart();
  4079. }
  4080. IK_hand = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true);
  4081. break;
  4082. }
  4083. break;
  4084. case 66:
  4085. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true).localEulerAngles =
  4086. new Vector3(float.Parse(strArray9[0]),
  4087. float.Parse(strArray9[1]),
  4088. float.Parse(strArray9[2]));
  4089. break;
  4090. case 67:
  4091. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true).localEulerAngles =
  4092. new Vector3(float.Parse(strArray9[0]),
  4093. float.Parse(strArray9[1]),
  4094. float.Parse(strArray9[2]));
  4095. break;
  4096. case 68:
  4097. if (strArray9.Length >= 2)
  4098. {
  4099. ClavicleL1[i].eulerAngles =
  4100. new Vector3(float.Parse(strArray9[0]),
  4101. float.Parse(strArray9[1]),
  4102. float.Parse(strArray9[2]));
  4103. break;
  4104. }
  4105. break;
  4106. case 69:
  4107. ClavicleR1[i].eulerAngles =
  4108. new Vector3(float.Parse(strArray9[0]),
  4109. float.Parse(strArray9[1]),
  4110. float.Parse(strArray9[2]));
  4111. break;
  4112. case 70:
  4113. if (int.Parse(strArray9[0]) == 1)
  4114. {
  4115. hanten[i] = true;
  4116. hantenn[i] = true;
  4117. break;
  4118. }
  4119. break;
  4120. case 71:
  4121. transform1.eulerAngles =
  4122. new Vector3(float.Parse(strArray9[0]),
  4123. float.Parse(strArray9[1]),
  4124. float.Parse(strArray9[2]));
  4125. break;
  4126. case 72:
  4127. transform2.localEulerAngles =
  4128. new Vector3(float.Parse(strArray9[0]),
  4129. float.Parse(strArray9[1]),
  4130. float.Parse(strArray9[2]));
  4131. break;
  4132. case 73:
  4133. transform3.localEulerAngles =
  4134. new Vector3(float.Parse(strArray9[0]),
  4135. float.Parse(strArray9[1]),
  4136. float.Parse(strArray9[2]));
  4137. break;
  4138. case 74:
  4139. transform4.localEulerAngles =
  4140. new Vector3(float.Parse(strArray9[0]),
  4141. float.Parse(strArray9[1]),
  4142. float.Parse(strArray9[2]));
  4143. break;
  4144. case 75:
  4145. transform5.localEulerAngles =
  4146. new Vector3(float.Parse(strArray9[0]),
  4147. float.Parse(strArray9[1]),
  4148. float.Parse(strArray9[2]));
  4149. break;
  4150. case 76:
  4151. transform6.localEulerAngles =
  4152. new Vector3(float.Parse(strArray9[0]),
  4153. float.Parse(strArray9[1]),
  4154. float.Parse(strArray9[2]));
  4155. break;
  4156. case 77:
  4157. transform7.localEulerAngles =
  4158. new Vector3(float.Parse(strArray9[0]),
  4159. float.Parse(strArray9[1]),
  4160. float.Parse(strArray9[2]));
  4161. break;
  4162. case 78:
  4163. transform8.localEulerAngles =
  4164. new Vector3(float.Parse(strArray9[0]),
  4165. float.Parse(strArray9[1]),
  4166. float.Parse(strArray9[2]));
  4167. break;
  4168. case 79:
  4169. transform9.localEulerAngles =
  4170. new Vector3(float.Parse(strArray9[0]),
  4171. float.Parse(strArray9[1]),
  4172. float.Parse(strArray9[2]));
  4173. break;
  4174. case 80:
  4175. transform10.localEulerAngles =
  4176. new Vector3(float.Parse(strArray9[0]),
  4177. float.Parse(strArray9[1]),
  4178. float.Parse(strArray9[2]));
  4179. break;
  4180. case 81:
  4181. transform11.localEulerAngles =
  4182. new Vector3(float.Parse(strArray9[0]),
  4183. float.Parse(strArray9[1]),
  4184. float.Parse(strArray9[2]));
  4185. break;
  4186. case 82:
  4187. transform12.localEulerAngles =
  4188. new Vector3(float.Parse(strArray9[0]),
  4189. float.Parse(strArray9[1]),
  4190. float.Parse(strArray9[2]));
  4191. break;
  4192. case 83:
  4193. transform13.localEulerAngles =
  4194. new Vector3(float.Parse(strArray9[0]),
  4195. float.Parse(strArray9[1]),
  4196. float.Parse(strArray9[2]));
  4197. break;
  4198. case 84:
  4199. transform14.localEulerAngles =
  4200. new Vector3(float.Parse(strArray9[0]),
  4201. float.Parse(strArray9[1]),
  4202. float.Parse(strArray9[2]));
  4203. break;
  4204. case 85:
  4205. transform15.localEulerAngles =
  4206. new Vector3(float.Parse(strArray9[0]),
  4207. float.Parse(strArray9[1]),
  4208. float.Parse(strArray9[2]));
  4209. break;
  4210. case 86:
  4211. transform16.localEulerAngles =
  4212. new Vector3(float.Parse(strArray9[0]),
  4213. float.Parse(strArray9[1]),
  4214. float.Parse(strArray9[2]));
  4215. break;
  4216. case 87:
  4217. transform17.localEulerAngles =
  4218. new Vector3(float.Parse(strArray9[0]),
  4219. float.Parse(strArray9[1]),
  4220. float.Parse(strArray9[2]));
  4221. break;
  4222. case 88:
  4223. transform18.localEulerAngles =
  4224. new Vector3(float.Parse(strArray9[0]),
  4225. float.Parse(strArray9[1]),
  4226. float.Parse(strArray9[2]));
  4227. break;
  4228. case 89:
  4229. transform19.localEulerAngles =
  4230. new Vector3(float.Parse(strArray9[0]),
  4231. float.Parse(strArray9[1]),
  4232. float.Parse(strArray9[2]));
  4233. break;
  4234. case 90:
  4235. if (!isVR)
  4236. {
  4237. maid.body0.quaDefEyeL.eulerAngles =
  4238. new Vector3(float.Parse(strArray9[0]),
  4239. float.Parse(strArray9[1]),
  4240. float.Parse(strArray9[2]));
  4241. break;
  4242. }
  4243. break;
  4244. case 91:
  4245. if (!isVR)
  4246. {
  4247. maid.body0.quaDefEyeR.eulerAngles =
  4248. new Vector3(float.Parse(strArray9[0]),
  4249. float.Parse(strArray9[1]),
  4250. float.Parse(strArray9[2]));
  4251. break;
  4252. }
  4253. break;
  4254. case 92:
  4255. vIKMuneL[i] = new Vector3(float.Parse(strArray9[0]),
  4256. float.Parse(strArray9[1]),
  4257. float.Parse(strArray9[2]));
  4258. muneIKL[i] = true;
  4259. break;
  4260. case 93:
  4261. vIKMuneLSub[i] = new Vector3(float.Parse(strArray9[0]),
  4262. float.Parse(strArray9[1]),
  4263. float.Parse(strArray9[2]));
  4264. break;
  4265. case 94:
  4266. vIKMuneR[i] = new Vector3(float.Parse(strArray9[0]),
  4267. float.Parse(strArray9[1]),
  4268. float.Parse(strArray9[2]));
  4269. muneIKR[i] = true;
  4270. break;
  4271. case 95:
  4272. vIKMuneRSub[i] = new Vector3(float.Parse(strArray9[0]),
  4273. float.Parse(strArray9[1]),
  4274. float.Parse(strArray9[2]));
  4275. break;
  4276. case 96:
  4277. haraCount[i] = 2;
  4278. haraPosition[i] = new Vector3(float.Parse(strArray9[0]),
  4279. float.Parse(strArray9[1]),
  4280. float.Parse(strArray9[2]));
  4281. transform1.position = new Vector3(float.Parse(strArray9[0]),
  4282. float.Parse(strArray9[1]),
  4283. float.Parse(strArray9[2]));
  4284. break;
  4285. }
  4286. }
  4287. }
  4288. isStop[i] = true;
  4289. isLock[i] = true;
  4290. }
  4291. }
  4292. }
  4293. isBloom = false;
  4294. bloom1 = 2.85f;
  4295. bloom2 = 3f;
  4296. bloom3 = 0.0f;
  4297. bloom4 = 0.0f;
  4298. bloom5 = 0.0f;
  4299. isBloomA = false;
  4300. isBlur = false;
  4301. blur1 = -3.98f;
  4302. blur4 = -0.75f;
  4303. blur2 = 0.9f;
  4304. blur3 = 4.19f;
  4305. bokashi = 0.0f;
  4306. kamiyure = 0.0f;
  4307. isDepth = false;
  4308. isDepthA = false;
  4309. depth1 = 3f;
  4310. depth2 = 0.1f;
  4311. depth3 = 15f;
  4312. depth4 = 3f;
  4313. isFog = false;
  4314. fog1 = 4f;
  4315. fog2 = 1f;
  4316. fog3 = 1f;
  4317. fog4 = 0.0f;
  4318. fog5 = 1f;
  4319. fog6 = 1f;
  4320. fog7 = 1f;
  4321. isSepia = false;
  4322. if (strArray4 != null)
  4323. {
  4324. lightKage[0] = float.Parse(strArray4[0]);
  4325. if (int.Parse(strArray4[1]) == 1)
  4326. {
  4327. isBloom = true;
  4328. bloom1 = float.Parse(strArray4[2]);
  4329. bloom2 = float.Parse(strArray4[3]);
  4330. bloom3 = float.Parse(strArray4[4]);
  4331. bloom4 = float.Parse(strArray4[5]);
  4332. bloom5 = float.Parse(strArray4[6]);
  4333. if (int.Parse(strArray4[7]) == 1)
  4334. {
  4335. isBloomA = true;
  4336. }
  4337. }
  4338. if (int.Parse(strArray4[8]) == 1)
  4339. {
  4340. isBlur = true;
  4341. blur1 = float.Parse(strArray4[9]);
  4342. blur2 = float.Parse(strArray4[10]);
  4343. blur3 = float.Parse(strArray4[11]);
  4344. blur4 = float.Parse(strArray4[12]);
  4345. }
  4346. bokashi = float.Parse(strArray4[13]);
  4347. kamiyure = float.Parse(strArray4[14]);
  4348. if (strArray4.Length > 15)
  4349. {
  4350. if (int.Parse(strArray4[15]) == 1)
  4351. {
  4352. isDepth = true;
  4353. depth1 = float.Parse(strArray4[16]);
  4354. depth2 = float.Parse(strArray4[17]);
  4355. depth3 = float.Parse(strArray4[18]);
  4356. depth4 = float.Parse(strArray4[19]);
  4357. if (int.Parse(strArray4[20]) == 1)
  4358. {
  4359. isDepthA = true;
  4360. }
  4361. }
  4362. if (int.Parse(strArray4[21]) == 1)
  4363. {
  4364. isFog = true;
  4365. fog1 = float.Parse(strArray4[22]);
  4366. fog2 = float.Parse(strArray4[23]);
  4367. fog3 = float.Parse(strArray4[24]);
  4368. fog4 = float.Parse(strArray4[25]);
  4369. fog5 = float.Parse(strArray4[26]);
  4370. fog6 = float.Parse(strArray4[27]);
  4371. fog7 = float.Parse(strArray4[28]);
  4372. }
  4373. if (int.Parse(strArray4[29]) == 1)
  4374. {
  4375. isSepia = true;
  4376. }
  4377. }
  4378. }
  4379. if (strArray5 != null)
  4380. {
  4381. for (int index1 = 0; index1 < strArray5.Length - 1; ++index1)
  4382. {
  4383. string[] strArray8 = strArray5[index1].Split(',');
  4384. GameObject gameObject = new GameObject("Light");
  4385. gameObject.AddComponent<Light>();
  4386. lightList.Add(gameObject);
  4387. lightIndex.Add(int.Parse(strArray8[0]));
  4388. lightColorR.Add(float.Parse(strArray8[1]));
  4389. lightColorG.Add(float.Parse(strArray8[2]));
  4390. lightColorB.Add(float.Parse(strArray8[3]));
  4391. lightX.Add(float.Parse(strArray8[4]));
  4392. lightY.Add(float.Parse(strArray8[5]));
  4393. lightAkarusa.Add(float.Parse(strArray8[6]));
  4394. lightRange.Add(float.Parse(strArray8[7]));
  4395. lightKage.Add(0.098f);
  4396. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  4397. selectLightIndex = lightList.Count - 1;
  4398. lightComboList = new GUIContent[lightList.Count];
  4399. for (int index2 = 0; index2 < lightList.Count; ++index2)
  4400. {
  4401. lightComboList[index2] = index2 != 0 ? new GUIContent("追加" + index2) : new GUIContent("メイン");
  4402. }
  4403. lightCombo.selectedItemIndex = selectLightIndex;
  4404. gameObject.GetComponent<Light>().intensity = lightAkarusa[index1];
  4405. gameObject.GetComponent<Light>().spotAngle = lightRange[index1];
  4406. gameObject.GetComponent<Light>().range = lightRange[index1] / 5f;
  4407. if (lightIndex[selectLightIndex] == 0)
  4408. {
  4409. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  4410. }
  4411. else if (lightIndex[selectLightIndex] == 1)
  4412. {
  4413. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Spot;
  4414. }
  4415. else if (lightIndex[selectLightIndex] == 2)
  4416. {
  4417. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Point;
  4418. }
  4419. else if (lightIndex[selectLightIndex] == 3)
  4420. {
  4421. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  4422. lightList[selectLightIndex].SetActive(false);
  4423. }
  4424. }
  4425. }
  4426. if (strArray7 != null)
  4427. {
  4428. for (int index = 0; index < lightList.Count; ++index)
  4429. {
  4430. string[] strArray8 = strArray7[index].Split(',');
  4431. lightList[index].transform.position =
  4432. new Vector3(float.Parse(strArray8[0]), float.Parse(strArray8[1]), float.Parse(strArray8[2]));
  4433. if (gLight[index] == null)
  4434. {
  4435. gLight[index] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4436. gLight[index].GetComponent<Renderer>().material =
  4437. new Material(Shader.Find("Transparent/Diffuse")) { color = new Color(0.5f, 0.5f, 1f, 0.8f) };
  4438. gLight[index].layer = 8;
  4439. gLight[index].GetComponent<Renderer>().enabled = false;
  4440. gLight[index].SetActive(false);
  4441. gLight[index].transform.position = lightList[index].transform.position;
  4442. mLight[index] = gLight[index].AddComponent<MouseDrag6>();
  4443. mLight[index].obj = gLight[index];
  4444. mLight[index].maid = lightList[index].gameObject;
  4445. mLight[index].angles = lightList[index].transform.eulerAngles;
  4446. gLight[index].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  4447. mLight[index].ido = 1;
  4448. mLight[index].isScale = false;
  4449. }
  4450. }
  4451. }
  4452. if (strArray6 != null)
  4453. {
  4454. for (int index = 0; index < doguBObject.Count; ++index)
  4455. {
  4456. GraphicsUtils.Destroy(doguBObject[index]);
  4457. }
  4458. doguBObject = new List<GameObject>();
  4459. for (int index1 = 0; index1 < strArray6.Length - 1; ++index1)
  4460. {
  4461. string[] strArray8 = strArray6[index1].Split(',');
  4462. string str1 = strArray8[0].Replace(" ", "_");
  4463. GameObject original1 = null;
  4464. bool flag1 = true;
  4465. if (str1.Contains(".menu"))
  4466. {
  4467. string str2 = str1;
  4468. byte[] f_byBuf = null;
  4469. using (AFileBase afileBase = GameUty.FileOpen(str2, null))
  4470. {
  4471. if (flag1 = afileBase.IsValid())
  4472. {
  4473. f_byBuf = new byte[afileBase.GetSize()];
  4474. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  4475. }
  4476. }
  4477. if (flag1)
  4478. {
  4479. string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, str2, false);
  4480. original1 = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  4481. doguBObject.Add(original1);
  4482. original1.name = str2;
  4483. Vector3 zero1 = Vector3.zero;
  4484. Vector3 zero2 = Vector3.zero;
  4485. zero1.z = 0.4f;
  4486. if (str1.Contains("HandItem"))
  4487. {
  4488. switch (str1)
  4489. {
  4490. case "HandItemR_WineGlass_I_.menu":
  4491. zero2.z = 90f;
  4492. zero1.y = 0.04f;
  4493. goto case "HandItemL_Dance_Hataki_I_.menu";
  4494. case "HandItemR_WineBottle_I_.menu":
  4495. zero2.z = 90f;
  4496. goto case "HandItemL_Dance_Hataki_I_.menu";
  4497. case "HandItemR_Mop_I_.menu":
  4498. zero2.x = 90f;
  4499. goto case "HandItemL_Dance_Hataki_I_.menu";
  4500. case "HandItemL_Dance_Hataki_I_.menu":
  4501. case "HandItemL_Dance_Mop_I_.menu": break;
  4502. default:
  4503. zero2.x = -90f;
  4504. goto case "HandItemL_Dance_Hataki_I_.menu";
  4505. }
  4506. }
  4507. original1.transform.localPosition = zero1;
  4508. original1.transform.localRotation = Quaternion.Euler(zero2);
  4509. }
  4510. }
  4511. else
  4512. {
  4513. try
  4514. {
  4515. bool flag2 = false;
  4516. bool flag3 = false;
  4517. if (str1.StartsWith("BG_"))
  4518. {
  4519. Object original2 = GameMain.Instance.BgMgr.CreateAssetBundle(str1.Replace("BG_", ""));
  4520. if (original2 == null)
  4521. {
  4522. original2 = Resources.Load(str1.Replace("BG_", "BG/"));
  4523. }
  4524. original1 = Instantiate(original2) as GameObject;
  4525. doguBObject.Add(original1);
  4526. }
  4527. else if (str1.Contains("#"))
  4528. {
  4529. original1 = GameMain.Instance.BgMgr.CreateAssetBundle(str1.Split('#')[1]);
  4530. if (original1 != null)
  4531. {
  4532. original1 = Instantiate(original1);
  4533. MeshRenderer[] componentsInChildren = original1.GetComponentsInChildren<MeshRenderer>();
  4534. for (int index2 = 0; index2 < componentsInChildren.Length; ++index2)
  4535. {
  4536. if (componentsInChildren[index2] != null)
  4537. {
  4538. componentsInChildren[index2].shadowCastingMode = ShadowCastingMode.Off;
  4539. }
  4540. }
  4541. }
  4542. flag2 = true;
  4543. if (!parArray[parIndex].Contains("Odogu_"))
  4544. {
  4545. flag3 = true;
  4546. }
  4547. doguBObject.Add(original1);
  4548. }
  4549. else if (!str1.StartsWith("mirror") && str1.IndexOf(":") < 0)
  4550. {
  4551. Object original2;
  4552. bool isBG = str1.StartsWith("BG");
  4553. string name = isBG ? str1.Replace("BG", "") : str1;
  4554. original2 = GameMain.Instance.BgMgr.CreateAssetBundle(name);
  4555. if (original2 == null)
  4556. {
  4557. original2 = Resources.Load((isBG ? "BG/" : "Prefab/") + name);
  4558. }
  4559. original1 = Instantiate(original2) as GameObject;
  4560. doguBObject.Add(original1);
  4561. }
  4562. else if (str1.StartsWith("mirror"))
  4563. {
  4564. Material material = new Material(Shader.Find("Mirror"));
  4565. GameObject primitive = GameObject.CreatePrimitive(PrimitiveType.Plane);
  4566. primitive.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  4567. primitive.GetComponent<Renderer>().material = material;
  4568. primitive.AddComponent<MirrorReflection2>();
  4569. MirrorReflection2 component = primitive.GetComponent<MirrorReflection2>();
  4570. component.m_TextureSize = 2048;
  4571. component.m_ClipPlaneOffset = 0.0f;
  4572. primitive.GetComponent<Renderer>().enabled = true;
  4573. original1 = primitive;
  4574. doguBObject.Add(original1);
  4575. }
  4576. else
  4577. {
  4578. string[] strArray9 = str1.Split(':');
  4579. Object original2 = GameMain.Instance.BgMgr.CreateAssetBundle(strArray9[0]);
  4580. if (original2 == null)
  4581. {
  4582. original2 = Resources.Load("BG/" + strArray9[0]);
  4583. }
  4584. GameObject gameObject = Instantiate(original2) as GameObject;
  4585. int num = 0;
  4586. int.TryParse(strArray9[1], out int result);
  4587. foreach (Transform transform in gameObject.transform)
  4588. {
  4589. if (result == num)
  4590. {
  4591. original1 = transform.gameObject;
  4592. break;
  4593. }
  4594. ++num;
  4595. }
  4596. doguBObject.Add(original1);
  4597. original1.transform.parent = null;
  4598. GraphicsUtils.Destroy(gameObject);
  4599. gameObject.SetActive(false);
  4600. }
  4601. original1.name = str1;
  4602. Vector3 zero1 = Vector3.zero;
  4603. Vector3 zero2 = Vector3.zero;
  4604. if (str1.StartsWith("BG_"))
  4605. {
  4606. original1.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
  4607. }
  4608. switch (str1)
  4609. {
  4610. case "Odogu_XmasTreeMini_photo_ver":
  4611. zero1.z = 0.6f;
  4612. original1.transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  4613. IEnumerator enumerator1 = original1.transform.GetEnumerator();
  4614. try
  4615. {
  4616. while (enumerator1.MoveNext())
  4617. {
  4618. Transform current = (Transform)enumerator1.Current;
  4619. if (current.GetComponent<Collider>() != null)
  4620. {
  4621. current.GetComponent<Collider>().enabled = false;
  4622. }
  4623. }
  4624. break;
  4625. }
  4626. finally
  4627. {
  4628. (enumerator1 as IDisposable)?.Dispose();
  4629. }
  4630. case "Odogu_KadomatsuMini_photo_ver":
  4631. zero1.z = 0.6f;
  4632. original1.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  4633. IEnumerator enumerator2 = original1.transform.GetEnumerator();
  4634. try
  4635. {
  4636. while (enumerator2.MoveNext())
  4637. {
  4638. Transform current = (Transform)enumerator2.Current;
  4639. if (current.GetComponent<Collider>() != null)
  4640. {
  4641. current.GetComponent<Collider>().enabled = false;
  4642. }
  4643. }
  4644. break;
  4645. }
  4646. finally
  4647. {
  4648. (enumerator2 as IDisposable)?.Dispose();
  4649. }
  4650. case "Odogu_ClassRoomDesk":
  4651. zero1.z = 0.5f;
  4652. zero2.x = -90f;
  4653. break;
  4654. case "mirror1":
  4655. zero1.z = -0.6f;
  4656. zero1.y = 0.96f;
  4657. zero2.z = 180f;
  4658. zero2.x = -90f;
  4659. original1.transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  4660. break;
  4661. case "mirror2":
  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.1f, 0.4f, 0.2f);
  4667. break;
  4668. case "mirror3":
  4669. zero1.z = -0.6f;
  4670. zero1.y = 0.85f;
  4671. zero2.z = 180f;
  4672. zero2.x = -90f;
  4673. original1.transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  4674. break;
  4675. case "Particle/pLineY":
  4676. case "Particle/pLineP02":
  4677. case "Particle/pLine_act2":
  4678. original1.transform.localScale = new Vector3(3f, 3f, 3f);
  4679. break;
  4680. case "Mob_Man_Stand001":
  4681. case "Mob_Man_Stand002":
  4682. case "Mob_Man_Stand003":
  4683. case "Mob_Man_Sit001":
  4684. case "Mob_Man_Sit002":
  4685. case "Mob_Man_Sit003":
  4686. case "Mob_Girl_Stand001":
  4687. case "Mob_Girl_Stand002":
  4688. case "Mob_Girl_Stand003":
  4689. case "Mob_Girl_Sit001":
  4690. case "Mob_Girl_Sit002":
  4691. case "Mob_Girl_Sit003":
  4692. case "Salon:63":
  4693. case "Salon:65":
  4694. case "Salon:69":
  4695. case "Salon_Entrance:0":
  4696. case "Salon_Entrance:1":
  4697. case "Salon_Entrance:2":
  4698. case "Salon_Entrance:3":
  4699. case "Salon_Entrance:4":
  4700. case "Pool:26":
  4701. case "Shitsumu:23":
  4702. case "Shitsumu_Night:23":
  4703. zero1.z = 0.5f;
  4704. zero2.x = -90f;
  4705. break;
  4706. case "Odogu_Dresser_photo_ver":
  4707. GameObject.Find("Prim.00000000").GetComponent<Collider>().enabled = false;
  4708. GameObject.Find("Prim.00000001").GetComponent<Collider>().enabled = false;
  4709. GameObject.Find("Prim.00000002").GetComponent<Collider>().enabled = false;
  4710. GameObject.Find("Prim.00000004").GetComponent<Collider>().enabled = false;
  4711. break;
  4712. default:
  4713. zero1.z = 0.5f;
  4714. if (str1.StartsWith("Odogu_"))
  4715. {
  4716. IEnumerator enumerator3 = original1.transform.GetEnumerator();
  4717. try
  4718. {
  4719. while (enumerator3.MoveNext())
  4720. {
  4721. Transform current = (Transform)enumerator3.Current;
  4722. if (current.GetComponent<Collider>() != null)
  4723. {
  4724. current.GetComponent<Collider>().enabled = false;
  4725. }
  4726. }
  4727. break;
  4728. }
  4729. finally
  4730. {
  4731. (enumerator3 as IDisposable)?.Dispose();
  4732. }
  4733. }
  4734. else
  4735. {
  4736. if (original1.GetComponent<Collider>() != null)
  4737. {
  4738. original1.GetComponent<Collider>().enabled = false;
  4739. }
  4740. break;
  4741. }
  4742. }
  4743. if (flag2)
  4744. {
  4745. zero1.z = 0.4f;
  4746. if (flag3)
  4747. {
  4748. zero2.x = -90f;
  4749. }
  4750. }
  4751. original1.transform.localPosition = zero1;
  4752. original1.transform.localRotation = Quaternion.Euler(zero2);
  4753. }
  4754. catch
  4755. {
  4756. flag1 = false;
  4757. }
  4758. }
  4759. if (flag1)
  4760. {
  4761. doguCnt = doguBObject.Count - 1;
  4762. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4763. Vector3 localEulerAngles = original1.transform.localEulerAngles;
  4764. original1.transform.localEulerAngles =
  4765. new Vector3(float.Parse(strArray8[1]), float.Parse(strArray8[2]), float.Parse(strArray8[3]));
  4766. original1.transform.position =
  4767. new Vector3(float.Parse(strArray8[4]), float.Parse(strArray8[5]), float.Parse(strArray8[6]));
  4768. gDogu[doguCnt].transform.localEulerAngles =
  4769. new Vector3(float.Parse(strArray8[1]), float.Parse(strArray8[2]), float.Parse(strArray8[3]));
  4770. gDogu[doguCnt].transform.position =
  4771. new Vector3(float.Parse(strArray8[4]), float.Parse(strArray8[5]), float.Parse(strArray8[6]));
  4772. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  4773. gDogu[doguCnt].layer = 8;
  4774. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  4775. gDogu[doguCnt].SetActive(false);
  4776. gDogu[doguCnt].transform.position = original1.transform.position;
  4777. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  4778. mDogu[doguCnt].obj = gDogu[doguCnt];
  4779. mDogu[doguCnt].maid = original1;
  4780. mDogu[doguCnt].angles = localEulerAngles;
  4781. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  4782. mDogu[doguCnt].ido = 1;
  4783. mDogu[doguCnt].isScale = false;
  4784. if (str1 == "Particle/pLineY")
  4785. {
  4786. mDogu[doguCnt].count = 180;
  4787. }
  4788. if (str1 == "Particle/pLineP02")
  4789. {
  4790. mDogu[doguCnt].count = 115;
  4791. }
  4792. if (original1.name == "Particle/pLine_act2")
  4793. {
  4794. mDogu[doguCnt].count = 80;
  4795. original1.transform.localScale = new Vector3(3f, 3f, 3f);
  4796. }
  4797. if (original1.name == "Particle/pHeart01")
  4798. {
  4799. mDogu[doguCnt].count = 80;
  4800. }
  4801. if (str1 == "mirror1" || str1 == "mirror2" || str1 == "mirror3")
  4802. {
  4803. mDogu[doguCnt].isScale = true;
  4804. mDogu[doguCnt].isScale2 = true;
  4805. mDogu[doguCnt].scale2 = original1.transform.localScale;
  4806. if (str1 == "mirror1")
  4807. {
  4808. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 5f,
  4809. original1.transform.localScale.y * 5f,
  4810. original1.transform.localScale.z * 5f);
  4811. }
  4812. if (str1 == "mirror2")
  4813. {
  4814. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 10f,
  4815. original1.transform.localScale.y * 10f,
  4816. original1.transform.localScale.z * 10f);
  4817. }
  4818. if (str1 == "mirror3")
  4819. {
  4820. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 33f,
  4821. original1.transform.localScale.y * 33f,
  4822. original1.transform.localScale.z * 33f);
  4823. }
  4824. }
  4825. if (str1 == "Odogu_XmasTreeMini_photo_ver" || str1 == "Odogu_KadomatsuMini_photo_ver")
  4826. {
  4827. mDogu[doguCnt].isScale2 = true;
  4828. mDogu[doguCnt].scale2 = original1.transform.localScale;
  4829. }
  4830. original1.transform.localScale =
  4831. new Vector3(float.Parse(strArray8[7]), float.Parse(strArray8[8]), float.Parse(strArray8[9]));
  4832. }
  4833. }
  4834. }
  4835. loadScene = 0;
  4836. kankyoLoadFlg = false;
  4837. }
  4838. for (int i = 0; i < maidCnt; ++i)
  4839. {
  4840. if (loadPose[i] != "" && isLoadPose[i])
  4841. {
  4842. IniKey iniKey = Preferences["pose"][loadPose[i]];
  4843. if (iniKey.Value == null || iniKey.Value.ToString() == "" || iniKey.Value.ToString() == "del")
  4844. {
  4845. loadPose[i] = "";
  4846. isLoadPose[i] = false;
  4847. }
  4848. else
  4849. {
  4850. if (loadCount[i] > 4)
  4851. {
  4852. isLoadPose[i] = false;
  4853. loadPose[i] = "";
  4854. loadCount[i] = 0;
  4855. }
  4856. int num = 0;
  4857. while (num < 10)
  4858. {
  4859. ++num;
  4860. }
  4861. ++loadCount[i];
  4862. Maid maid = maidArray[i];
  4863. isStop[i] = true;
  4864. if (maid && maid.Visible)
  4865. {
  4866. SetIK(maid, i);
  4867. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  4868. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  4869. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  4870. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  4871. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  4872. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  4873. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  4874. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  4875. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  4876. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  4877. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  4878. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  4879. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  4880. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  4881. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  4882. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  4883. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  4884. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  4885. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  4886. string[] strArray1 = iniKey.Value.Split('_')[1].Split(':');
  4887. for (int index = 0; index < 40; ++index)
  4888. {
  4889. string[] strArray2 = strArray1[index].Split(',');
  4890. Finger[i, index].localEulerAngles =
  4891. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4892. }
  4893. bool flag = false;
  4894. if (strArray1.Length == 64)
  4895. {
  4896. flag = true;
  4897. }
  4898. Vector3 localEulerAngles = maid.transform.localEulerAngles;
  4899. maid.transform.localEulerAngles = new Vector3(0.0f, 0.0f, 0.0f);
  4900. Vector3 position = maid.transform.position;
  4901. maid.transform.position = new Vector3(0.0f, 0.0f, 0.0f);
  4902. for (int index1 = 0; index1 < 3; ++index1)
  4903. {
  4904. for (int index2 = 40; index2 < strArray1.Length; ++index2)
  4905. {
  4906. string[] strArray2 = strArray1[index2].Split(',');
  4907. switch (index2)
  4908. {
  4909. case 40:
  4910. if (flag)
  4911. {
  4912. Spine.localEulerAngles =
  4913. new Vector3(float.Parse(strArray2[0]),
  4914. float.Parse(strArray2[1]),
  4915. float.Parse(strArray2[2]));
  4916. }
  4917. if (!flag)
  4918. {
  4919. Spine.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4920. float.Parse(strArray2[1]),
  4921. float.Parse(strArray2[2]));
  4922. break;
  4923. }
  4924. break;
  4925. case 41:
  4926. if (flag)
  4927. {
  4928. Spine0a.localEulerAngles =
  4929. new Vector3(float.Parse(strArray2[0]),
  4930. float.Parse(strArray2[1]),
  4931. float.Parse(strArray2[2]));
  4932. }
  4933. if (!flag)
  4934. {
  4935. Spine0a.eulerAngles =
  4936. new Vector3(float.Parse(strArray2[0]),
  4937. float.Parse(strArray2[1]),
  4938. float.Parse(strArray2[2]));
  4939. break;
  4940. }
  4941. break;
  4942. case 42:
  4943. if (flag)
  4944. {
  4945. Spine1.localEulerAngles =
  4946. new Vector3(float.Parse(strArray2[0]),
  4947. float.Parse(strArray2[1]),
  4948. float.Parse(strArray2[2]));
  4949. }
  4950. if (!flag)
  4951. {
  4952. Spine1.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4953. float.Parse(strArray2[1]),
  4954. float.Parse(strArray2[2]));
  4955. break;
  4956. }
  4957. break;
  4958. case 43:
  4959. if (flag)
  4960. {
  4961. Spine1a.localEulerAngles =
  4962. new Vector3(float.Parse(strArray2[0]),
  4963. float.Parse(strArray2[1]),
  4964. float.Parse(strArray2[2]));
  4965. }
  4966. if (!flag)
  4967. {
  4968. Spine1a.eulerAngles =
  4969. new Vector3(float.Parse(strArray2[0]),
  4970. float.Parse(strArray2[1]),
  4971. float.Parse(strArray2[2]));
  4972. break;
  4973. }
  4974. break;
  4975. case 44:
  4976. if (flag)
  4977. {
  4978. Pelvis.localEulerAngles =
  4979. new Vector3(float.Parse(strArray2[0]),
  4980. float.Parse(strArray2[1]),
  4981. float.Parse(strArray2[2]));
  4982. }
  4983. if (!flag)
  4984. {
  4985. Pelvis.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  4986. float.Parse(strArray2[1]),
  4987. float.Parse(strArray2[2]));
  4988. break;
  4989. }
  4990. break;
  4991. case 45:
  4992. HandL1[i].localEulerAngles =
  4993. new Vector3(float.Parse(strArray2[0]),
  4994. float.Parse(strArray2[1]),
  4995. float.Parse(strArray2[2]));
  4996. break;
  4997. case 46:
  4998. if (flag)
  4999. {
  5000. UpperArmL1[i].localEulerAngles =
  5001. new Vector3(float.Parse(strArray2[0]),
  5002. float.Parse(strArray2[1]),
  5003. float.Parse(strArray2[2]));
  5004. }
  5005. if (!flag)
  5006. {
  5007. UpperArmL1[i].eulerAngles =
  5008. new Vector3(float.Parse(strArray2[0]),
  5009. float.Parse(strArray2[1]),
  5010. float.Parse(strArray2[2]));
  5011. break;
  5012. }
  5013. break;
  5014. case 47:
  5015. if (flag)
  5016. {
  5017. ForearmL1[i].localEulerAngles =
  5018. new Vector3(float.Parse(strArray2[0]),
  5019. float.Parse(strArray2[1]),
  5020. float.Parse(strArray2[2]));
  5021. }
  5022. if (!flag)
  5023. {
  5024. ForearmL1[i].eulerAngles =
  5025. new Vector3(float.Parse(strArray2[0]),
  5026. float.Parse(strArray2[1]),
  5027. float.Parse(strArray2[2]));
  5028. break;
  5029. }
  5030. break;
  5031. case 48:
  5032. HandR1[i].localEulerAngles =
  5033. new Vector3(float.Parse(strArray2[0]),
  5034. float.Parse(strArray2[1]),
  5035. float.Parse(strArray2[2]));
  5036. break;
  5037. case 49:
  5038. if (flag)
  5039. {
  5040. UpperArmR1[i].localEulerAngles =
  5041. new Vector3(float.Parse(strArray2[0]),
  5042. float.Parse(strArray2[1]),
  5043. float.Parse(strArray2[2]));
  5044. }
  5045. if (!flag)
  5046. {
  5047. UpperArmR1[i].eulerAngles =
  5048. new Vector3(float.Parse(strArray2[0]),
  5049. float.Parse(strArray2[1]),
  5050. float.Parse(strArray2[2]));
  5051. break;
  5052. }
  5053. break;
  5054. case 50:
  5055. if (flag)
  5056. {
  5057. ForearmR1[i].localEulerAngles =
  5058. new Vector3(float.Parse(strArray2[0]),
  5059. float.Parse(strArray2[1]),
  5060. float.Parse(strArray2[2]));
  5061. }
  5062. if (!flag)
  5063. {
  5064. ForearmR1[i].eulerAngles =
  5065. new Vector3(float.Parse(strArray2[0]),
  5066. float.Parse(strArray2[1]),
  5067. float.Parse(strArray2[2]));
  5068. break;
  5069. }
  5070. break;
  5071. case 51:
  5072. HandL2[i].localEulerAngles =
  5073. new Vector3(float.Parse(strArray2[0]),
  5074. float.Parse(strArray2[1]),
  5075. float.Parse(strArray2[2]));
  5076. break;
  5077. case 52:
  5078. if (flag)
  5079. {
  5080. UpperArmL2[i].localEulerAngles =
  5081. new Vector3(float.Parse(strArray2[0]),
  5082. float.Parse(strArray2[1]),
  5083. float.Parse(strArray2[2]));
  5084. }
  5085. if (!flag)
  5086. {
  5087. UpperArmL2[i].eulerAngles =
  5088. new Vector3(float.Parse(strArray2[0]),
  5089. float.Parse(strArray2[1]),
  5090. float.Parse(strArray2[2]));
  5091. break;
  5092. }
  5093. break;
  5094. case 53:
  5095. if (flag)
  5096. {
  5097. ForearmL2[i].localEulerAngles =
  5098. new Vector3(float.Parse(strArray2[0]),
  5099. float.Parse(strArray2[1]),
  5100. float.Parse(strArray2[2]));
  5101. }
  5102. if (!flag)
  5103. {
  5104. ForearmL2[i].eulerAngles =
  5105. new Vector3(float.Parse(strArray2[0]),
  5106. float.Parse(strArray2[1]),
  5107. float.Parse(strArray2[2]));
  5108. break;
  5109. }
  5110. break;
  5111. case 54:
  5112. HandR2[i].localEulerAngles =
  5113. new Vector3(float.Parse(strArray2[0]),
  5114. float.Parse(strArray2[1]),
  5115. float.Parse(strArray2[2]));
  5116. break;
  5117. case 55:
  5118. if (flag)
  5119. {
  5120. UpperArmR2[i].localEulerAngles =
  5121. new Vector3(float.Parse(strArray2[0]),
  5122. float.Parse(strArray2[1]),
  5123. float.Parse(strArray2[2]));
  5124. }
  5125. if (!flag)
  5126. {
  5127. UpperArmR2[i].eulerAngles =
  5128. new Vector3(float.Parse(strArray2[0]),
  5129. float.Parse(strArray2[1]),
  5130. float.Parse(strArray2[2]));
  5131. break;
  5132. }
  5133. break;
  5134. case 56:
  5135. if (flag)
  5136. {
  5137. ForearmR2[i].localEulerAngles =
  5138. new Vector3(float.Parse(strArray2[0]),
  5139. float.Parse(strArray2[1]),
  5140. float.Parse(strArray2[2]));
  5141. }
  5142. if (!flag)
  5143. {
  5144. ForearmR2[i].eulerAngles =
  5145. new Vector3(float.Parse(strArray2[0]),
  5146. float.Parse(strArray2[1]),
  5147. float.Parse(strArray2[2]));
  5148. break;
  5149. }
  5150. break;
  5151. case 57:
  5152. if (flag)
  5153. {
  5154. Head.localEulerAngles =
  5155. new Vector3(float.Parse(strArray2[0]),
  5156. float.Parse(strArray2[1]),
  5157. float.Parse(strArray2[2]));
  5158. }
  5159. if (!flag)
  5160. {
  5161. Head.eulerAngles = new Vector3(float.Parse(strArray2[0]),
  5162. float.Parse(strArray2[1]),
  5163. float.Parse(strArray2[2]));
  5164. break;
  5165. }
  5166. break;
  5167. case 66:
  5168. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true).localEulerAngles =
  5169. new Vector3(float.Parse(strArray2[0]),
  5170. float.Parse(strArray2[1]),
  5171. float.Parse(strArray2[2]));
  5172. break;
  5173. case 67:
  5174. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true).localEulerAngles =
  5175. new Vector3(float.Parse(strArray2[0]),
  5176. float.Parse(strArray2[1]),
  5177. float.Parse(strArray2[2]));
  5178. break;
  5179. case 68:
  5180. if (strArray2.Length >= 2)
  5181. {
  5182. ClavicleL1[i].eulerAngles =
  5183. new Vector3(float.Parse(strArray2[0]),
  5184. float.Parse(strArray2[1]),
  5185. float.Parse(strArray2[2]));
  5186. break;
  5187. }
  5188. break;
  5189. case 69:
  5190. ClavicleR1[i].eulerAngles =
  5191. new Vector3(float.Parse(strArray2[0]),
  5192. float.Parse(strArray2[1]),
  5193. float.Parse(strArray2[2]));
  5194. break;
  5195. case 71:
  5196. transform1.eulerAngles =
  5197. new Vector3(float.Parse(strArray2[0]),
  5198. float.Parse(strArray2[1]),
  5199. float.Parse(strArray2[2]));
  5200. break;
  5201. case 72:
  5202. transform2.localEulerAngles =
  5203. new Vector3(float.Parse(strArray2[0]),
  5204. float.Parse(strArray2[1]),
  5205. float.Parse(strArray2[2]));
  5206. break;
  5207. case 73:
  5208. transform3.localEulerAngles =
  5209. new Vector3(float.Parse(strArray2[0]),
  5210. float.Parse(strArray2[1]),
  5211. float.Parse(strArray2[2]));
  5212. break;
  5213. case 74:
  5214. transform4.localEulerAngles =
  5215. new Vector3(float.Parse(strArray2[0]),
  5216. float.Parse(strArray2[1]),
  5217. float.Parse(strArray2[2]));
  5218. break;
  5219. case 75:
  5220. transform5.localEulerAngles =
  5221. new Vector3(float.Parse(strArray2[0]),
  5222. float.Parse(strArray2[1]),
  5223. float.Parse(strArray2[2]));
  5224. break;
  5225. case 76:
  5226. transform6.localEulerAngles =
  5227. new Vector3(float.Parse(strArray2[0]),
  5228. float.Parse(strArray2[1]),
  5229. float.Parse(strArray2[2]));
  5230. break;
  5231. case 77:
  5232. transform7.localEulerAngles =
  5233. new Vector3(float.Parse(strArray2[0]),
  5234. float.Parse(strArray2[1]),
  5235. float.Parse(strArray2[2]));
  5236. break;
  5237. case 78:
  5238. transform8.localEulerAngles =
  5239. new Vector3(float.Parse(strArray2[0]),
  5240. float.Parse(strArray2[1]),
  5241. float.Parse(strArray2[2]));
  5242. break;
  5243. case 79:
  5244. transform9.localEulerAngles =
  5245. new Vector3(float.Parse(strArray2[0]),
  5246. float.Parse(strArray2[1]),
  5247. float.Parse(strArray2[2]));
  5248. break;
  5249. case 80:
  5250. transform10.localEulerAngles =
  5251. new Vector3(float.Parse(strArray2[0]),
  5252. float.Parse(strArray2[1]),
  5253. float.Parse(strArray2[2]));
  5254. break;
  5255. case 81:
  5256. transform11.localEulerAngles =
  5257. new Vector3(float.Parse(strArray2[0]),
  5258. float.Parse(strArray2[1]),
  5259. float.Parse(strArray2[2]));
  5260. break;
  5261. case 82:
  5262. transform12.localEulerAngles =
  5263. new Vector3(float.Parse(strArray2[0]),
  5264. float.Parse(strArray2[1]),
  5265. float.Parse(strArray2[2]));
  5266. break;
  5267. case 83:
  5268. transform13.localEulerAngles =
  5269. new Vector3(float.Parse(strArray2[0]),
  5270. float.Parse(strArray2[1]),
  5271. float.Parse(strArray2[2]));
  5272. break;
  5273. case 84:
  5274. transform14.localEulerAngles =
  5275. new Vector3(float.Parse(strArray2[0]),
  5276. float.Parse(strArray2[1]),
  5277. float.Parse(strArray2[2]));
  5278. break;
  5279. case 85:
  5280. transform15.localEulerAngles =
  5281. new Vector3(float.Parse(strArray2[0]),
  5282. float.Parse(strArray2[1]),
  5283. float.Parse(strArray2[2]));
  5284. break;
  5285. case 86:
  5286. transform16.localEulerAngles =
  5287. new Vector3(float.Parse(strArray2[0]),
  5288. float.Parse(strArray2[1]),
  5289. float.Parse(strArray2[2]));
  5290. break;
  5291. case 87:
  5292. transform17.localEulerAngles =
  5293. new Vector3(float.Parse(strArray2[0]),
  5294. float.Parse(strArray2[1]),
  5295. float.Parse(strArray2[2]));
  5296. break;
  5297. case 88:
  5298. transform18.localEulerAngles =
  5299. new Vector3(float.Parse(strArray2[0]),
  5300. float.Parse(strArray2[1]),
  5301. float.Parse(strArray2[2]));
  5302. break;
  5303. case 89:
  5304. transform19.localEulerAngles =
  5305. new Vector3(float.Parse(strArray2[0]),
  5306. float.Parse(strArray2[1]),
  5307. float.Parse(strArray2[2]));
  5308. break;
  5309. case 92:
  5310. vIKMuneL[i] = new Vector3(float.Parse(strArray2[0]),
  5311. float.Parse(strArray2[1]),
  5312. float.Parse(strArray2[2]));
  5313. muneIKL[i] = true;
  5314. break;
  5315. case 93:
  5316. vIKMuneLSub[i] = new Vector3(float.Parse(strArray2[0]),
  5317. float.Parse(strArray2[1]),
  5318. float.Parse(strArray2[2]));
  5319. break;
  5320. case 94:
  5321. vIKMuneR[i] = new Vector3(float.Parse(strArray2[0]),
  5322. float.Parse(strArray2[1]),
  5323. float.Parse(strArray2[2]));
  5324. muneIKR[i] = true;
  5325. break;
  5326. case 95:
  5327. vIKMuneRSub[i] = new Vector3(float.Parse(strArray2[0]),
  5328. float.Parse(strArray2[1]),
  5329. float.Parse(strArray2[2]));
  5330. break;
  5331. case 96:
  5332. transform1.position = new Vector3(float.Parse(strArray2[0]),
  5333. float.Parse(strArray2[1]),
  5334. float.Parse(strArray2[2]));
  5335. break;
  5336. }
  5337. }
  5338. }
  5339. maid.transform.localEulerAngles = localEulerAngles;
  5340. maid.transform.position = position;
  5341. }
  5342. }
  5343. }
  5344. if (loadPose[i] != "" && !isLoadPose[i])
  5345. {
  5346. IniKey iniKey = Preferences["pose"][loadPose[i]];
  5347. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  5348. {
  5349. isStop[i] = true;
  5350. }
  5351. isLoadPose[i] = true;
  5352. }
  5353. }
  5354. if (loadScene > 0)
  5355. {
  5356. IniKey iniKey = Preferences["scene"]["s" + loadScene];
  5357. if (iniKey.Value == null || iniKey.Value.ToString() == "")
  5358. {
  5359. loadScene = 0;
  5360. }
  5361. else
  5362. {
  5363. isScene = true;
  5364. if (!kankyoLoadFlg)
  5365. {
  5366. string[] strArray1 = iniKey.Value.Split('_')[1].Split(';');
  5367. for (int i = 0; i < strArray1.Length; ++i)
  5368. {
  5369. if (maidCnt > i)
  5370. {
  5371. Maid maid = maidArray[i];
  5372. for (int index = 0; index < 10; ++index)
  5373. {
  5374. Transform transform1 = maid.transform;
  5375. Vector3 position1 = maid.transform.position;
  5376. Vector3 right = Vector3.right;
  5377. rotation = maid.transform.rotation;
  5378. double num1 = -rotation.eulerAngles.x;
  5379. transform1.RotateAround(position1, right, (float)num1);
  5380. Transform transform2 = maid.transform;
  5381. Vector3 position2 = maid.transform.position;
  5382. Vector3 forward = Vector3.forward;
  5383. rotation = maid.transform.rotation;
  5384. double num2 = -rotation.eulerAngles.z;
  5385. transform2.RotateAround(position2, forward, (float)num2);
  5386. }
  5387. string[] array2 = strArray1[i].Split(':');
  5388. if (!int.TryParse(array2[61], out poseIndex[i]))
  5389. {
  5390. string str = array2[61].Replace(" ", "_").Replace("|", ",");
  5391. for (int index = 0; index < poseArray.Length; ++index)
  5392. {
  5393. if (str == poseArray[index])
  5394. {
  5395. poseIndex[i] = index;
  5396. break;
  5397. }
  5398. }
  5399. }
  5400. string[] strArray2 = poseArray[poseIndex[i]].Split(',');
  5401. isStop[i] = true;
  5402. poseCount[i] = 20;
  5403. if (array2[61].Contains("MultipleMaidsPose"))
  5404. {
  5405. string url = "";
  5406. ((Action<string, List<string>>)((path, result_list) =>
  5407. {
  5408. string[] files = Directory.GetFiles(path);
  5409. for (int index1 = 0; index1 < files.Length; ++index1)
  5410. {
  5411. if (Path.GetExtension(files[index1]) == ".anm")
  5412. {
  5413. string str1 =
  5414. files[index1].Split('\\')[files[index1]
  5415. .Split('\\').Length
  5416. - 1].Split('.')[0];
  5417. if (str1 == array2[61].Replace("MultipleMaidsPose", ""))
  5418. {
  5419. url = files[index1];
  5420. for (int index2 = 0;
  5421. index2 < poseArray.Length;
  5422. ++index2)
  5423. {
  5424. string str2 = poseArray[index2]
  5425. .Replace(" ", "").Split('/')[0];
  5426. if (str1 == str2)
  5427. {
  5428. poseIndex[i] = index2;
  5429. }
  5430. }
  5431. break;
  5432. }
  5433. }
  5434. }
  5435. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose",
  5436. new List<string>());
  5437. if (url != "")
  5438. {
  5439. string path = url;
  5440. byte[] numArray = new byte[0];
  5441. try
  5442. {
  5443. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  5444. {
  5445. numArray = new byte[fileStream.Length];
  5446. fileStream.Read(numArray, 0, numArray.Length);
  5447. }
  5448. }
  5449. catch { }
  5450. if (0 < numArray.Length)
  5451. {
  5452. long hashCode = Path.GetFileName(path).GetHashCode();
  5453. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  5454. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  5455. {
  5456. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
  5457. Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  5458. };
  5459. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  5460. {
  5461. maid.SetAutoTwist(f_eType, true);
  5462. }
  5463. }
  5464. }
  5465. }
  5466. else
  5467. {
  5468. if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out int result))
  5469. {
  5470. loadPose[i] = strArray2[0];
  5471. }
  5472. else if (!strArray2[0].StartsWith("dance_"))
  5473. {
  5474. maidArray[i].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  5475. }
  5476. else
  5477. {
  5478. if (!maidArray[i]
  5479. .body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
  5480. {
  5481. maidArray[i].body0.LoadAnime(strArray2[0] + ".anm",
  5482. GameUty.FileSystem,
  5483. strArray2[0] + ".anm",
  5484. false,
  5485. false);
  5486. }
  5487. maidArray[i].body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  5488. }
  5489. }
  5490. if (strArray2.Length > 1)
  5491. {
  5492. maidArray[i].body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time =
  5493. float.Parse(strArray2[1]);
  5494. isStop[i] = true;
  5495. if (strArray2.Length > 2)
  5496. {
  5497. CMT.SearchObjName(maidArray[i].body0.m_Bones.transform, "Bip01", true);
  5498. isPoseIti[i] = true;
  5499. poseIti[i] = maidArray[i].transform.position;
  5500. maidArray[i].transform.position = new Vector3(100f, 100f, 100f);
  5501. }
  5502. }
  5503. faceIndex[i] = int.Parse(array2[62]);
  5504. if (faceIndex[i] < faceArray.Length)
  5505. {
  5506. maid.FaceAnime(faceArray[faceIndex[i]], 0.01f, 0);
  5507. }
  5508. else
  5509. {
  5510. faceIndex[i] = 0;
  5511. }
  5512. TMorph morph = maid.body0.Face.morph;
  5513. if (!isVR)
  5514. {
  5515. maid.boMabataki = false;
  5516. morph.EyeMabataki = 0.0f;
  5517. maid.body0.Face.morph.FixBlendValues_Face();
  5518. }
  5519. }
  5520. else
  5521. {
  5522. break;
  5523. }
  5524. }
  5525. }
  5526. }
  5527. }
  5528. if (allowUpdate || sceneLevel == 14 || sceneLevel == 24)
  5529. {
  5530. if (isF6 && !cameraObj && !isVR)
  5531. {
  5532. cameraObj = new GameObject("subCamera");
  5533. subcamera = cameraObj.AddComponent<Camera>();
  5534. subcamera.CopyFrom(Camera.main);
  5535. cameraObj.SetActive(true);
  5536. subcamera.clearFlags = CameraClearFlags.Depth;
  5537. subcamera.cullingMask = 256;
  5538. subcamera.depth = 1f;
  5539. subcamera.transform.parent = mainCamera.transform;
  5540. if (lightList.Count == 0)
  5541. {
  5542. float num = 2f;
  5543. if (Application.unityVersion.StartsWith("4"))
  5544. {
  5545. num = 1f;
  5546. }
  5547. GameObject gameObject = new GameObject("Light");
  5548. gameObject.AddComponent<Light>();
  5549. lightList.Add(gameObject);
  5550. lightColorR.Add(1f);
  5551. lightColorG.Add(1f);
  5552. lightColorB.Add(1f);
  5553. lightIndex.Add(0);
  5554. lightX.Add(40f);
  5555. lightY.Add(180f);
  5556. lightAkarusa.Add(num);
  5557. lightKage.Add(0.098f);
  5558. lightRange.Add(50f);
  5559. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  5560. gameObject.GetComponent<Light>().intensity = 2f;
  5561. gameObject.GetComponent<Light>().spotAngle = 50f;
  5562. gameObject.GetComponent<Light>().range = 10f;
  5563. gameObject.GetComponent<Light>().type = LightType.Directional;
  5564. gameObject.GetComponent<Light>().color = new Color(0.5f, 1f, 0.0f);
  5565. gameObject.GetComponent<Light>().cullingMask = 256;
  5566. // lightComboList = new GUIContent[lightList.Count];
  5567. // lightComboList[0] = new GUIContent("メイン");
  5568. // lightCombo.selectedItemIndex = 0;
  5569. // selectLightIndex = 0;
  5570. }
  5571. }
  5572. if ((!isF6S || !getModKeyPressing(modKey.Shift) || !Input.GetKeyDown(KeyCode.F6))
  5573. && (isF6S || !getModKeyPressing(modKey.Shift) || !Input.GetKeyDown(KeyCode.F6)))
  5574. {
  5575. if (!isF6 && Input.GetKeyDown(KeyCode.F6) && sceneLevel != 5 && sceneLevel != 3
  5576. && !isVR && maidArray[0] && maidArray[0].Visible)
  5577. {
  5578. isF6 = true;
  5579. bGui = true;
  5580. isFaceInit = true;
  5581. isGuiInit = true;
  5582. maidArray[0].boMabataki = false;
  5583. selectMaidIndex = 0;
  5584. maidCnt = 1;
  5585. isFace[0] = true;
  5586. faceFlg = true;
  5587. kankyoFlg = false;
  5588. string bgName = GameMain.Instance.BgMgr.GetBGName();
  5589. int num = 0;
  5590. foreach (string bg in bgArray)
  5591. {
  5592. if (bg == bgName)
  5593. {
  5594. bgIndex = num;
  5595. bgIndex6 = num;
  5596. break;
  5597. }
  5598. ++num;
  5599. }
  5600. bgCombo.selectedItemIndex = bgIndex6;
  5601. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5602. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5603. }
  5604. else if (!isF6 && Input.GetKeyDown(KeyCode.F7) && sceneLevel != 5 && sceneLevel != 3
  5605. && !isVR && maidArray[0] && maidArray[0].Visible)
  5606. {
  5607. isF6 = true;
  5608. bGui = true;
  5609. isGuiInit = true;
  5610. selectMaidIndex = 0;
  5611. maidCnt = 1;
  5612. isFace[0] = false;
  5613. faceFlg = false;
  5614. kankyoFlg = true;
  5615. string bgName = GameMain.Instance.BgMgr.GetBGName();
  5616. int num = 0;
  5617. foreach (string bg in bgArray)
  5618. {
  5619. if (bg == bgName)
  5620. {
  5621. bgIndex = num;
  5622. bgIndex6 = num;
  5623. break;
  5624. }
  5625. ++num;
  5626. }
  5627. bgmCombo.selectedItemIndex = bgmIndex;
  5628. bgCombo.selectedItemIndex = bgIndex6;
  5629. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  5630. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  5631. lightX6 = lightX[0];
  5632. lightY6 = lightY[0];
  5633. }
  5634. else if (isVR && Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.BackQuote)
  5635. || isF6 && (Input.GetKeyDown(KeyCode.F6) || Input.GetKeyDown(KeyCode.F7)))
  5636. {
  5637. isF6 = false;
  5638. bGui = false;
  5639. maidArray[0].boMabataki = true;
  5640. bgIndex = bgIndex6;
  5641. bg.localScale = new Vector3(1f, 1f, 1f);
  5642. if (!isVR)
  5643. {
  5644. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  5645. fieldValue.enabled = true;
  5646. fieldValue.bloomIntensity = 2.85f;
  5647. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  5648. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  5649. fieldValue.bloomBlurIterations = 3;
  5650. }
  5651. else if (bgArray[bgIndex].Length == 36)
  5652. {
  5653. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5654. }
  5655. else
  5656. {
  5657. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5658. }
  5659. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  5660. maidCnt = 0;
  5661. wearIndex = 0;
  5662. faceFlg = false;
  5663. faceFlg2 = false;
  5664. sceneFlg = false;
  5665. poseFlg = false;
  5666. kankyoFlg = false;
  5667. kankyo2Flg = false;
  5668. unLockFlg = false;
  5669. ikMaid = 0;
  5670. ikBui = 0;
  5671. isNamida = false;
  5672. isTear1 = false;
  5673. isTear2 = false;
  5674. isTear3 = false;
  5675. isShock = false;
  5676. isYodare = false;
  5677. isHoho = false;
  5678. isHoho2 = false;
  5679. isHohos = false;
  5680. isHohol = false;
  5681. isToothoff = false;
  5682. isNosefook = false;
  5683. isFaceInit = false;
  5684. isPoseInit = false;
  5685. isWear = true;
  5686. isSkirt = true;
  5687. isBra = true;
  5688. isPanz = true;
  5689. isHeadset = true;
  5690. isAccUde = true;
  5691. isStkg = true;
  5692. isShoes = true;
  5693. isGlove = true;
  5694. isMegane = true;
  5695. isAccSenaka = true;
  5696. isPanel = true;
  5697. isBloom = false;
  5698. isBloomA = false;
  5699. isBlur = false;
  5700. isBlur2 = false;
  5701. bloom1 = 2.85f;
  5702. bloom2 = 3f;
  5703. bloom3 = 0.0f;
  5704. bloom4 = 0.0f;
  5705. bloom5 = 0.0f;
  5706. blur1 = -3.98f;
  5707. blur4 = -0.75f;
  5708. blur2 = 0.9f;
  5709. blur3 = 4.19f;
  5710. bokashi = 0.0f;
  5711. kamiyure = 0.0f;
  5712. isDepth = false;
  5713. isDepthA = false;
  5714. depth1 = 3f;
  5715. depth2 = 0.1f;
  5716. depth3 = 15f;
  5717. depth4 = 2.5f;
  5718. isFog = false;
  5719. fog1 = 4f;
  5720. fog2 = 1f;
  5721. fog3 = 1f;
  5722. fog4 = 0.0f;
  5723. fog5 = 1f;
  5724. fog6 = 1f;
  5725. fog7 = 1f;
  5726. isSepia = false;
  5727. isBloomS = true;
  5728. isDepthS = false;
  5729. isBlurS = false;
  5730. isFogS = false;
  5731. if (depth_field_ != null)
  5732. {
  5733. depth_field_.enabled = false;
  5734. }
  5735. if (fog_ != null)
  5736. {
  5737. fog_.enabled = false;
  5738. }
  5739. if (sepia_tone_ != null)
  5740. {
  5741. sepia_tone_.enabled = false;
  5742. }
  5743. isCube = false;
  5744. isCube2 = true;
  5745. isCube3 = false;
  5746. isCube4 = true;
  5747. effectIndex = 0;
  5748. selectMaidIndex = 0;
  5749. copyIndex = 0;
  5750. selectLightIndex = 0;
  5751. doguBIndex = 0;
  5752. parIndex = 0;
  5753. isEditNo = 0;
  5754. editSelectMaid = null;
  5755. for (int index = 0; index < 10; ++index)
  5756. {
  5757. date[index] = "";
  5758. ninzu[index] = "";
  5759. }
  5760. if (kami)
  5761. {
  5762. kami.SetActive(false);
  5763. }
  5764. lightIndex = new List<int>
  5765. {
  5766. 0
  5767. };
  5768. lightColorR = new List<float>
  5769. {
  5770. 1f
  5771. };
  5772. lightColorG = new List<float>
  5773. {
  5774. 1f
  5775. };
  5776. lightColorB = new List<float>
  5777. {
  5778. 1f
  5779. };
  5780. lightX = new List<float>
  5781. {
  5782. lightX6
  5783. };
  5784. lightY = new List<float>
  5785. {
  5786. lightY6
  5787. };
  5788. lightAkarusa = new List<float>
  5789. {
  5790. 0.95f
  5791. };
  5792. lightKage = new List<float>
  5793. {
  5794. 0.098f
  5795. };
  5796. lightRange = new List<float>
  5797. {
  5798. 50f
  5799. };
  5800. isIdx1 = false;
  5801. isIdx2 = false;
  5802. isIdx3 = false;
  5803. isIdx4 = false;
  5804. bgObject.SetActive(true);
  5805. GameMain.Instance.MainLight.Reset();
  5806. GameMain.Instance.MainLight.SetIntensity(0.95f);
  5807. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 30f;
  5808. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  5809. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  5810. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  5811. GameMain.Instance.MainLight.transform.eulerAngles =
  5812. new Vector3(lightX6, lightY6, GameMain.Instance.MainLight.transform.eulerAngles.z);
  5813. for (int index = 0; index < doguBObject.Count; ++index)
  5814. {
  5815. GraphicsUtils.Destroy(doguBObject[index]);
  5816. }
  5817. doguBObject.Clear();
  5818. doguBIndex = 0;
  5819. parIndex = 0;
  5820. doguCombo.selectedItemIndex = 0;
  5821. parCombo.selectedItemIndex = 0;
  5822. for (int index = 1; index < lightList.Count; ++index)
  5823. {
  5824. GraphicsUtils.Destroy(lightList[index]);
  5825. }
  5826. lightList = new List<GameObject>
  5827. {
  5828. GameMain.Instance.MainLight.gameObject
  5829. };
  5830. lightComboList = new GUIContent[lightList.Count];
  5831. lightComboList[0] = new GUIContent("メイン");
  5832. lightCombo.selectedItemIndex = 0;
  5833. selectLightIndex = 0;
  5834. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex6]);
  5835. bgCombo.selectedItemIndex = bgIndex6;
  5836. bgCombo2.selectedItemIndex = 0;
  5837. itemCombo2.selectedItemIndex = 0;
  5838. slotCombo.selectedItemIndex = 0;
  5839. sortList.Clear();
  5840. maidCallScrollPos = new Vector2(0.0f, 0.0f);
  5841. poseScrollPos = new Vector2(0.0f, 0.0f);
  5842. faceScrollPos = new Vector2(0.0f, 0.0f);
  5843. bgScrollPos = new Vector2(0.0f, 0.0f);
  5844. saveSceneScrollPos = new Vector2(0.0f, 0.0f);
  5845. bg2ScrollPos = new Vector2(0.0f, 0.0f);
  5846. if (!isVR)
  5847. {
  5848. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  5849. component.mode = Vignetting.AberrationMode.Simple;
  5850. component.intensity = -3.98f;
  5851. component.chromaticAberration = -0.75f;
  5852. component.axialAberration = 1.18f;
  5853. component.blurSpread = 4.19f;
  5854. component.luminanceDependency = 0.494f;
  5855. component.blurDistance = 1.71f;
  5856. component.enabled = false;
  5857. }
  5858. doguIndex.Clear();
  5859. doguSelectIndex = 0;
  5860. for (int index = 0; index < doguObject.Count; ++index)
  5861. {
  5862. if (doguObject[index] != null)
  5863. {
  5864. GraphicsUtils.Destroy(doguObject[index]);
  5865. doguObject[index] = null;
  5866. }
  5867. }
  5868. doguObject.Clear();
  5869. }
  5870. }
  5871. for (int index = 0; index < maidCnt; ++index)
  5872. {
  5873. if (maidArray[index] && maidArray[index].Visible)
  5874. {
  5875. Maid maid = maidArray[index];
  5876. if (isLook[index] != isLookn[index])
  5877. {
  5878. isLookn[index] = isLook[index];
  5879. if (isLook[index])
  5880. {
  5881. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5882. maid.body0.boHeadToCam = true;
  5883. maid.body0.boEyeToCam = true;
  5884. maid.body0.trsLookTarget = null;
  5885. }
  5886. else
  5887. {
  5888. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5889. maid.body0.boHeadToCam = true;
  5890. maid.body0.boEyeToCam = true;
  5891. }
  5892. }
  5893. }
  5894. }
  5895. if (maidArray[selectMaidIndex] && maidArray[selectMaidIndex].Visible
  5896. && (!faceFlg && !poseFlg && !sceneFlg && !kankyoFlg && !kankyo2Flg
  5897. || sceneFlg || kankyoFlg || kankyo2Flg))
  5898. {
  5899. for (int index = 0; index < maidCnt; ++index)
  5900. {
  5901. if (maidArray[index] && !maidArray[index].boMabataki)
  5902. {
  5903. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5904. }
  5905. }
  5906. }
  5907. if (maidArray[selectMaidIndex] && maidArray[selectMaidIndex].Visible && poseFlg)
  5908. {
  5909. if (isPoseInit)
  5910. {
  5911. if (!isDanceChu)
  5912. {
  5913. Maid maid = maidArray[selectMaidIndex];
  5914. isPoseInit = false;
  5915. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  5916. || maid.body0.GetMask(TBody.SlotID.onepiece);
  5917. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  5918. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  5919. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  5920. isMaid = maid.body0.GetMask(TBody.SlotID.body);
  5921. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  5922. || maid.body0.GetMask(TBody.SlotID.accHead)
  5923. || maid.body0.GetMask(TBody.SlotID.accKamiSubL)
  5924. || maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  5925. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  5926. || maid.body0.GetMask(TBody.SlotID.accKami_2_)
  5927. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  5928. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  5929. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  5930. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  5931. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  5932. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  5933. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  5934. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5935. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5936. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5937. eyeclose = fieldValue2[(int)morph.hash["eyeclose"]];
  5938. eyeclose2 = fieldValue2[(int)morph.hash["eyeclose2"]];
  5939. eyeclose3 = fieldValue2[(int)morph.hash["eyeclose3"]];
  5940. eyeclose6 = fieldValue2[(int)morph.hash["eyeclose6"]];
  5941. hitomih = fieldValue1[(int)morph.hash["hitomih"]];
  5942. hitomis = fieldValue1[(int)morph.hash["hitomis"]];
  5943. mayuha = fieldValue1[(int)morph.hash["mayuha"]];
  5944. mayuup = fieldValue1[(int)morph.hash["mayuup"]];
  5945. mayuv = fieldValue1[(int)morph.hash["mayuv"]];
  5946. mayuvhalf = fieldValue1[(int)morph.hash["mayuvhalf"]];
  5947. moutha = fieldValue1[(int)morph.hash["moutha"]];
  5948. mouths = fieldValue1[(int)morph.hash["mouths"]];
  5949. mouthdw = fieldValue1[(int)morph.hash["mouthdw"]];
  5950. mouthup = fieldValue1[(int)morph.hash["mouthup"]];
  5951. tangout = fieldValue1[(int)morph.hash["tangout"]];
  5952. tangup = fieldValue1[(int)morph.hash["tangup"]];
  5953. eyebig = fieldValue1[(int)morph.hash["eyebig"]];
  5954. eyeclose5 = fieldValue2[(int)morph.hash["eyeclose5"]];
  5955. mayuw = fieldValue1[(int)morph.hash["mayuw"]];
  5956. mouthhe = fieldValue1[(int)morph.hash["mouthhe"]];
  5957. mouthc = fieldValue1[(int)morph.hash["mouthc"]];
  5958. mouthi = fieldValue1[(int)morph.hash["mouthi"]];
  5959. mouthuphalf = fieldValue1[(int)morph.hash["mouthuphalf"]];
  5960. try
  5961. {
  5962. tangopen = fieldValue1[(int)morph.hash["tangopen"]];
  5963. }
  5964. catch { }
  5965. isNamida = fieldValue1[(int)morph.hash["namida"]] > 0.0;
  5966. isTear1 = fieldValue1[(int)morph.hash["tear1"]] > 0.0;
  5967. isTear2 = fieldValue1[(int)morph.hash["tear2"]] > 0.0;
  5968. isTear3 = fieldValue1[(int)morph.hash["tear3"]] > 0.0;
  5969. isShock = fieldValue1[(int)morph.hash["shock"]] > 0.0;
  5970. isYodare = fieldValue1[(int)morph.hash["yodare"]] > 0.0;
  5971. isHoho = fieldValue1[(int)morph.hash["hoho"]] > 0.0;
  5972. isHoho2 = fieldValue1[(int)morph.hash["hoho2"]] > 0.0;
  5973. isHohos = fieldValue1[(int)morph.hash["hohos"]] > 0.0;
  5974. isHohol = fieldValue1[(int)morph.hash["hohol"]] > 0.0;
  5975. isToothoff = fieldValue1[(int)morph.hash["toothoff"]] > 0.0;
  5976. isNosefook = fieldValue1[(int)morph.hash["nosefook"]] > 0.0;
  5977. }
  5978. }
  5979. else
  5980. {
  5981. Maid maid = maidArray[selectMaidIndex];
  5982. if (goSlot[(int)selectList[selectMaidIndex]] != null)
  5983. {
  5984. maidArray[selectMaidIndex].body0.goSlot =
  5985. new List<TBodySkin>(goSlot[(int)selectList[selectMaidIndex]]);
  5986. for (int index = 0; index < bodyHit[(int)selectList[selectMaidIndex]].Count; ++index)
  5987. {
  5988. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit =
  5989. bodyHit[(int)selectList[selectMaidIndex]][index];
  5990. }
  5991. }
  5992. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  5993. {
  5994. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  5995. }
  5996. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  5997. {
  5998. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  5999. }
  6000. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  6001. {
  6002. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  6003. }
  6004. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  6005. {
  6006. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  6007. }
  6008. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  6009. {
  6010. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  6011. }
  6012. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  6013. {
  6014. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  6015. }
  6016. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  6017. {
  6018. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  6019. }
  6020. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  6021. {
  6022. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  6023. }
  6024. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  6025. {
  6026. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  6027. }
  6028. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  6029. {
  6030. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  6031. }
  6032. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  6033. {
  6034. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  6035. }
  6036. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  6037. {
  6038. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  6039. }
  6040. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  6041. {
  6042. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  6043. }
  6044. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  6045. {
  6046. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  6047. }
  6048. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  6049. {
  6050. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  6051. }
  6052. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  6053. {
  6054. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  6055. }
  6056. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  6057. {
  6058. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  6059. }
  6060. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  6061. {
  6062. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  6063. }
  6064. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  6065. {
  6066. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  6067. }
  6068. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  6069. {
  6070. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  6071. }
  6072. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  6073. {
  6074. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  6075. if (mekure1[selectMaidIndex])
  6076. {
  6077. maid.ItemChangeTemp("skirt", "めくれスカート");
  6078. maid.ItemChangeTemp("onepiece", "めくれスカート");
  6079. mekure2[selectMaidIndex] = false;
  6080. mekure2n[selectMaidIndex] = false;
  6081. }
  6082. else
  6083. {
  6084. ResetProp(maid, MPN.skirt);
  6085. ResetProp(maid, MPN.onepiece);
  6086. }
  6087. maid.AllProcPropSeqStart();
  6088. }
  6089. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  6090. {
  6091. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  6092. if (mekure2[selectMaidIndex])
  6093. {
  6094. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  6095. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  6096. mekure1[selectMaidIndex] = false;
  6097. mekure1n[selectMaidIndex] = false;
  6098. }
  6099. else
  6100. {
  6101. ResetProp(maid, MPN.skirt);
  6102. ResetProp(maid, MPN.onepiece);
  6103. }
  6104. maid.AllProcPropSeqStart();
  6105. }
  6106. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  6107. {
  6108. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  6109. if (zurasi[selectMaidIndex])
  6110. {
  6111. maid.ItemChangeTemp("panz", "パンツずらし");
  6112. maid.ItemChangeTemp("mizugi", "パンツずらし");
  6113. }
  6114. else
  6115. {
  6116. ResetProp(maid, MPN.panz);
  6117. ResetProp(maid, MPN.mizugi);
  6118. }
  6119. maid.AllProcPropSeqStart();
  6120. }
  6121. if (!isDanceChu)
  6122. {
  6123. if (maid.body0.GetMask(TBody.SlotID.body) != isMaid)
  6124. {
  6125. Hashtable fieldValue = GetFieldValue<TBody, Hashtable>(maid.body0, "m_hFoceHide");
  6126. fieldValue[TBody.SlotID.body] = isMaid;
  6127. fieldValue[TBody.SlotID.head] = isMaid;
  6128. fieldValue[TBody.SlotID.eye] = isMaid;
  6129. fieldValue[TBody.SlotID.hairF] = isMaid;
  6130. fieldValue[TBody.SlotID.hairR] = isMaid;
  6131. fieldValue[TBody.SlotID.hairS] = isMaid;
  6132. fieldValue[TBody.SlotID.hairT] = isMaid;
  6133. fieldValue[TBody.SlotID.hairAho] = isMaid;
  6134. fieldValue[TBody.SlotID.chikubi] = isMaid;
  6135. fieldValue[TBody.SlotID.underhair] = isMaid;
  6136. fieldValue[TBody.SlotID.moza] = isMaid;
  6137. if (maid.body0.goSlot[19].m_strModelFileName.Contains("melala_body"))
  6138. {
  6139. fieldValue[TBody.SlotID.accHana] = isMaid;
  6140. }
  6141. maid.body0.FixMaskFlag();
  6142. maid.body0.FixVisibleFlag(false);
  6143. }
  6144. if (isLook[selectMaidIndex] != isLookn[selectMaidIndex])
  6145. {
  6146. isLookn[selectMaidIndex] = isLook[selectMaidIndex];
  6147. if (isLook[selectMaidIndex])
  6148. {
  6149. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  6150. maid.body0.boHeadToCam = true;
  6151. maid.body0.boEyeToCam = true;
  6152. maid.body0.trsLookTarget = null;
  6153. }
  6154. else
  6155. {
  6156. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  6157. maid.body0.boHeadToCam = true;
  6158. maid.body0.boEyeToCam = true;
  6159. }
  6160. }
  6161. if (isLook[selectMaidIndex])
  6162. {
  6163. if (maid.body0.offsetLookTarget.x != (double)lookY[selectMaidIndex])
  6164. {
  6165. int num = !isLock[selectMaidIndex] ? 1 : (lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  6166. maid.body0.offsetLookTarget =
  6167. num != 0
  6168. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  6169. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  6170. }
  6171. if (lookX[selectMaidIndex] != (double)lookXn[selectMaidIndex])
  6172. {
  6173. lookXn[selectMaidIndex] = lookX[selectMaidIndex];
  6174. maid.body0.offsetLookTarget = new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex]);
  6175. }
  6176. if (lookY[selectMaidIndex] != (double)lookYn[selectMaidIndex])
  6177. {
  6178. lookYn[selectMaidIndex] = lookY[selectMaidIndex];
  6179. int num = !isLock[selectMaidIndex] ? 1 : (lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  6180. maid.body0.offsetLookTarget =
  6181. num != 0
  6182. ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex])
  6183. : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  6184. }
  6185. }
  6186. if (isHanten)
  6187. {
  6188. isHanten = false;
  6189. SetHanten(maid, selectMaidIndex);
  6190. }
  6191. if (hanten[selectMaidIndex] != hantenn[selectMaidIndex])
  6192. {
  6193. hantenn[selectMaidIndex] = hanten[selectMaidIndex];
  6194. isStop[selectMaidIndex] = true;
  6195. isLock[selectMaidIndex] = true;
  6196. isHanten = true;
  6197. }
  6198. if (voice1[selectMaidIndex] != voice1n[selectMaidIndex])
  6199. {
  6200. voice1n[selectMaidIndex] = voice1[selectMaidIndex];
  6201. if (voice1[selectMaidIndex])
  6202. {
  6203. zFlg[selectMaidIndex] = true;
  6204. xFlg[selectMaidIndex] = false;
  6205. voice2[selectMaidIndex] = false;
  6206. voice2n[selectMaidIndex] = false;
  6207. }
  6208. else
  6209. {
  6210. zFlg[selectMaidIndex] = false;
  6211. }
  6212. }
  6213. if (voice2[selectMaidIndex] != voice2n[selectMaidIndex])
  6214. {
  6215. voice2n[selectMaidIndex] = voice2[selectMaidIndex];
  6216. if (voice2[selectMaidIndex])
  6217. {
  6218. xFlg[selectMaidIndex] = true;
  6219. zFlg[selectMaidIndex] = false;
  6220. voice1[selectMaidIndex] = false;
  6221. voice1n[selectMaidIndex] = false;
  6222. }
  6223. else
  6224. {
  6225. xFlg[selectMaidIndex] = false;
  6226. }
  6227. }
  6228. for (int index = 0; index < maidCnt; ++index)
  6229. {
  6230. if (!maidArray[index].boMabataki)
  6231. {
  6232. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  6233. }
  6234. }
  6235. }
  6236. }
  6237. }
  6238. if (maidArray[selectMaidIndex] && maidArray[selectMaidIndex].Visible && (isF6 || okFlg && faceFlg))
  6239. {
  6240. if (isFaceInit)
  6241. {
  6242. if (!isDanceChu)
  6243. {
  6244. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  6245. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  6246. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  6247. Maid maid = maidArray[selectMaidIndex];
  6248. maidArray[selectMaidIndex].boMabataki = false;
  6249. morph.EyeMabataki = 0.0f;
  6250. isFaceInit = false;
  6251. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  6252. eyeclose = fieldValue2[(int)morph.hash["eyeclose"]];
  6253. eyeclose2 = fieldValue2[(int)morph.hash["eyeclose2"]];
  6254. eyeclose3 = fieldValue2[(int)morph.hash["eyeclose3"]];
  6255. eyeclose6 = fieldValue2[(int)morph.hash["eyeclose6"]];
  6256. hitomih = fieldValue1[(int)morph.hash["hitomih"]];
  6257. hitomis = fieldValue1[(int)morph.hash["hitomis"]];
  6258. mayuha = fieldValue1[(int)morph.hash["mayuha"]];
  6259. mayuup = fieldValue1[(int)morph.hash["mayuup"]];
  6260. mayuv = fieldValue1[(int)morph.hash["mayuv"]];
  6261. mayuvhalf = fieldValue1[(int)morph.hash["mayuvhalf"]];
  6262. moutha = fieldValue1[(int)morph.hash["moutha"]];
  6263. mouths = fieldValue1[(int)morph.hash["mouths"]];
  6264. mouthdw = fieldValue1[(int)morph.hash["mouthdw"]];
  6265. mouthup = fieldValue1[(int)morph.hash["mouthup"]];
  6266. tangout = fieldValue1[(int)morph.hash["tangout"]];
  6267. tangup = fieldValue1[(int)morph.hash["tangup"]];
  6268. eyebig = fieldValue1[(int)morph.hash["eyebig"]];
  6269. eyeclose5 = fieldValue2[(int)morph.hash["eyeclose5"]];
  6270. mayuw = fieldValue1[(int)morph.hash["mayuw"]];
  6271. mouthhe = fieldValue1[(int)morph.hash["mouthhe"]];
  6272. mouthc = fieldValue1[(int)morph.hash["mouthc"]];
  6273. mouthi = fieldValue1[(int)morph.hash["mouthi"]];
  6274. mouthuphalf = fieldValue1[(int)morph.hash["mouthuphalf"]];
  6275. try
  6276. {
  6277. tangopen = fieldValue1[(int)morph.hash["tangopen"]];
  6278. }
  6279. catch { }
  6280. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi)
  6281. || maid.body0.GetMask(TBody.SlotID.onepiece);
  6282. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  6283. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  6284. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  6285. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat)
  6286. || maid.body0.GetMask(TBody.SlotID.accHead)
  6287. || maid.body0.GetMask(TBody.SlotID.accKamiSubL)
  6288. || maid.body0.GetMask(TBody.SlotID.accKamiSubR)
  6289. || maid.body0.GetMask(TBody.SlotID.accKami_1_)
  6290. || maid.body0.GetMask(TBody.SlotID.accKami_2_)
  6291. || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  6292. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  6293. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  6294. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  6295. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  6296. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  6297. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  6298. isNamida = fieldValue1[(int)morph.hash["namida"]] > 0.0;
  6299. isTear1 = fieldValue1[(int)morph.hash["tear1"]] > 0.0;
  6300. isTear2 = fieldValue1[(int)morph.hash["tear2"]] > 0.0;
  6301. isTear3 = fieldValue1[(int)morph.hash["tear3"]] > 0.0;
  6302. isShock = fieldValue1[(int)morph.hash["shock"]] > 0.0;
  6303. isYodare = fieldValue1[(int)morph.hash["yodare"]] > 0.0;
  6304. isHoho = fieldValue1[(int)morph.hash["hoho"]] > 0.0;
  6305. isHoho2 = fieldValue1[(int)morph.hash["hoho2"]] > 0.0;
  6306. isHohos = fieldValue1[(int)morph.hash["hohos"]] > 0.0;
  6307. isHohol = fieldValue1[(int)morph.hash["hohol"]] > 0.0;
  6308. isToothoff = fieldValue1[(int)morph.hash["toothoff"]] > 0.0;
  6309. isNosefook = fieldValue1[(int)morph.hash["nosefook"]] > 0.0;
  6310. }
  6311. }
  6312. else
  6313. {
  6314. Maid maid = maidArray[selectMaidIndex];
  6315. if (!yotogiFlg && sceneLevel != 5 && sceneLevel != 3)
  6316. {
  6317. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  6318. {
  6319. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  6320. }
  6321. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  6322. {
  6323. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  6324. }
  6325. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  6326. {
  6327. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  6328. }
  6329. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  6330. {
  6331. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  6332. }
  6333. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  6334. {
  6335. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  6336. }
  6337. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  6338. {
  6339. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  6340. }
  6341. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  6342. {
  6343. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  6344. }
  6345. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  6346. {
  6347. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  6348. }
  6349. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  6350. {
  6351. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  6352. }
  6353. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  6354. {
  6355. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  6356. }
  6357. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  6358. {
  6359. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  6360. }
  6361. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  6362. {
  6363. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  6364. }
  6365. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  6366. {
  6367. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  6368. }
  6369. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  6370. {
  6371. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  6372. }
  6373. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  6374. {
  6375. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  6376. }
  6377. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  6378. {
  6379. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  6380. }
  6381. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  6382. {
  6383. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  6384. }
  6385. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  6386. {
  6387. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  6388. }
  6389. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  6390. {
  6391. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  6392. }
  6393. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  6394. {
  6395. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  6396. }
  6397. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  6398. {
  6399. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  6400. if (mekure1[selectMaidIndex])
  6401. {
  6402. maid.ItemChangeTemp("skirt", "めくれスカート");
  6403. maid.ItemChangeTemp("onepiece", "めくれスカート");
  6404. mekure2[selectMaidIndex] = false;
  6405. mekure2n[selectMaidIndex] = false;
  6406. }
  6407. else
  6408. {
  6409. ResetProp(maid, MPN.skirt);
  6410. ResetProp(maid, MPN.onepiece);
  6411. }
  6412. maid.AllProcPropSeqStart();
  6413. }
  6414. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  6415. {
  6416. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  6417. if (mekure2[selectMaidIndex])
  6418. {
  6419. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  6420. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  6421. mekure1[selectMaidIndex] = false;
  6422. mekure1n[selectMaidIndex] = false;
  6423. }
  6424. else
  6425. {
  6426. ResetProp(maid, MPN.skirt);
  6427. ResetProp(maid, MPN.onepiece);
  6428. }
  6429. maid.AllProcPropSeqStart();
  6430. }
  6431. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  6432. {
  6433. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  6434. if (zurasi[selectMaidIndex])
  6435. {
  6436. maid.ItemChangeTemp("panz", "パンツずらし");
  6437. maid.ItemChangeTemp("mizugi", "パンツずらし");
  6438. }
  6439. else
  6440. {
  6441. ResetProp(maid, MPN.panz);
  6442. ResetProp(maid, MPN.mizugi);
  6443. }
  6444. maid.AllProcPropSeqStart();
  6445. }
  6446. }
  6447. if (!isDanceChu)
  6448. {
  6449. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  6450. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  6451. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  6452. fieldValue2[(int)morph.hash["eyeclose"]] = eyeclose;
  6453. fieldValue2[(int)morph.hash["eyeclose2"]] = eyeclose2;
  6454. fieldValue2[(int)morph.hash["eyeclose3"]] = eyeclose3;
  6455. fieldValue2[(int)morph.hash["eyeclose6"]] = eyeclose6;
  6456. fieldValue1[(int)morph.hash["hitomih"]] = hitomih;
  6457. fieldValue1[(int)morph.hash["hitomis"]] = hitomis;
  6458. fieldValue1[(int)morph.hash["mayuha"]] = mayuha;
  6459. fieldValue1[(int)morph.hash["mayuup"]] = mayuup;
  6460. fieldValue1[(int)morph.hash["mayuv"]] = mayuv;
  6461. fieldValue1[(int)morph.hash["mayuvhalf"]] = mayuvhalf;
  6462. fieldValue1[(int)morph.hash["tangout"]] = tangout;
  6463. fieldValue1[(int)morph.hash["tangup"]] = tangup;
  6464. fieldValue1[(int)morph.hash["eyebig"]] = eyebig;
  6465. fieldValue2[(int)morph.hash["eyeclose5"]] = eyeclose5;
  6466. fieldValue1[(int)morph.hash["mayuw"]] = mayuw;
  6467. try
  6468. {
  6469. fieldValue1[(int)morph.hash["tangopen"]] = tangopen;
  6470. }
  6471. catch { }
  6472. if (!isDanceChu)
  6473. {
  6474. fieldValue1[(int)morph.hash["moutha"]] = moutha;
  6475. fieldValue1[(int)morph.hash["mouths"]] = mouths;
  6476. fieldValue1[(int)morph.hash["mouthdw"]] = mouthdw;
  6477. fieldValue1[(int)morph.hash["mouthup"]] = mouthup;
  6478. fieldValue1[(int)morph.hash["mouthhe"]] = mouthhe;
  6479. fieldValue1[(int)morph.hash["mouthc"]] = mouthc;
  6480. fieldValue1[(int)morph.hash["mouthi"]] = mouthi;
  6481. fieldValue1[(int)morph.hash["mouthuphalf"]] = mouthuphalf;
  6482. }
  6483. if (isNamida)
  6484. {
  6485. fieldValue1[(int)morph.hash["namida"]] = 1f;
  6486. }
  6487. else
  6488. {
  6489. fieldValue1[(int)morph.hash["namida"]] = 0.0f;
  6490. }
  6491. if (isTear1)
  6492. {
  6493. fieldValue1[(int)morph.hash["tear1"]] = 1f;
  6494. }
  6495. else
  6496. {
  6497. fieldValue1[(int)morph.hash["tear1"]] = 0.0f;
  6498. }
  6499. if (isTear2)
  6500. {
  6501. fieldValue1[(int)morph.hash["tear2"]] = 1f;
  6502. }
  6503. else
  6504. {
  6505. fieldValue1[(int)morph.hash["tear2"]] = 0.0f;
  6506. }
  6507. if (isTear3)
  6508. {
  6509. fieldValue1[(int)morph.hash["tear3"]] = 1f;
  6510. }
  6511. else
  6512. {
  6513. fieldValue1[(int)morph.hash["tear3"]] = 0.0f;
  6514. }
  6515. if (isShock)
  6516. {
  6517. fieldValue1[(int)morph.hash["shock"]] = 1f;
  6518. }
  6519. else
  6520. {
  6521. fieldValue1[(int)morph.hash["shock"]] = 0.0f;
  6522. }
  6523. if (isYodare)
  6524. {
  6525. fieldValue1[(int)morph.hash["yodare"]] = 1f;
  6526. }
  6527. else
  6528. {
  6529. fieldValue1[(int)morph.hash["yodare"]] = 0.0f;
  6530. }
  6531. if (isHoho)
  6532. {
  6533. fieldValue1[(int)morph.hash["hoho"]] = 0.5f;
  6534. }
  6535. else
  6536. {
  6537. fieldValue1[(int)morph.hash["hoho"]] = 0.0f;
  6538. }
  6539. if (isHoho2)
  6540. {
  6541. fieldValue1[(int)morph.hash["hoho2"]] = 0.5f;
  6542. }
  6543. else
  6544. {
  6545. fieldValue1[(int)morph.hash["hoho2"]] = 0.0f;
  6546. }
  6547. if (isHohos)
  6548. {
  6549. fieldValue1[(int)morph.hash["hohos"]] = 1f;
  6550. }
  6551. else
  6552. {
  6553. fieldValue1[(int)morph.hash["hohos"]] = 0.0f;
  6554. }
  6555. if (isHohol)
  6556. {
  6557. fieldValue1[(int)morph.hash["hohol"]] = 1f;
  6558. }
  6559. else
  6560. {
  6561. fieldValue1[(int)morph.hash["hohol"]] = 0.0f;
  6562. }
  6563. if (isToothoff)
  6564. {
  6565. fieldValue1[(int)morph.hash["toothoff"]] = 1f;
  6566. }
  6567. else
  6568. {
  6569. fieldValue1[(int)morph.hash["toothoff"]] = 0.0f;
  6570. }
  6571. morph.boNoseFook = isNosefook;
  6572. for (int index = 0; index < maidCnt; ++index)
  6573. {
  6574. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  6575. }
  6576. }
  6577. }
  6578. }
  6579. if (isF6 && !okFlg && (!escFlg && Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Tab)))
  6580. {
  6581. bGui = !bGui;
  6582. }
  6583. if (isF6 && maidArray[0] != null && maidArray[0].Visible)
  6584. {
  6585. for (int index = 0; index < 999; ++index)
  6586. {
  6587. if (gDogu[index] != null)
  6588. {
  6589. gDogu[index].GetComponent<Renderer>().enabled = false;
  6590. gDogu[index].SetActive(false);
  6591. if (mDogu[index].del)
  6592. {
  6593. mDogu[index].del = false;
  6594. GraphicsUtils.Destroy(doguBObject[index]);
  6595. doguBObject.RemoveAt(index);
  6596. }
  6597. else if (mDogu[index].count > 0)
  6598. {
  6599. --mDogu[index].count;
  6600. if (doguBObject.Count > index && doguBObject[index] != null
  6601. && doguBObject[index].name.StartsWith("Particle/p"))
  6602. {
  6603. if (mDogu[index].count == 1)
  6604. {
  6605. doguBObject[index].SetActive(false);
  6606. }
  6607. if (mDogu[index].count == 0)
  6608. {
  6609. doguBObject[index].SetActive(true);
  6610. switch (doguBObject[index].name)
  6611. {
  6612. case "Particle/pLineY":
  6613. mDogu[index].count = 180;
  6614. break;
  6615. case "Particle/pLineP02":
  6616. mDogu[index].count = 115;
  6617. break;
  6618. case "Particle/pLine_act2":
  6619. mDogu[index].count = 90;
  6620. break;
  6621. case "Particle/pHeart01":
  6622. mDogu[index].count = 77;
  6623. break;
  6624. }
  6625. }
  6626. }
  6627. }
  6628. }
  6629. }
  6630. ikMode2 = !Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Shift)
  6631. ? (!Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Ctrl)
  6632. ? (!Input.GetKey(KeyCode.X) || !getModKeyPressing(modKey.Shift)
  6633. ? (!Input.GetKey(KeyCode.X)
  6634. ? (!Input.GetKey(KeyCode.Z)
  6635. ? (!Input.GetKey(KeyCode.C)
  6636. ? (!Input.GetKey(KeyCode.D) ? 0 : 15)
  6637. : 13)
  6638. : 10)
  6639. : 9)
  6640. : 14)
  6641. : 12)
  6642. : 11;
  6643. if (gBg != null)
  6644. {
  6645. if (!isCube3)
  6646. {
  6647. gBg.GetComponent<Renderer>().enabled = false;
  6648. gBg.SetActive(false);
  6649. }
  6650. else
  6651. {
  6652. if (ikMode2 > 0 && ikMode2 != 15)
  6653. {
  6654. gBg.GetComponent<Renderer>().enabled = true;
  6655. gBg.SetActive(true);
  6656. }
  6657. else
  6658. {
  6659. gBg.GetComponent<Renderer>().enabled = false;
  6660. gBg.SetActive(false);
  6661. }
  6662. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  6663. {
  6664. gBg.GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  6665. }
  6666. if (ikMode2 == 9 || ikMode2 == 14)
  6667. {
  6668. gBg.GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  6669. mBg.Update();
  6670. }
  6671. if (ikMode2 == 13)
  6672. {
  6673. gBg.GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  6674. mBg.Update();
  6675. }
  6676. if (ikMode2 == 13)
  6677. {
  6678. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && gBg)
  6679. {
  6680. mBg.ido = 5;
  6681. mBg.reset = true;
  6682. }
  6683. else
  6684. {
  6685. gBg.transform.position = bg.position;
  6686. gBg.transform.eulerAngles = bg.eulerAngles;
  6687. mBg.maid = bgObject;
  6688. mBg.ido = 5;
  6689. }
  6690. }
  6691. else if (ikMode2 == 11)
  6692. {
  6693. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && gBg)
  6694. {
  6695. mBg.ido = 3;
  6696. mBg.reset = true;
  6697. }
  6698. else
  6699. {
  6700. gBg.transform.position = bg.position;
  6701. gBg.transform.eulerAngles = bg.eulerAngles;
  6702. mBg.maid = bgObject;
  6703. mBg.ido = 3;
  6704. }
  6705. }
  6706. else if (ikMode2 == 12)
  6707. {
  6708. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && gBg)
  6709. {
  6710. mBg.ido = 2;
  6711. mBg.reset = true;
  6712. }
  6713. else
  6714. {
  6715. gBg.transform.position = bg.position;
  6716. gBg.transform.eulerAngles = bg.eulerAngles;
  6717. mBg.maid = bgObject;
  6718. mBg.ido = 2;
  6719. }
  6720. }
  6721. else if (ikMode2 == 10)
  6722. {
  6723. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && gBg)
  6724. {
  6725. mBg.ido = 1;
  6726. mBg.reset = true;
  6727. }
  6728. else
  6729. {
  6730. gBg.transform.position = bg.position;
  6731. gBg.transform.eulerAngles = bg.eulerAngles;
  6732. mBg.maid = bgObject;
  6733. mBg.ido = 1;
  6734. }
  6735. }
  6736. else if (ikMode2 == 9)
  6737. {
  6738. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && gBg)
  6739. {
  6740. mBg.ido = 4;
  6741. mBg.reset = true;
  6742. }
  6743. else
  6744. {
  6745. gBg.transform.position = bg.position;
  6746. gBg.transform.eulerAngles = bg.eulerAngles;
  6747. mBg.maid = bgObject;
  6748. mBg.ido = 4;
  6749. }
  6750. }
  6751. else if (ikMode2 == 14)
  6752. {
  6753. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && gBg)
  6754. {
  6755. mBg.ido = 6;
  6756. mBg.reset = true;
  6757. }
  6758. else
  6759. {
  6760. gBg.transform.position = bg.position;
  6761. gBg.transform.eulerAngles = bg.eulerAngles;
  6762. mBg.maid = bgObject;
  6763. mBg.ido = 6;
  6764. }
  6765. }
  6766. }
  6767. }
  6768. for (int index = 0; index < lightIndex.Count; ++index)
  6769. {
  6770. if (gLight[0] == null)
  6771. {
  6772. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  6773. gLight[0].GetComponent<Renderer>().material =
  6774. new Material(Shader.Find("Transparent/Diffuse")) { color = new Color(0.5f, 0.5f, 1f, 0.8f) };
  6775. gLight[0].layer = 8;
  6776. gLight[0].GetComponent<Renderer>().enabled = false;
  6777. gLight[0].SetActive(false);
  6778. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  6779. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  6780. mLight[0].obj = gLight[0];
  6781. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  6782. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  6783. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  6784. mLight[0].ido = 1;
  6785. mLight[0].isScale = false;
  6786. }
  6787. if (gLight[index] != null)
  6788. {
  6789. if (!isCube4)
  6790. {
  6791. gLight[index].GetComponent<Renderer>().enabled = false;
  6792. gLight[index].SetActive(false);
  6793. }
  6794. else if (lightList[index].GetComponent<Light>().type == LightType.Spot
  6795. || lightList[index].GetComponent<Light>().type == LightType.Point)
  6796. {
  6797. if (ikMode2 > 0 && ikMode2 != 15)
  6798. {
  6799. gLight[index].GetComponent<Renderer>().enabled = true;
  6800. gLight[index].SetActive(true);
  6801. }
  6802. else
  6803. {
  6804. gLight[index].GetComponent<Renderer>().enabled = false;
  6805. gLight[index].SetActive(false);
  6806. mLight[index].isAlt = false;
  6807. }
  6808. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  6809. {
  6810. gLight[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  6811. if (mLight[index].isAlt)
  6812. {
  6813. gLight[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  6814. }
  6815. }
  6816. if (ikMode2 == 9 || ikMode2 == 14)
  6817. {
  6818. gLight[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  6819. mLight[index].Update();
  6820. }
  6821. if (ikMode2 == 13)
  6822. {
  6823. gLight[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  6824. mLight[index].Update();
  6825. }
  6826. if (ikMode2 == 13)
  6827. {
  6828. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && gLight[index])
  6829. {
  6830. mLight[index].ido = 15;
  6831. mLight[index].reset = true;
  6832. }
  6833. else
  6834. {
  6835. if (lightList[index].transform.localScale.x == 1.0)
  6836. {
  6837. lightList[index].transform.localScale =
  6838. new Vector3(lightRange[index], lightRange[index], lightRange[index]);
  6839. }
  6840. lightRange[index] = lightList[index].transform.localScale.x;
  6841. gLight[index].transform.position = lightList[index].transform.position;
  6842. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6843. mLight[index].maid = lightList[index];
  6844. mLight[index].ido = 15;
  6845. }
  6846. }
  6847. else if (ikMode2 == 11)
  6848. {
  6849. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && gLight[index])
  6850. {
  6851. mLight[index].ido = 3;
  6852. mLight[index].reset = true;
  6853. }
  6854. else
  6855. {
  6856. gLight[index].transform.position = lightList[index].transform.position;
  6857. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6858. lightX[index] = gLight[index].transform.eulerAngles.x;
  6859. lightY[index] = gLight[index].transform.eulerAngles.y;
  6860. mLight[index].maid = lightList[index];
  6861. mLight[index].ido = 3;
  6862. }
  6863. }
  6864. else if (ikMode2 == 12)
  6865. {
  6866. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && gLight[index])
  6867. {
  6868. mLight[index].ido = 2;
  6869. mLight[index].reset = true;
  6870. }
  6871. else
  6872. {
  6873. gLight[index].transform.position = lightList[index].transform.position;
  6874. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6875. mLight[index].maid = lightList[index];
  6876. mLight[index].ido = 2;
  6877. }
  6878. }
  6879. else if (ikMode2 == 10)
  6880. {
  6881. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && gLight[index])
  6882. {
  6883. mLight[index].ido = 1;
  6884. mLight[index].reset = true;
  6885. }
  6886. else
  6887. {
  6888. gLight[index].transform.position = lightList[index].transform.position;
  6889. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6890. mLight[index].maid = lightList[index];
  6891. mLight[index].ido = 1;
  6892. }
  6893. }
  6894. else if (ikMode2 == 9)
  6895. {
  6896. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && gLight[index])
  6897. {
  6898. mLight[index].ido = 4;
  6899. mLight[index].reset = true;
  6900. }
  6901. else
  6902. {
  6903. gLight[index].transform.position = lightList[index].transform.position;
  6904. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6905. lightX[index] = gLight[index].transform.eulerAngles.x;
  6906. lightY[index] = gLight[index].transform.eulerAngles.y;
  6907. mLight[index].maid = lightList[index];
  6908. mLight[index].ido = 4;
  6909. }
  6910. }
  6911. else if (ikMode2 == 14)
  6912. {
  6913. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && gLight[index])
  6914. {
  6915. mLight[index].ido = 6;
  6916. mLight[index].reset = true;
  6917. }
  6918. else
  6919. {
  6920. gLight[index].transform.position = lightList[index].transform.position;
  6921. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  6922. lightX[index] = gLight[index].transform.eulerAngles.x;
  6923. lightY[index] = gLight[index].transform.eulerAngles.y;
  6924. mLight[index].maid = lightList[index];
  6925. mLight[index].ido = 6;
  6926. }
  6927. }
  6928. }
  6929. }
  6930. }
  6931. for (int index = 0; index < doguBObject.Count; ++index)
  6932. {
  6933. if (!isCube2)
  6934. {
  6935. gDogu[index].GetComponent<Renderer>().enabled = false;
  6936. gDogu[index].SetActive(false);
  6937. }
  6938. else
  6939. {
  6940. if (ikMode2 > 0)
  6941. {
  6942. gDogu[index].GetComponent<Renderer>().enabled = true;
  6943. gDogu[index].SetActive(true);
  6944. }
  6945. else
  6946. {
  6947. gDogu[index].GetComponent<Renderer>().enabled = false;
  6948. gDogu[index].SetActive(false);
  6949. mDogu[index].isAlt = false;
  6950. }
  6951. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  6952. {
  6953. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  6954. if (mDogu[index].isAlt)
  6955. {
  6956. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  6957. }
  6958. }
  6959. if (ikMode2 == 9 || ikMode2 == 14)
  6960. {
  6961. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  6962. mDogu[index].Update();
  6963. }
  6964. if (ikMode2 == 15)
  6965. {
  6966. gDogu[index].GetComponent<Renderer>().material.color = new Color(1f, 0.3f, 0.3f, 0.5f);
  6967. }
  6968. if (ikMode2 == 13)
  6969. {
  6970. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  6971. mDogu[index].Update();
  6972. }
  6973. if (ikMode2 == 13)
  6974. {
  6975. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && gDogu[index])
  6976. {
  6977. mDogu[index].ido = 5;
  6978. mDogu[index].reset = true;
  6979. }
  6980. else
  6981. {
  6982. gDogu[index].transform.position = doguBObject[index].transform.position;
  6983. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6984. mDogu[index].maid = doguBObject[index];
  6985. mDogu[index].ido = 5;
  6986. }
  6987. }
  6988. else if (ikMode2 == 11)
  6989. {
  6990. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && gDogu[index])
  6991. {
  6992. mDogu[index].ido = 3;
  6993. mDogu[index].reset = true;
  6994. }
  6995. else
  6996. {
  6997. gDogu[index].transform.position = doguBObject[index].transform.position;
  6998. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  6999. mDogu[index].maid = doguBObject[index];
  7000. mDogu[index].ido = 3;
  7001. }
  7002. }
  7003. else if (ikMode2 == 12)
  7004. {
  7005. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && gDogu[index])
  7006. {
  7007. mDogu[index].ido = 2;
  7008. mDogu[index].reset = true;
  7009. }
  7010. else
  7011. {
  7012. gDogu[index].transform.position = doguBObject[index].transform.position;
  7013. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  7014. mDogu[index].maid = doguBObject[index];
  7015. mDogu[index].ido = 2;
  7016. }
  7017. }
  7018. else if (ikMode2 == 10)
  7019. {
  7020. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && gDogu[index])
  7021. {
  7022. mDogu[index].ido = 1;
  7023. mDogu[index].reset = true;
  7024. }
  7025. else
  7026. {
  7027. gDogu[index].transform.position = doguBObject[index].transform.position;
  7028. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  7029. mDogu[index].maid = doguBObject[index];
  7030. mDogu[index].maidArray = doguBObject.ToArray();
  7031. mDogu[index].mArray = ((IEnumerable<MouseDrag6>)mDogu).ToArray();
  7032. mDogu[index].ido = 1;
  7033. }
  7034. }
  7035. else if (ikMode2 == 9)
  7036. {
  7037. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && gDogu[index])
  7038. {
  7039. mDogu[index].ido = 4;
  7040. mDogu[index].reset = true;
  7041. }
  7042. else
  7043. {
  7044. gDogu[index].transform.position = doguBObject[index].transform.position;
  7045. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  7046. mDogu[index].maid = doguBObject[index];
  7047. mDogu[index].ido = 4;
  7048. }
  7049. }
  7050. else if (ikMode2 == 14)
  7051. {
  7052. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && gDogu[index])
  7053. {
  7054. mDogu[index].ido = 6;
  7055. mDogu[index].reset = true;
  7056. }
  7057. else
  7058. {
  7059. gDogu[index].transform.position = doguBObject[index].transform.position;
  7060. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  7061. mDogu[index].maid = doguBObject[index];
  7062. mDogu[index].ido = 6;
  7063. }
  7064. }
  7065. else if (ikMode2 == 15)
  7066. {
  7067. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 15 && gDogu[index])
  7068. {
  7069. mDogu[index].ido = 7;
  7070. mDogu[index].reset = true;
  7071. }
  7072. else
  7073. {
  7074. gDogu[index].transform.position = doguBObject[index].transform.position;
  7075. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  7076. mDogu[index].maid = doguBObject[index];
  7077. mDogu[index].ido = 7;
  7078. }
  7079. }
  7080. }
  7081. }
  7082. ikModeOld2 = ikMode2;
  7083. Vector3 vector3_2 = mainCameraTransform.TransformDirection(Vector3.forward);
  7084. Vector3 vector3_3 = mainCameraTransform.TransformDirection(Vector3.right);
  7085. vector3_1 = mainCameraTransform.TransformDirection(Vector3.up);
  7086. if (Input.GetKeyDown(KeyCode.Y) && getModKeyPressing(modKey.Shift))
  7087. {
  7088. keyFlg = true;
  7089. --bgIndex;
  7090. if (bgIndex <= -1)
  7091. {
  7092. bgIndex = bgArray.Length - 1;
  7093. }
  7094. if (!moveBg)
  7095. {
  7096. bg.localScale = new Vector3(1f, 1f, 1f);
  7097. if (bgArray[bgIndex].Length == 36)
  7098. {
  7099. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  7100. }
  7101. else
  7102. {
  7103. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  7104. }
  7105. bgCombo.selectedItemIndex = bgIndex;
  7106. }
  7107. }
  7108. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.E))
  7109. {
  7110. keyFlg = true;
  7111. bg.localScale = new Vector3(bg.localScale.x * 1.005f, bg.localScale.y * 1.005f, bg.localScale.z * 1.005f);
  7112. }
  7113. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.D))
  7114. {
  7115. keyFlg = true;
  7116. bg.localScale = new Vector3(bg.localScale.x * 0.995f, bg.localScale.y * 0.995f, bg.localScale.z * 0.995f);
  7117. }
  7118. else if (Input.GetKey(KeyCode.Y) && Input.GetKeyDown(KeyCode.C))
  7119. {
  7120. keyFlg = true;
  7121. bg.localScale = new Vector3(1f, 1f, 1f);
  7122. }
  7123. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.J))
  7124. {
  7125. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  7126. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  7127. if (Input.GetKey(KeyCode.Y))
  7128. {
  7129. keyFlg = true;
  7130. }
  7131. }
  7132. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.L))
  7133. {
  7134. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed
  7135. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  7136. if (Input.GetKey(KeyCode.Y))
  7137. {
  7138. keyFlg = true;
  7139. }
  7140. }
  7141. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.J))
  7142. {
  7143. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  7144. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  7145. if (Input.GetKey(KeyCode.Y))
  7146. {
  7147. keyFlg = true;
  7148. }
  7149. }
  7150. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.L))
  7151. {
  7152. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed
  7153. + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  7154. if (Input.GetKey(KeyCode.Y))
  7155. {
  7156. keyFlg = true;
  7157. }
  7158. }
  7159. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I))
  7160. {
  7161. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed;
  7162. if (Input.GetKey(KeyCode.Y))
  7163. {
  7164. keyFlg = true;
  7165. }
  7166. }
  7167. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K))
  7168. {
  7169. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed;
  7170. if (Input.GetKey(KeyCode.Y))
  7171. {
  7172. keyFlg = true;
  7173. }
  7174. }
  7175. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.J))
  7176. {
  7177. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  7178. if (Input.GetKey(KeyCode.Y))
  7179. {
  7180. keyFlg = true;
  7181. }
  7182. }
  7183. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.L))
  7184. {
  7185. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  7186. if (Input.GetKey(KeyCode.Y))
  7187. {
  7188. keyFlg = true;
  7189. }
  7190. }
  7191. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.Alpha0))
  7192. {
  7193. Vector3 position = bg.position;
  7194. position.y -= 0.015f * speed;
  7195. bg.localPosition = position;
  7196. if (Input.GetKey(KeyCode.Y))
  7197. {
  7198. keyFlg = true;
  7199. }
  7200. }
  7201. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.P))
  7202. {
  7203. Vector3 position = bg.position;
  7204. position.y += 0.015f * speed;
  7205. bg.localPosition = position;
  7206. if (Input.GetKey(KeyCode.Y))
  7207. {
  7208. keyFlg = true;
  7209. }
  7210. }
  7211. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.U))
  7212. {
  7213. bg.RotateAround(maidArray[0].transform.position, Vector3.up, 0.7f);
  7214. if (Input.GetKey(KeyCode.Y))
  7215. {
  7216. keyFlg = true;
  7217. }
  7218. }
  7219. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.O))
  7220. {
  7221. bg.RotateAround(maidArray[0].transform.position, Vector3.up, -0.7f);
  7222. if (Input.GetKey(KeyCode.Y))
  7223. {
  7224. keyFlg = true;
  7225. }
  7226. }
  7227. else if (Input.GetKeyUp(KeyCode.Y))
  7228. {
  7229. if (keyFlg)
  7230. {
  7231. keyFlg = false;
  7232. }
  7233. else
  7234. {
  7235. ++bgIndex;
  7236. if (bgIndex == bgArray.Length)
  7237. {
  7238. bgIndex = 0;
  7239. }
  7240. if (!moveBg)
  7241. {
  7242. bg.localScale = new Vector3(1f, 1f, 1f);
  7243. if (bgArray[bgIndex].Length == 36)
  7244. {
  7245. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  7246. }
  7247. else
  7248. {
  7249. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  7250. }
  7251. bgCombo.selectedItemIndex = bgIndex;
  7252. }
  7253. }
  7254. }
  7255. speed = !getModKeyPressing(modKey.Shift)
  7256. ? (float)(1.0 * Time.deltaTime * 60.0)
  7257. : (float)(5.0 * Time.deltaTime * 60.0);
  7258. if (!isVR || isVR2)
  7259. {
  7260. if (!isVR)
  7261. {
  7262. if (isBloom)
  7263. {
  7264. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  7265. fieldValue.enabled = true;
  7266. fieldValue.bloomIntensity = bloom1;
  7267. fieldValue.bloomBlurIterations = (int)bloom2;
  7268. fieldValue.bloomThreshholdColor = new Color(1f - bloom3, 1f - bloom4, 1f - bloom5);
  7269. fieldValue.hdr = !isBloomA ? Bloom.HDRBloomMode.Auto : Bloom.HDRBloomMode.On;
  7270. isBloom2 = true;
  7271. }
  7272. else if (isBloom2)
  7273. {
  7274. isBloom2 = false;
  7275. Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  7276. fieldValue.enabled = true;
  7277. fieldValue.bloomIntensity = 2.85f;
  7278. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  7279. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  7280. fieldValue.bloomBlurIterations = 3;
  7281. }
  7282. if (isDepth)
  7283. {
  7284. depth_field_.enabled = true;
  7285. depth_field_.focalLength = depth1;
  7286. depth_field_.focalSize = depth2;
  7287. depth_field_.aperture = depth3;
  7288. depth_field_.maxBlurSize = depth4;
  7289. depth_field_.visualizeFocus = isDepthA;
  7290. }
  7291. else
  7292. {
  7293. if (depth_field_ == null)
  7294. {
  7295. depth_field_ = GameMain.Instance.MainCamera.gameObject.AddComponent<DepthOfFieldScatter>();
  7296. if (depth_field_.dofHdrShader == null)
  7297. {
  7298. depth_field_.dofHdrShader = Shader.Find("Hidden/Dof/DepthOfFieldHdr");
  7299. }
  7300. if (depth_field_.dx11BokehShader == null)
  7301. {
  7302. depth_field_.dx11BokehShader = Shader.Find("Hidden/Dof/DX11Dof");
  7303. }
  7304. if (depth_field_.dx11BokehTexture == null)
  7305. {
  7306. depth_field_.dx11BokehTexture = Resources.Load("Textures/hexShape") as Texture2D;
  7307. }
  7308. }
  7309. depth_field_.enabled = false;
  7310. }
  7311. if (isFog)
  7312. {
  7313. if (fog_.fogShader == null)
  7314. {
  7315. fog_.fogShader = Shader.Find("Hidden/GlobalFog");
  7316. }
  7317. fog_.enabled = true;
  7318. fog_.startDistance = fog1;
  7319. fog_.globalDensity = fog2;
  7320. fog_.heightScale = fog3;
  7321. fog_.height = fog4;
  7322. fog_.globalFogColor.r = fog5;
  7323. fog_.globalFogColor.g = fog6;
  7324. fog_.globalFogColor.b = fog7;
  7325. }
  7326. else
  7327. {
  7328. if (fog_ == null)
  7329. {
  7330. fog_ = GameMain.Instance.MainCamera.gameObject.AddComponent<GlobalFog>();
  7331. }
  7332. fog_.enabled = false;
  7333. }
  7334. if (isSepia)
  7335. {
  7336. if (sepia_tone_.shader == null)
  7337. {
  7338. sepia_tone_.shader = Shader.Find("Hidden/Sepiatone Effect");
  7339. }
  7340. sepia_tone_.enabled = true;
  7341. }
  7342. else
  7343. {
  7344. if (sepia_tone_ == null)
  7345. {
  7346. sepia_tone_ = GameMain.Instance.MainCamera.gameObject.AddComponent<SepiaToneEffect>();
  7347. }
  7348. sepia_tone_.enabled = false;
  7349. }
  7350. if (bokashi > 0.0)
  7351. {
  7352. Blur component = GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>();
  7353. component.enabled = true;
  7354. component.blurSize = bokashi / 10f;
  7355. component.blurIterations = 0;
  7356. component.downsample = 0;
  7357. if (bokashi > 3.0)
  7358. {
  7359. component.blurSize -= 0.3f;
  7360. component.blurIterations = 1;
  7361. component.downsample = 1;
  7362. }
  7363. }
  7364. else
  7365. {
  7366. GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>().enabled = false;
  7367. }
  7368. if (kamiyure > 0.0)
  7369. {
  7370. for (int index1 = 0; index1 < maidCnt; ++index1)
  7371. {
  7372. Maid maid = maidArray[index1];
  7373. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  7374. {
  7375. if (maid.body0.goSlot[index2].obj != null)
  7376. {
  7377. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  7378. if (component != null && component.enabled)
  7379. {
  7380. component.m_Gravity = new Vector3(softG.x * 5f, softG.y * 5f + kamiyure, softG.z * 5f);
  7381. }
  7382. }
  7383. List<THair1> fieldValue =
  7384. GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
  7385. for (int index3 = 0; index3 < fieldValue.Count; ++index3)
  7386. {
  7387. fieldValue[index3].SoftG = new Vector3(softG.x, softG.y + kamiyure, softG.z);
  7388. }
  7389. }
  7390. }
  7391. }
  7392. if (isBlur)
  7393. {
  7394. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  7395. component.mode = Vignetting.AberrationMode.Simple;
  7396. component.intensity = blur1;
  7397. component.chromaticAberration = blur4;
  7398. component.blur = blur2;
  7399. component.blurSpread = blur3;
  7400. component.enabled = true;
  7401. isBlur2 = true;
  7402. }
  7403. else if (isBlur2)
  7404. {
  7405. isBlur2 = false;
  7406. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  7407. component.mode = Vignetting.AberrationMode.Simple;
  7408. component.intensity = -3.98f;
  7409. component.chromaticAberration = -0.75f;
  7410. component.axialAberration = 1.18f;
  7411. component.blurSpread = 4.19f;
  7412. component.luminanceDependency = 0.494f;
  7413. component.blurDistance = 1.71f;
  7414. component.enabled = false;
  7415. }
  7416. }
  7417. if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.I))
  7418. {
  7419. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  7420. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  7421. }
  7422. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.K))
  7423. {
  7424. if (GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  7425. {
  7426. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  7427. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  7428. }
  7429. }
  7430. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.J))
  7431. {
  7432. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  7433. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  7434. }
  7435. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.L))
  7436. {
  7437. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  7438. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  7439. }
  7440. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  7441. {
  7442. GameMain.Instance.MainLight.Reset();
  7443. GameMain.Instance.MainLight.SetIntensity(0.95f);
  7444. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  7445. lightIndex[0] = 0;
  7446. lightColorR[0] = 1f;
  7447. lightColorG[0] = 1f;
  7448. lightColorB[0] = 1f;
  7449. lightX[0] = 40f;
  7450. lightY[0] = 180f;
  7451. lightAkarusa[0] = 0.95f;
  7452. lightKage[0] = 0.098f;
  7453. lightRange[0] = 50f;
  7454. bgObject.SetActive(true);
  7455. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  7456. isIdx1 = false;
  7457. isIdx2 = false;
  7458. isIdx3 = false;
  7459. isIdx4 = false;
  7460. }
  7461. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus) && getModKeyPressing(modKey.Shift))
  7462. {
  7463. List<float> lightColorR;
  7464. (lightColorR = this.lightColorR)[0] = lightColorR[0] + 0.01f;
  7465. if (this.lightColorR[0] > 1.0)
  7466. {
  7467. this.lightColorR[0] = 1f;
  7468. }
  7469. if (lightIndex[0] != 3)
  7470. {
  7471. GameMain.Instance.MainLight.GetComponent<Light>().color =
  7472. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  7473. }
  7474. else
  7475. {
  7476. mainCamera.GetComponent<Camera>().backgroundColor =
  7477. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  7478. }
  7479. }
  7480. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote) && getModKeyPressing(modKey.Shift))
  7481. {
  7482. List<float> lightColorG;
  7483. (lightColorG = this.lightColorG)[0] = lightColorG[0] + 0.01f;
  7484. if (this.lightColorG[0] > 1.0)
  7485. {
  7486. this.lightColorG[0] = 1f;
  7487. }
  7488. if (lightIndex[0] != 3)
  7489. {
  7490. GameMain.Instance.MainLight.GetComponent<Light>().color =
  7491. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  7492. }
  7493. else
  7494. {
  7495. mainCamera.GetComponent<Camera>().backgroundColor =
  7496. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  7497. }
  7498. }
  7499. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket) && getModKeyPressing(modKey.Shift))
  7500. {
  7501. List<float> lightColorB;
  7502. (lightColorB = this.lightColorB)[0] = lightColorB[0] + 0.01f;
  7503. if (this.lightColorB[0] > 1.0)
  7504. {
  7505. this.lightColorB[0] = 1f;
  7506. }
  7507. if (lightIndex[0] != 3)
  7508. {
  7509. GameMain.Instance.MainLight.GetComponent<Light>().color =
  7510. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  7511. }
  7512. else
  7513. {
  7514. mainCamera.GetComponent<Camera>().backgroundColor =
  7515. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  7516. }
  7517. }
  7518. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus))
  7519. {
  7520. List<float> lightColorR;
  7521. (lightColorR = this.lightColorR)[0] = lightColorR[0] - 0.01f;
  7522. if (this.lightColorR[0] < 0.0)
  7523. {
  7524. this.lightColorR[0] = 0.0f;
  7525. }
  7526. if (lightIndex[0] != 3)
  7527. {
  7528. GameMain.Instance.MainLight.GetComponent<Light>().color =
  7529. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  7530. }
  7531. else
  7532. {
  7533. mainCamera.GetComponent<Camera>().backgroundColor =
  7534. new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  7535. }
  7536. }
  7537. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  7538. {
  7539. List<float> lightColorG;
  7540. (lightColorG = this.lightColorG)[0] = lightColorG[0] - 0.01f;
  7541. if (this.lightColorG[0] < 0.0)
  7542. {
  7543. this.lightColorG[0] = 0.0f;
  7544. }
  7545. if (lightIndex[0] != 3)
  7546. {
  7547. GameMain.Instance.MainLight.GetComponent<Light>().color =
  7548. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  7549. }
  7550. else
  7551. {
  7552. mainCamera.GetComponent<Camera>().backgroundColor =
  7553. new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  7554. }
  7555. }
  7556. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  7557. {
  7558. List<float> lightColorB;
  7559. (lightColorB = this.lightColorB)[0] = lightColorB[0] - 0.01f;
  7560. if (this.lightColorB[0] < 0.0)
  7561. {
  7562. this.lightColorB[0] = 0.0f;
  7563. }
  7564. if (lightIndex[0] != 3)
  7565. {
  7566. GameMain.Instance.MainLight.GetComponent<Light>().color =
  7567. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  7568. }
  7569. else
  7570. {
  7571. mainCamera.GetComponent<Camera>().backgroundColor =
  7572. new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  7573. }
  7574. }
  7575. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha0))
  7576. {
  7577. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.12f * Time.deltaTime;
  7578. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  7579. }
  7580. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.P))
  7581. {
  7582. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.12f * Time.deltaTime;
  7583. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<Light>().intensity;
  7584. }
  7585. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha9))
  7586. {
  7587. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  7588. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  7589. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  7590. }
  7591. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.O))
  7592. {
  7593. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  7594. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  7595. lightRange[0] = GameMain.Instance.MainLight.GetComponent<Light>().spotAngle;
  7596. }
  7597. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.U))
  7598. {
  7599. List<int> lightIndex;
  7600. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  7601. if (this.lightIndex[0] == 4)
  7602. {
  7603. this.lightIndex[0] = 0;
  7604. }
  7605. lightColorR[0] = 1f;
  7606. lightColorG[0] = 1f;
  7607. lightColorB[0] = 1f;
  7608. lightX[0] = 40f;
  7609. lightY[0] = 180f;
  7610. lightAkarusa[0] = 0.95f;
  7611. lightKage[0] = 0.098f;
  7612. lightRange[0] = 50f;
  7613. GameMain.Instance.MainLight.Reset();
  7614. GameMain.Instance.MainLight.SetIntensity(0.95f);
  7615. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  7616. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  7617. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  7618. if (this.lightIndex[0] == 0)
  7619. {
  7620. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  7621. bgObject.SetActive(true);
  7622. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  7623. }
  7624. else if (this.lightIndex[0] == 1)
  7625. {
  7626. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  7627. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  7628. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  7629. if (gLight[0] == null)
  7630. {
  7631. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  7632. gLight[0].GetComponent<Renderer>().material =
  7633. new Material(Shader.Find("Transparent/Diffuse")) { color = new Color(0.5f, 0.5f, 1f, 0.8f) };
  7634. gLight[0].layer = 8;
  7635. gLight[0].GetComponent<Renderer>().enabled = false;
  7636. gLight[0].SetActive(false);
  7637. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  7638. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  7639. mLight[0].obj = gLight[0];
  7640. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  7641. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  7642. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  7643. mLight[0].ido = 1;
  7644. mLight[0].isScale = false;
  7645. }
  7646. }
  7647. else if (this.lightIndex[0] == 2)
  7648. {
  7649. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  7650. }
  7651. else if (this.lightIndex[0] == 3)
  7652. {
  7653. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  7654. mainCamera.GetComponent<Camera>().backgroundColor =
  7655. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  7656. bgObject.SetActive(false);
  7657. }
  7658. isIdx1 = false;
  7659. isIdx2 = false;
  7660. isIdx3 = false;
  7661. isIdx4 = false;
  7662. }
  7663. }
  7664. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Insert))
  7665. {
  7666. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  7667. }
  7668. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Delete))
  7669. {
  7670. if (GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  7671. {
  7672. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  7673. }
  7674. }
  7675. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Home))
  7676. {
  7677. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  7678. }
  7679. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.End))
  7680. {
  7681. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  7682. }
  7683. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  7684. {
  7685. GameMain.Instance.MainLight.Reset();
  7686. GameMain.Instance.MainLight.SetIntensity(0.95f);
  7687. }
  7688. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageUp))
  7689. {
  7690. GameMain.Instance.MainLight.GetComponent<Light>().intensity += 0.1f * Time.deltaTime;
  7691. }
  7692. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageDown))
  7693. {
  7694. GameMain.Instance.MainLight.GetComponent<Light>().intensity -= 0.1f * Time.deltaTime;
  7695. }
  7696. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  7697. {
  7698. if (lightIndex[0] == 1)
  7699. {
  7700. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle += 0.2f;
  7701. }
  7702. else
  7703. {
  7704. GameMain.Instance.MainLight.GetComponent<Light>().range += 0.2f;
  7705. }
  7706. }
  7707. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  7708. {
  7709. if (lightIndex[0] == 1)
  7710. {
  7711. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle -= 0.2f;
  7712. }
  7713. else
  7714. {
  7715. GameMain.Instance.MainLight.GetComponent<Light>().range -= 0.2f;
  7716. }
  7717. }
  7718. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.Minus))
  7719. {
  7720. List<int> lightIndex;
  7721. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  7722. if (this.lightIndex[0] == 3)
  7723. {
  7724. this.lightIndex[0] = 0;
  7725. }
  7726. GameMain.Instance.MainLight.Reset();
  7727. GameMain.Instance.MainLight.SetIntensity(0.95f);
  7728. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  7729. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  7730. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  7731. if (this.lightIndex[0] == 0)
  7732. {
  7733. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  7734. }
  7735. else if (this.lightIndex[0] == 1)
  7736. {
  7737. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  7738. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  7739. }
  7740. else if (this.lightIndex[0] == 2)
  7741. {
  7742. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  7743. }
  7744. }
  7745. for (int index = 0; index < lightList.Count; ++index)
  7746. {
  7747. if (index > 0)
  7748. {
  7749. lightList[index].GetComponent<Light>().color =
  7750. new Color(lightColorR[index], lightColorG[index], lightColorB[index]);
  7751. lightList[index].GetComponent<Light>().intensity = lightAkarusa[index];
  7752. lightList[index].GetComponent<Light>().spotAngle = lightRange[index];
  7753. lightList[index].GetComponent<Light>().range = lightRange[index] / 5f;
  7754. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Shift)))
  7755. {
  7756. lightList[index].transform.eulerAngles = new Vector3(lightX[index], lightY[index], 18f);
  7757. }
  7758. }
  7759. else
  7760. {
  7761. GameMain.Instance.MainLight.SetIntensity(lightAkarusa[0]);
  7762. GameMain.Instance.MainLight.GetComponent<Light>().shadowStrength = lightKage[0];
  7763. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !getModKeyPressing(modKey.Shift)))
  7764. {
  7765. GameMain.Instance.MainLight.SetRotation(new Vector3(lightX[0], lightY[0], 18f));
  7766. }
  7767. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = lightRange[index];
  7768. GameMain.Instance.MainLight.GetComponent<Light>().range = lightRange[index] / 5f;
  7769. if (lightIndex[index] != 3)
  7770. {
  7771. GameMain.Instance.MainLight.GetComponent<Light>().color =
  7772. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  7773. }
  7774. else
  7775. {
  7776. mainCamera.GetComponent<Camera>().backgroundColor =
  7777. new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  7778. }
  7779. }
  7780. }
  7781. }
  7782. if (isF6S)
  7783. {
  7784. if (maidCnt < 1)
  7785. {
  7786. ++F6cnt;
  7787. }
  7788. if (F6cnt > 10)
  7789. {
  7790. maidCnt = 1;
  7791. F6cnt = 0;
  7792. }
  7793. for (int index1 = 0; index1 < maidCnt; ++index1)
  7794. {
  7795. if (maidArray[index1] && maidArray[index1].Visible && maidArray[index1].body0.isLoadedBody)
  7796. {
  7797. Maid maid = maidArray[index1];
  7798. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  7799. {
  7800. if (maid.body0.goSlot[index2].bonehair.bodyhit != null
  7801. && maid.body0.goSlot[index2].bonehair.bodyhit.spherelist.Count == 17 && (index2 == 3 || index2 == 4))
  7802. {
  7803. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine", true);
  7804. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine0a", true);
  7805. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1", true);
  7806. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1a", true);
  7807. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Pelvis", true);
  7808. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Hand", true);
  7809. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L UpperArm", true);
  7810. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Forearm", true);
  7811. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Hand", true);
  7812. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R UpperArm", true);
  7813. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Forearm", true);
  7814. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Foot", true);
  7815. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Thigh", true);
  7816. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Calf", true);
  7817. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Foot", true);
  7818. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Thigh", true);
  7819. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Calf", true);
  7820. List<THitSphere> spherelist = maid.body0.goSlot[index2].bonehair.bodyhit.spherelist;
  7821. THitSphere thitSphere1 = new THitSphere();
  7822. THitSphere thitSphere2 = spherelist[0];
  7823. THitSphere thitSphere3 = new THitSphere
  7824. {
  7825. wv = thitSphere2.wv,
  7826. len = thitSphere2.len * 0.8f,
  7827. t = thitSphere2.t,
  7828. vs = thitSphere2.vs
  7829. };
  7830. thitSphere3.vs.y -= 0.04f;
  7831. thitSphere3.vs.x += 0.05f;
  7832. spherelist.Add(thitSphere3);
  7833. THitSphere thitSphere4 = new THitSphere
  7834. {
  7835. len = 0.09f,
  7836. t = transform4
  7837. };
  7838. thitSphere4.vs.z += 0.04f;
  7839. thitSphere4.vs.x -= 0.04f;
  7840. thitSphere4.vs.y -= 0.01f;
  7841. spherelist.Add(thitSphere4);
  7842. THitSphere thitSphere5 = new THitSphere
  7843. {
  7844. len = 0.09f,
  7845. t = transform4
  7846. };
  7847. thitSphere5.vs.z -= 0.04f;
  7848. thitSphere5.vs.x -= 0.04f;
  7849. thitSphere5.vs.y -= 0.01f;
  7850. spherelist.Add(thitSphere5);
  7851. THitSphere thitSphere6 = new THitSphere
  7852. {
  7853. len = 0.09f,
  7854. t = transform3
  7855. };
  7856. thitSphere6.vs.z += 0.035f;
  7857. spherelist.Add(thitSphere6);
  7858. THitSphere thitSphere7 = new THitSphere
  7859. {
  7860. len = 0.09f,
  7861. t = transform3
  7862. };
  7863. thitSphere7.vs.z -= 0.035f;
  7864. spherelist.Add(thitSphere7);
  7865. THitSphere thitSphere8 = new THitSphere
  7866. {
  7867. len = 0.08f,
  7868. t = transform2
  7869. };
  7870. thitSphere8.vs.z += 0.035f;
  7871. spherelist.Add(thitSphere8);
  7872. THitSphere thitSphere9 = new THitSphere
  7873. {
  7874. len = 0.08f,
  7875. t = transform2
  7876. };
  7877. thitSphere9.vs.z -= 0.035f;
  7878. spherelist.Add(thitSphere9);
  7879. THitSphere thitSphere10 = new THitSphere
  7880. {
  7881. len = 0.09f,
  7882. t = transform1
  7883. };
  7884. thitSphere10.vs.z += 0.04f;
  7885. thitSphere10.vs.y -= 0.02f;
  7886. spherelist.Add(thitSphere10);
  7887. THitSphere thitSphere11 = new THitSphere
  7888. {
  7889. len = 0.09f,
  7890. t = transform1
  7891. };
  7892. thitSphere11.vs.z -= 0.04f;
  7893. thitSphere11.vs.y -= 0.02f;
  7894. spherelist.Add(thitSphere11);
  7895. THitSphere thitSphere12 = new THitSphere
  7896. {
  7897. len = 0.11f,
  7898. t = transform5
  7899. };
  7900. thitSphere12.vs.z += 0.05f;
  7901. thitSphere12.vs.y -= 0.03f;
  7902. spherelist.Add(thitSphere12);
  7903. THitSphere thitSphere13 = new THitSphere
  7904. {
  7905. len = 0.11f,
  7906. t = transform5
  7907. };
  7908. thitSphere13.vs.z -= 0.05f;
  7909. thitSphere13.vs.y -= 0.03f;
  7910. spherelist.Add(thitSphere13);
  7911. THitSphere thitSphere14 = new THitSphere
  7912. {
  7913. len = 0.11f,
  7914. t = transform10
  7915. };
  7916. thitSphere14.vs.x -= 0.03f;
  7917. spherelist.Add(thitSphere14);
  7918. THitSphere thitSphere15 = new THitSphere
  7919. {
  7920. len = 0.11f,
  7921. t = transform11
  7922. };
  7923. thitSphere15.vs.x -= 0.03f;
  7924. spherelist.Add(thitSphere15);
  7925. spherelist.Add(new THitSphere() { len = 0.05f, t = transform6 });
  7926. spherelist.Add(new THitSphere() { len = 0.05f, t = transform8 });
  7927. THitSphere thitSphere16 = new THitSphere
  7928. {
  7929. len = 0.05f,
  7930. t = transform7
  7931. };
  7932. thitSphere16.vs.x -= 0.04f;
  7933. spherelist.Add(thitSphere16);
  7934. THitSphere thitSphere17 = new THitSphere
  7935. {
  7936. len = 0.05f,
  7937. t = transform9
  7938. };
  7939. thitSphere17.vs.x -= 0.04f;
  7940. spherelist.Add(thitSphere17);
  7941. THitSphere thitSphere18 = new THitSphere
  7942. {
  7943. len = 0.05f,
  7944. t = transform7
  7945. };
  7946. thitSphere18.vs.x -= 0.08f;
  7947. spherelist.Add(thitSphere18);
  7948. THitSphere thitSphere19 = new THitSphere
  7949. {
  7950. len = 0.05f,
  7951. t = transform9
  7952. };
  7953. thitSphere19.vs.x -= 0.08f;
  7954. spherelist.Add(thitSphere19);
  7955. THitSphere thitSphere20 = new THitSphere
  7956. {
  7957. len = 0.05f,
  7958. t = transform7
  7959. };
  7960. thitSphere20.vs.x -= 0.12f;
  7961. spherelist.Add(thitSphere20);
  7962. THitSphere thitSphere21 = new THitSphere
  7963. {
  7964. len = 0.05f,
  7965. t = transform9
  7966. };
  7967. thitSphere21.vs.x -= 0.12f;
  7968. spherelist.Add(thitSphere21);
  7969. THitSphere thitSphere22 = new THitSphere
  7970. {
  7971. len = 0.05f,
  7972. t = transform7
  7973. };
  7974. thitSphere22.vs.x -= 0.16f;
  7975. spherelist.Add(thitSphere22);
  7976. THitSphere thitSphere23 = new THitSphere
  7977. {
  7978. len = 0.05f,
  7979. t = transform9
  7980. };
  7981. thitSphere23.vs.x -= 0.16f;
  7982. spherelist.Add(thitSphere23);
  7983. }
  7984. }
  7985. }
  7986. }
  7987. }
  7988. }
  7989. }
  7990. }
  7991. }