Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be5aebde3b | ||
|
|
142593a9f2 | ||
|
|
63e8bf3291 | ||
|
|
0268e131f1 | ||
|
|
a3277187cf | ||
|
|
de45ada269 | ||
|
|
5e42873ca2 | ||
|
|
6a0648e3de | ||
|
|
9a114775dd | ||
|
|
45f5aefbaa | ||
|
|
f54efce2eb | ||
|
|
758e37cfab | ||
|
|
a9f9b5efdd | ||
|
|
f7a3a77130 | ||
|
|
97bc1a9c80 | ||
|
|
45bbca6c78 | ||
|
|
cfcf7fd493 | ||
|
|
188056e260 | ||
|
|
b55eca02bc | ||
|
|
4ff25872a0 | ||
|
|
9c6a742db6 | ||
|
|
a9b1fab282 | ||
|
|
fd3bf05aee | ||
|
|
11480c0fda | ||
|
|
1404ad41e6 | ||
|
|
86b82feecc | ||
|
|
488797d118 | ||
|
|
041f3ba2e9 | ||
|
|
cb0982d69c | ||
|
|
9024de3920 | ||
|
|
fbcba999aa | ||
|
|
0247d19677 | ||
|
|
31416dd1df | ||
|
|
f660dacfa6 | ||
|
|
a7648df691 | ||
|
|
273fd398ff | ||
|
|
5d7595970e |
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# * text=auto
|
||||
|
||||
# Unity files
|
||||
*.anim text eol=lf
|
||||
*.asmdef text eol=lf
|
||||
*.asset text eol=lf
|
||||
*.controller text eol=lf
|
||||
*.mat text eol=lf
|
||||
*.meta text eol=lf
|
||||
*.overrideController text eol=lf
|
||||
*.prefab text eol=lf
|
||||
*.preset text eol=lf
|
||||
*.spriteatlas text eol=lf
|
||||
*.unity text eol=lf
|
||||
*.mixer text eol=lf
|
||||
*.renderTexture text eol=lf
|
||||
*.json text eol=lf
|
||||
*.xml text eol=lf
|
||||
|
||||
# Source files
|
||||
*.sln text eol=crlf
|
||||
*.csproj text eol=crlf
|
||||
*.cs text eol=crlf
|
||||
*.shader text eol=crlf
|
||||
@@ -2,20 +2,24 @@
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2180264
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: LiberationSans SDF Material
|
||||
m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 1
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
@@ -67,6 +71,7 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _Ambient: 0.5
|
||||
- _Bevel: 0.5
|
||||
@@ -107,9 +112,9 @@ Material:
|
||||
- _Parallax: 0.02
|
||||
- _PerspectiveFilter: 0.875
|
||||
- _Reflectivity: 10
|
||||
- _ScaleRatioA: 0.90909094
|
||||
- _ScaleRatioA: 0.9
|
||||
- _ScaleRatioB: 0.73125
|
||||
- _ScaleRatioC: 0.7386364
|
||||
- _ScaleRatioC: 0.73125
|
||||
- _ScaleX: 1
|
||||
- _ScaleY: 1
|
||||
- _ShaderFlags: 0
|
||||
@@ -148,6 +153,7 @@ Material:
|
||||
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||
m_BuildTextureStacks: []
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -165,15 +171,16 @@ MonoBehaviour:
|
||||
materialHashCode: 462855346
|
||||
m_Version: 1.1.0
|
||||
m_SourceFontFileGUID: e3265ab4bf004d28a9537516768c1c75
|
||||
m_SourceFontFile_EditorRef: {fileID: 12800000, guid: e3265ab4bf004d28a9537516768c1c75,
|
||||
type: 3}
|
||||
m_SourceFontFile_EditorRef: {fileID: 12800000, guid: e3265ab4bf004d28a9537516768c1c75, type: 3}
|
||||
m_SourceFontFile: {fileID: 12800000, guid: e3265ab4bf004d28a9537516768c1c75, type: 3}
|
||||
m_AtlasPopulationMode: 1
|
||||
m_FaceInfo:
|
||||
m_FaceIndex: 0
|
||||
m_FamilyName: Liberation Sans
|
||||
m_StyleName: Regular
|
||||
m_PointSize: 86
|
||||
m_Scale: 1
|
||||
m_UnitsPerEM: 0
|
||||
m_LineHeight: 98.8916
|
||||
m_AscentLine: 77.853516
|
||||
m_CapLine: 59
|
||||
@@ -313,15 +320,21 @@ Texture2D:
|
||||
Hash: 00000000000000000000000000000000
|
||||
m_ForcedFallbackFormat: 4
|
||||
m_DownscaleFallback: 0
|
||||
m_IsAlphaChannelOptional: 0
|
||||
serializedVersion: 2
|
||||
m_Width: 0
|
||||
m_Height: 0
|
||||
m_CompleteImageSize: 0
|
||||
m_MipsStripped: 0
|
||||
m_TextureFormat: 1
|
||||
m_MipCount: 1
|
||||
m_IsReadable: 1
|
||||
m_IsPreProcessed: 0
|
||||
m_IgnoreMipmapLimit: 0
|
||||
m_MipmapLimitGroupName:
|
||||
m_StreamingMipmaps: 0
|
||||
m_StreamingMipmapsPriority: 0
|
||||
m_VTOnly: 0
|
||||
m_AlphaIsTransparency: 0
|
||||
m_ImageCount: 1
|
||||
m_TextureDimension: 2
|
||||
@@ -335,9 +348,11 @@ Texture2D:
|
||||
m_WrapW: 0
|
||||
m_LightmapFormat: 0
|
||||
m_ColorSpace: 0
|
||||
m_PlatformBlob:
|
||||
image data: 0
|
||||
_typelessdata:
|
||||
m_StreamData:
|
||||
serializedVersion: 2
|
||||
offset: 0
|
||||
size: 0
|
||||
path:
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 06415fcd9086a4b3b9cb0804bf1013aa
|
||||
guid: 9e1d886e63529bb4ca3c95ece3e3189c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7626a558c078543429fe82dd67dabac9
|
||||
guid: d96ea4d5faefce3439cfdd534fc1656b
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
@@ -9,7 +9,7 @@ TrueTypeFontImporter:
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- Cascadia Code
|
||||
- LXGW WenKai
|
||||
fallbackFontReferences: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2fdfd4ee855cc4e2ca02ab45b140b645
|
||||
guid: 129c820b154da074e821d870a3627120
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 62722665bcac243b09727c19bb9e6eb1
|
||||
guid: dcba7b37316258447a7e7b8a9faefba8
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
@@ -9,7 +9,7 @@ TrueTypeFontImporter:
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- Source Han Sans CN
|
||||
- Slidexiaxing
|
||||
fallbackFontReferences: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
@@ -1 +1 @@
|
||||
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~·—‘’“”…、。《》【】!(),:;?~+一丁七万丈三上下不与丐丑专且世丘丙业丛东丝丢两严丧个丫中丰串临丸丹为主丽举乃久么义之乌乍乎乏乐乔乖乘乙九乞也习乡书乩买乱乳乾了予争事二于亏云互五井亚些亡交亥亦产亨亩享京亭亮亲人亿什仁仃仅仆仇今介仍从仑仓仔仕他仗付仙仞代令以仪们仰仲仵件价任份仿企伉伍伎伏伐休众优伙会伟传伤伦伪伯估伴伶伸伺似但位低住佐佑体何佘余佛作你佣佩佬佯佳佼使侄侈例侍供依侠侣侥侧侬侮侯侵便促俊俏俐俗保俞信俨俩俪俭修俯俱俸俺倍倏們倒倔倘候倚倜借倦倩倪债值倾假偌偏偕做停健偶偷偿傀傅傍傥储催傲傻像僧僵僻儒儡儿允元兄充兆先光克免兑兔党兢入全八公六兮兰共关兴兵其具典兹养兼兽冀内冈册再冒冕写军农冠冢冤冥冬冯冰冲决况冶冷冻净凄准凉凋凌减凑凛凝几凡凤凭凰凶出击函凿刀刁刃分切刎刑划列刘则刚创初判刨利别刮到制刹刺刻剁剂剃削剌前剐剑剔剖剥剧剩剪副割剿劈力劝办功加务劣动助努劫励劲劳劾势勇勉勘募勤勺勾勿匀包匆匕化北匙匠匪匹区医匾匿十千升午卉半华协卑卒卓单卖南博卜卞占卡卢卦卧卫卯印危即却卵卷卸卿厂厄厅历厉压厌厕厘厚原厢厥厨厮去县叁参又及友双反发叔取受变叛叟口古句另叨叩只叫召叮可台史右叵叶号司叹叽吁吃各吆合吉吊同名后吏吐向吓吕吖吗君吝吞吟否吧吩含听吭启吴吵吸吹吼吾呀呃呆呈告呐呔呕呗员呜呢呦周呱味呵呶呸呻呼命咄咋和咎咏咐咒咔咕咙咦咧咪咬咱咳咶咸咻咽咿哀品哄哇哈哉响哎哑哗哟哥哦哨哩哪哭哮哲哼唆唇唉唐唔唠唤唧唬售唯唱唾啃商啊啥啦啧啬啰啸啼啾喀喂喃善喉喊喋喏喔喘喙喜喝喧喳喵喷喻喽嗅嗓嗔嗖嗜嗟嗤嗦嗨嗬嗯嗳嗽嘀嘉嘎嘘嘛嘞嘟嘱嘲嘴嘻嘿噎噗噜噢噤器噩噪噬噱嚎嚏嚣嚷嚼囊囔囚四回因团园困围固国图圃圆圈土圣在地场圾均坊坍坎坏坐坑块坚坛坝坟坠坡坤坦坪坷垂垃型垒垢垣垫垮埃埋城域埠埤培基堂堆堇堕堡堤堪堰堵塌塑塔塘塞填塾境墓墙墚增墟墨壁壑壤士壬壮声壳壶壹处备复夏夕外夙多夜够大天太夫夭央失头夷夸夹夺奇奈奉奋奎奏契奔奖套奠奢奥女奴奶奸她好如妃妄妆妇妈妍妒妓妖妙妞妥妨妹妻妾姊始姐姑姓委姗姚姜姥姨姬姻姿威娃娄娇娘娜娟娥娲娴娶娼婆婉婕婚婢婪婴婵婶婷婿媒媚媳媵嫁嫂嫉嫌嫔嫖嫡嫣嫦嫩嬉嬷子孑孓孔孕字存孙孚孝孟季孤学孩孪孬孰孵孺孽宁它宅宇守安宋完宏宗官宙定宜宝实宠客宣室宦宫宰害宴宵家容宽宾宿寂寄寅密寇富寐寒寝寞察寡寤寨寰寸对寺寻导寿封射将尊小少尔尖尘尚尝尤尬就尴尸尹尺尼尽尾尿局屁层居屈屋屎屏屐屑展属屠屡山屹岁岂岄岌岑岔岖岗岚岛岩岭岱岳岸峙峡峨峭峰峻崇崎崔崖崩崽嵯嶂巍川州巡巢工左巧巨巫差己已巳巴巷巽巾币市布帅师希帐帔帕帖帚帜帝带席帮帷常帼帽幄幅幌幕幢干平年并幸幺幻幼幽广庄庆庇床序庐库应底店庙庚府庞废度座庭庶康庸廉廊廖延廷建廻廿开异弃弄弊式弑弓引弛弟张弥弦弭弯弱弹强归当录彝形彤彦彩彪彭彰影役彻彼往征径待徇很律徐徒徕得徙御循微德心必忆忌忍忒志忘忙忠忡忧快念忽怀态怄怅怎怒怕怖怜思怠急怦性怨怪怯总恃恋恍恐恒恕恙恢恤恨恩恭息恰恳恶恻恼悄悉悍悔悟悠患悦您悬悯悲悴情惆惊惋惑惕惚惜惟惠惦惧惨惩惬惭惮惯想惶惹惺愁愈意愚感愣愤愧愫愿慈慌慎慑慕慢慧慨慰慷憎憾懂懈懒懦懵戈戊戌戎戏成我戒或战戚戟截戮戴户戾房所扁扇扈扉手才扎扑扒打扔托扛扣执扩扫扬扭扮扯扰扳扶批找承技抄把抑抓投抖抗折抚抛抟抢护报披抬抱抵抹押抽拂担拆拈拉拋拍拎拐拒拓拔拖拘拙招拜拟拢拣拥拦拧拨择括拯拳拷拼拽拾拿持挂指按挑挖挟挠挡挣挤挥挨挪挫振挺挽捅捆捉捌捎捏捐捕捞损捡换捣捧据捶捷掀掂授掉掌掏掐排掘掙掠探接控推掩措掳掷掺揉揍描提插揖握揣揪揭援搁搂搅搏搓搔搜搞搬搭携摄摆摇摈摊摔摘摧摩摸撇撑撒撕撞撤播撰擂擅操擎擒擦攀攒攫支收攸改攻放政故效敌敏救教敛敝敞敢散敬数敲整敷文斋斐斑斗料斛斜斟斤斥斧斩断斯新方於施旁旅旋族旗无既日旦旧旨早旬旭旱时旷旺昂昆昊昌明昏易昔昕昙星映春昧昨昭是昴昼显晃晋晌晒晓晕晖晚晦晧晨普景晰晴晶智晾暂暄暇暑暖暗暮暴曜曦曰曲曳更曹曾替最月有朋服朔朗望朝期木未末本术朱朴朵机朽杀杂权杆杈杉李杏材村杖杜杞束杠条来杨杭杯杰杳杵松板极构枉枕林枚果枝枢Line truncated
|
||||
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~·—‘’“”…、。《》【】!(),:;?~+一丁七万丈三上下不与丐丑专且世丘丙业丛东丝丢两严丧个丫中丰串临丸丹为主丽举乃久么义之乌乍乎乏乐乔乖乘乙九乞也习乡书乩买乱乳乾了予争事二于亏云互五井亚些亡交亥亦产亨亩享京亭亮亲人亿什仁仃仅仆仇今介仍从仑仓仔仕他仗付仙仞代令以仪们仰仲仵件价任份仿企伉伍伎伏伐休众优伙会伟传伤伦伪伯估伴伶伸伺似但位低住佐佑体何佘余佛作你佣佩佬佯佳佼使侄侈例侍供依侠侣侥侧侬侮侯侵便促俊俏俐俗保俞信俨俩俪俭修俯俱俸俺倍倏們倒倔倘候倚倜借倦倩倪债值倾假偌偏偕做停健偶偷偿傀傅傍傥储催傲傻像僧僵僻儒儡儿允元兄充兆先光克免兑兔党兢入全八公六兮兰共关兴兵其具典兹养兼兽冀内冈册再冒冕写军农冠冢冤冥冬冯冰冲决况冶冷冻净凄准凉凋凌减凑凛凝几凡凤凭凰凶出击函凿刀刁刃分切刎刑划列刘则刚创初判刨利别刮到制刹刺刻剁剂剃削剌前剐剑剔剖剥剧剩剪副割剿劈力劝办功加务劣动助努劫励劲劳劾势勇勉勘募勤勺勾勿匀包匆匕化北匙匠匪匹区医匾匿十千升午卉半华协卑卒卓单卖南博卜卞占卡卢卦卧卫卯印危即却卵卷卸卿厂厄厅历厉压厌厕厘厚原厢厥厨厮去县叁参又及友双反发叔取受变叛叟口古句另叨叩只叫召叮可台史右叵叶号司叹叽吁吃各吆合吉吊同名后吏吐向吓吕吖吗君吝吞吟否吧吩含听吭启吴吵吸吹吼吾呀呃呆呈告呐呔呕呗员呜呢呦周呱味呵呶呸呻呼命咄咋和咎咏咐咒咔咕咙咦咧咪咬咱咳咶咸咻咽咿哀品哄哇哈哉响哎哑哗哟哥哦哨哩哪哭哮哲哼唆唇唉唐唔唠唤唧唬售唯唱唾啃商啊啥啦啧啬啰啸啼啾喀喂喃善喉喊喋喏喔喘喙喜喝喧喳喵喷喻喽嗅嗓嗔嗖嗜嗟嗤嗦嗨嗬嗯嗳嗽嘀嘉嘎嘘嘛嘞嘟嘱嘲嘴嘻嘿噎噗噜噢噤器噩噪噬噱嚎嚏嚣嚷嚼囊囔囚四回因团园困围固国图圃圆圈土圣在地场圾均坊坍坎坏坐坑块坚坛坝坟坠坡坤坦坪坷垂垃型垒垢垣垫垮埃埋城域埠埤培基堂堆堇堕堡堤堪堰堵塌塑塔塘塞填塾境墓墙墚增墟墨壁壑壤士壬壮声壳壶壹处备复夏夕外夙多夜够大天太夫夭央失头夷夸夹夺奇奈奉奋奎奏契奔奖套奠奢奥女奴奶奸她好如妃妄妆妇妈妍妒妓妖妙妞妥妨妹妻妾姊始姐姑姓委姗姚姜姥姨姬姻姿威娃娄娇娘娜娟娥娲娴娶娼婆婉婕婚婢婪婴婵婶婷婿媒媚媳媵嫁嫂嫉嫌嫔嫖嫡嫣嫦嫩嬉嬷子孑孓孔孕字存孙孚孝孟季孤学孩孪孬孰孵孺孽宁它宅宇守安宋完宏宗官宙定宜宝实宠客宣室宦宫宰害宴宵家容宽宾宿寂寄寅密寇富寐寒寝寞察寡寤寨寰寸对寺寻导寿封射将尊小少尔尖尘尚尝尤尬就尴尸尹尺尼尽尾尿局屁层居屈屋屎屏屐屑展属屠屡山屹岁岂岄岌岑岔岖岗岚岛岩岭岱岳岸峙峡峨峭峰峻崇崎崔崖崩崽嵯嶂巍川州巡巢工左巧巨巫差己已巳巴巷巽巾币市布帅师希帐帔帕帖帚帜帝带席帮帷常帼帽幄幅幌幕幢干平年并幸幺幻幼幽广庄庆庇床序庐库应底店庙庚府庞废度座庭庶康庸廉廊廖延廷建廻廿开异弃弄弊式弑弓引弛弟张弥弦弭弯弱弹强归当录彝形彤彦彩彪彭彰影役彻彼往征径待徇很律徐徒徕得徙御循微德心必忆忌忍忒志忘忙忠忡忧快念忽怀态怄怅怎怒怕怖怜思怠急怦性怨怪怯总恃恋恍恐恒恕恙恢恤恨恩恭息恰恳恶恻恼悄悉悍悔悟悠患悦您悬悯悲悴情惆惊惋惑惕惚惜惟惠惦惧惨惩惬惭惮惯想惶惹惺愁愈意愚感愣愤愧愫愿慈慌慎慑慕慢慧慨慰慷憎憾懂懈懒懦懵戈戊戌戎戏成我戒或战戚戟截戮戴户戾房所扁扇扈扉手才扎扑扒打扔托扛扣执扩扫扬扭扮扯扰扳扶批找承技抄把抑抓投抖抗折抚抛抟抢护报披抬抱抵抹押抽拂担拆拈拉拋拍拎拐拒拓拔拖拘拙招拜拟拢拣拥拦拧拨择括拯拳拷拼拽拾拿持挂指按挑挖挟挠挡挣挤挥挨挪挫振挺挽捅捆捉捌捎捏捐捕捞损捡换捣捧据捶捷掀掂授掉掌掏掐排掘掙掠探接控推掩措掳掷掺揉揍描提插揖握揣揪揭援搁搂搅搏搓搔搜搞搬搭携摄摆摇摈摊摔摘摧摩摸撇撑撒撕撞撤播撰擂擅操擎擒擦攀攒攫支收攸改攻放政故效敌敏救教敛敝敞敢散敬数敲整敷文斋斐斑斗料斛斜斟斤斥斧斩断斯新方於施旁旅旋族旗无既日旦旧旨早旬旭旱时旷旺昂昆昊昌明昏易昔昕昙星映春昧昨昭是昴昼显晃晋晌晒晓晕晖晚晦晧晨普景晰晴晶智晾暂暄暇暑暖暗暮暴曜曦曰曲曳更曹曾替最月有朋服朔朗望朝期木未末本术朱朴朵机朽杀杂权杆杈杉李杏材村杖杜杞束杠条来杨杭杯杰杳杵松板极构枉枕林枚果枝枢Line truncated
|
||||
@@ -0,0 +1,16 @@
|
||||
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~·—‘’“”…、。《》【】!(),:;?~+
|
||||
新的游戏
|
||||
从存档继续
|
||||
保存游戏
|
||||
成功失败
|
||||
关闭开启
|
||||
实时光影
|
||||
剧情测试选项
|
||||
迷宫入口出口
|
||||
或剧情点
|
||||
选择
|
||||
退出游戏
|
||||
返回游戏
|
||||
仙剑奇侠传三
|
||||
外传问情篇
|
||||
B站@柒才
|
||||
@@ -1,6 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c6f55d45332bf34096a5ca9a5567681
|
||||
PrefabImporter:
|
||||
guid: 9cc10928f15fb6f4da9082d8125a6f9f
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
@@ -1,8 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f26248a5279c4394abd7cd3dc2237f1
|
||||
NativeFormatImporter:
|
||||
guid: 8823f9f10b6763c4dbd59d68ba269fb3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ef4f7d0e73df0c14cbb42013105ca702
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 02dc80fb0da96d54390fb6d139807b52
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,272 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &799485479191424804
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7665318269030240274}
|
||||
- component: {fileID: 8486152655749950645}
|
||||
- component: {fileID: 5457408955285932580}
|
||||
- component: {fileID: 3588581382288908559}
|
||||
- component: {fileID: 8507618148138075644}
|
||||
m_Layer: 0
|
||||
m_Name: BigMapRegionButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7665318269030240274
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 799485479191424804}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 7011635990956946161}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!222 &8486152655749950645
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 799485479191424804}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &5457408955285932580
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 799485479191424804}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &3588581382288908559
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 799485479191424804}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 0
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 0.15686275, g: 0.15686275, b: 0.15686275, a: 0.78431374}
|
||||
m_HighlightedColor: {r: 0.11764706, g: 0.29411766, b: 0.54901963, a: 0.78431374}
|
||||
m_PressedColor: {r: 0.078431375, g: 0.19607843, b: 0.39215687, a: 0.78431374}
|
||||
m_SelectedColor: {r: 0.11764706, g: 0.29411766, b: 0.54901963, a: 0.78431374}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 5457408955285932580}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!114 &8507618148138075644
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 799485479191424804}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 15a694426cb54e98813a4c9a84640435, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &8820756242259669652
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7011635990956946161}
|
||||
- component: {fileID: 4505268126575713709}
|
||||
- component: {fileID: 8244961573134555549}
|
||||
m_Layer: 0
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7011635990956946161
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8820756242259669652}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 7665318269030240274}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4505268126575713709
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8820756242259669652}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8244961573134555549
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8820756242259669652}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "\u8700\u5C71"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 06415fcd9086a4b3b9cb0804bf1013aa, type: 2}
|
||||
m_sharedMaterial: {fileID: 697520991437178811, guid: 06415fcd9086a4b3b9cb0804bf1013aa, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 3707764735
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 0.8627451}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 26
|
||||
m_fontSizeBase: 26
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
@@ -211,8 +211,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Rand.mv3
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_sharedMaterial: {fileID: 1781445408255303159, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -347,8 +347,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text:
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_sharedMaterial: {fileID: 1781445408255303159, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -493,6 +493,7 @@ Canvas:
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_UpdateRectTransformForStandalone: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
@@ -586,9 +587,17 @@ Camera:
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_Iso: 200
|
||||
m_ShutterSpeed: 0.005
|
||||
m_Aperture: 16
|
||||
m_FocusDistance: 10
|
||||
m_FocalLength: 50
|
||||
m_BladeCount: 5
|
||||
m_Curvature: {x: 2, y: 11}
|
||||
m_BarrelClipping: 0.25
|
||||
m_Anamorphism: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
@@ -884,8 +893,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Rand.pol
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_sharedMaterial: {fileID: 1781445408255303159, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -1019,8 +1028,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Rand.mp3
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_sharedMaterial: {fileID: 1781445408255303159, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -1212,8 +1221,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text:
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_sharedMaterial: {fileID: 1781445408255303159, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -1367,8 +1376,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Rand.cvd
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_sharedMaterial: {fileID: 1781445408255303159, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -1646,8 +1655,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text:
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_sharedMaterial: {fileID: 1781445408255303159, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -2164,6 +2173,7 @@ Canvas:
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_UpdateRectTransformForStandalone: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
@@ -2436,6 +2446,7 @@ Canvas:
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_UpdateRectTransformForStandalone: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
|
||||
@@ -14,7 +14,7 @@ GameObject:
|
||||
- component: {fileID: 3588581382288908559}
|
||||
- component: {fileID: 3965248316395714309}
|
||||
m_Layer: 0
|
||||
m_Name: StorySelectionButton
|
||||
m_Name: MenuButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
@@ -34,7 +34,7 @@ RectTransform:
|
||||
m_Children:
|
||||
- {fileID: 7011635990956946161}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_RootOrder: -1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
@@ -146,6 +146,7 @@ GameObject:
|
||||
- component: {fileID: 7011635990956946161}
|
||||
- component: {fileID: 4505268126575713709}
|
||||
- component: {fileID: 8244961573134555549}
|
||||
- component: {fileID: 2825650428422629475}
|
||||
m_Layer: 0
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
@@ -203,8 +204,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: "\u8FF7\u5BAB\u5165\u53E3"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 06415fcd9086a4b3b9cb0804bf1013aa, type: 2}
|
||||
m_sharedMaterial: {fileID: 697520991437178811, guid: 06415fcd9086a4b3b9cb0804bf1013aa, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -228,8 +229,8 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 22
|
||||
m_fontSizeBase: 22
|
||||
m_fontSize: 28
|
||||
m_fontSizeBase: 28
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
@@ -270,3 +271,18 @@ MonoBehaviour:
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!114 &2825650428422629475
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8820756242259669652}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||
m_EffectDistance: {x: 1, y: -1}
|
||||
m_UseGraphicAlpha: 1
|
||||
@@ -46,9 +46,17 @@ Camera:
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_Iso: 200
|
||||
m_ShutterSpeed: 0.005
|
||||
m_Aperture: 16
|
||||
m_FocusDistance: 10
|
||||
m_FocalLength: 50
|
||||
m_BladeCount: 5
|
||||
m_Curvature: {x: 2, y: 11}
|
||||
m_BarrelClipping: 0.25
|
||||
m_Anamorphism: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
@@ -134,6 +142,7 @@ Canvas:
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_UpdateRectTransformForStandalone: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 7777
|
||||
m_TargetDisplay: 0
|
||||
@@ -321,8 +330,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text:
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_sharedMaterial: {fileID: 1781445408255303159, guid: 2fdfd4ee855cc4e2ca02ab45b140b645, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
|
||||
@@ -305,8 +305,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Button
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 06415fcd9086a4b3b9cb0804bf1013aa, type: 2}
|
||||
m_sharedMaterial: {fileID: 697520991437178811, guid: 06415fcd9086a4b3b9cb0804bf1013aa, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
// Based on cician's shader from https://forum.unity3d.com/threads/simple-optimized-blur-shader.185327/#post-1267642
|
||||
// Based on RoundedCorners.shader from https://github.com/kirevdokimov/Unity-UI-Rounded-Corners
|
||||
// with some modifications
|
||||
|
||||
Shader "Pal3/FrostedGlass"
|
||||
Shader "Pal3/RoundedFrostedGlass"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_Size ("Blur", Range(0, 30)) = 1
|
||||
_BlurAmount ("Blur", Range(0, 30)) = 1
|
||||
[HideInInspector] _MainTex ("Masking Texture", 2D) = "white" {}
|
||||
_AdditiveColor ("Additive Tint color", Color) = (0, 0, 0, 0)
|
||||
_MultiplyColor ("Multiply Tint color", Color) = (1, 1, 1, 1)
|
||||
_WidthHeightRadius ("WidthHeightRadius", Vector) = (0, 0, 0, 0)
|
||||
}
|
||||
|
||||
Category
|
||||
{
|
||||
// We must be transparent, so other objects are drawn before this one.
|
||||
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Opaque" }
|
||||
Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Opaque" }
|
||||
|
||||
SubShader
|
||||
{
|
||||
@@ -73,17 +76,43 @@ Shader "Pal3/FrostedGlass"
|
||||
return o;
|
||||
}
|
||||
|
||||
inline float roundedRectangle(float2 samplePosition, float absoluteRound, float2 halfSize){
|
||||
halfSize = halfSize - absoluteRound;
|
||||
float2 distanceToEdge = abs(samplePosition) - halfSize;
|
||||
const float outsideDistance = length(max(distanceToEdge, 0));
|
||||
const float insideDistance = min(max(distanceToEdge.x, distanceToEdge.y), 0);
|
||||
return outsideDistance + insideDistance - absoluteRound;
|
||||
}
|
||||
|
||||
inline float CalcAlpha(float2 samplePosition, float2 size, float radius){
|
||||
const float2 samplePositionTranslated = (samplePosition - .5) * size;
|
||||
const float distToRect = roundedRectangle(samplePositionTranslated, radius * .5, size * .5);
|
||||
const float distanceChange = fwidth(distToRect) * 0.5;
|
||||
return smoothstep(distanceChange, -distanceChange, distToRect);
|
||||
}
|
||||
|
||||
inline fixed4 mixAlpha(fixed4 mainTexColor, fixed4 color, float sdfAlpha){
|
||||
fixed4 col = mainTexColor * color;
|
||||
col.a = min(col.a, sdfAlpha);
|
||||
return col;
|
||||
}
|
||||
|
||||
sampler2D _HBlur;
|
||||
float4 _HBlur_TexelSize;
|
||||
float _Size;
|
||||
float _BlurAmount;
|
||||
float4 _AdditiveColor;
|
||||
float4 _MultiplyColor;
|
||||
float4 _WidthHeightRadius;
|
||||
|
||||
half4 frag( v2f i ) : COLOR
|
||||
half4 frag(v2f i) : COLOR
|
||||
{
|
||||
const float alpha = CalcAlpha(i.uvmain, _WidthHeightRadius.xy, _WidthHeightRadius.z);
|
||||
half4 cutoffColor = mixAlpha(tex2D(_MainTex, i.uvmain), _AdditiveColor, alpha);
|
||||
clip(cutoffColor.a - 0.001);
|
||||
|
||||
half4 sum = half4(0,0,0,0);
|
||||
|
||||
#define GRABPIXEL(weight,kernelx) tex2Dproj( _HBlur, UNITY_PROJ_COORD(float4(i.uvgrab.x + _HBlur_TexelSize.x * kernelx * _Size, i.uvgrab.y, i.uvgrab.z, i.uvgrab.w))) * weight
|
||||
#define GRABPIXEL(weight,kernelx) tex2Dproj( _HBlur, UNITY_PROJ_COORD(float4(i.uvgrab.x + _HBlur_TexelSize.x * kernelx * _BlurAmount, i.uvgrab.y, i.uvgrab.z, i.uvgrab.w))) * weight
|
||||
|
||||
sum += GRABPIXEL(0.05, -4.0);
|
||||
sum += GRABPIXEL(0.09, -3.0);
|
||||
@@ -133,7 +162,7 @@ Shader "Pal3/FrostedGlass"
|
||||
sampler2D _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
|
||||
v2f vert (appdata_t v) {
|
||||
v2f vert(appdata_t v) {
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
|
||||
@@ -151,17 +180,43 @@ Shader "Pal3/FrostedGlass"
|
||||
return o;
|
||||
}
|
||||
|
||||
inline float roundedRectangle(float2 samplePosition, float absoluteRound, float2 halfSize){
|
||||
halfSize = halfSize - absoluteRound;
|
||||
float2 distanceToEdge = abs(samplePosition) - halfSize;
|
||||
const float outsideDistance = length(max(distanceToEdge, 0));
|
||||
const float insideDistance = min(max(distanceToEdge.x, distanceToEdge.y), 0);
|
||||
return outsideDistance + insideDistance - absoluteRound;
|
||||
}
|
||||
|
||||
inline float CalcAlpha(float2 samplePosition, float2 size, float radius){
|
||||
const float2 samplePositionTranslated = (samplePosition - .5) * size;
|
||||
const float distToRect = roundedRectangle(samplePositionTranslated, radius * .5, size * .5);
|
||||
const float distanceChange = fwidth(distToRect) * 0.5;
|
||||
return smoothstep(distanceChange, -distanceChange, distToRect);
|
||||
}
|
||||
|
||||
inline fixed4 mixAlpha(fixed4 mainTexColor, fixed4 color, float sdfAlpha){
|
||||
fixed4 col = mainTexColor * color;
|
||||
col.a = min(col.a, sdfAlpha);
|
||||
return col;
|
||||
}
|
||||
|
||||
sampler2D _VBlur;
|
||||
float4 _VBlur_TexelSize;
|
||||
float _Size;
|
||||
float _BlurAmount;
|
||||
float4 _AdditiveColor;
|
||||
float4 _MultiplyColor;
|
||||
float4 _WidthHeightRadius;
|
||||
|
||||
half4 frag( v2f i ) : COLOR
|
||||
half4 frag(v2f i) : COLOR
|
||||
{
|
||||
const float alpha = CalcAlpha(i.uvmain, _WidthHeightRadius.xy, _WidthHeightRadius.z);
|
||||
half4 cutoffColor = mixAlpha(tex2D(_MainTex, i.uvmain), _AdditiveColor, alpha);
|
||||
clip(cutoffColor.a - 0.001);
|
||||
|
||||
half4 sum = half4(0,0,0,0);
|
||||
|
||||
#define GRABPIXEL(weight,kernely) tex2Dproj( _VBlur, UNITY_PROJ_COORD(float4(i.uvgrab.x, i.uvgrab.y + _VBlur_TexelSize.y * kernely * _Size, i.uvgrab.z, i.uvgrab.w))) * weight
|
||||
#define GRABPIXEL(weight, kernely) tex2Dproj( _VBlur, UNITY_PROJ_COORD(float4(i.uvgrab.x, i.uvgrab.y + _VBlur_TexelSize.y * kernely * _BlurAmount, i.uvgrab.z, i.uvgrab.w))) * weight
|
||||
|
||||
sum += GRABPIXEL(0.05, -4.0);
|
||||
sum += GRABPIXEL(0.09, -3.0);
|
||||
@@ -173,11 +228,12 @@ Shader "Pal3/FrostedGlass"
|
||||
sum += GRABPIXEL(0.09, +3.0);
|
||||
sum += GRABPIXEL(0.05, +4.0);
|
||||
|
||||
half4 result = half4(sum.r * _MultiplyColor.r + _AdditiveColor.r,
|
||||
half4 blurResult = half4(sum.r * _MultiplyColor.r + _AdditiveColor.r,
|
||||
sum.g * _MultiplyColor.g + _AdditiveColor.g,
|
||||
sum.b * _MultiplyColor.b + _AdditiveColor.b,
|
||||
tex2D(_MainTex, i.uvmain).a);
|
||||
return result;
|
||||
|
||||
return blurResult;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Pal3FrostedGlass
|
||||
m_Shader: {fileID: 4800000, guid: 7207745e33764e88af7a51d39feb7b81, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _Size: 3.5
|
||||
m_Colors:
|
||||
- _AdditiveColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _MultiplyColor: {r: 0.6862745, g: 0.6862745, b: 0.6862745, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1,122 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b042769710026324a9269973c819f8dc
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 1012 B |
@@ -1,122 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5fb27d4a1e32bab4dbe09f858449820d
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -1,122 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19c174c730286934280bdf4570be1ec4
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 329 B |
@@ -20,11 +20,12 @@ TextureImporter:
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
@@ -63,6 +64,7 @@ TextureImporter:
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
@@ -70,7 +72,7 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
@@ -139,9 +141,8 @@ TextureImporter:
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -20,11 +20,12 @@ TextureImporter:
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
@@ -63,6 +64,7 @@ TextureImporter:
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
@@ -70,7 +72,7 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
@@ -139,9 +141,8 @@ TextureImporter:
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 597 B |
@@ -1,9 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1cea1d9e411f34a6f8841b03f00feef6
|
||||
guid: 377b848599f332f4caff9cf7c7d2128a
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
@@ -20,11 +20,12 @@ TextureImporter:
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
@@ -63,12 +64,14 @@ TextureImporter:
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
@@ -138,9 +141,8 @@ TextureImporter:
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 275 B |
@@ -1,9 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ae6bfbdbb96b54d86991f396e7a66dae
|
||||
guid: 2e5e9c4a8e1d0ce4facdbcd386364eda
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
@@ -20,11 +20,12 @@ TextureImporter:
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
@@ -63,12 +64,14 @@ TextureImporter:
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
@@ -138,9 +141,8 @@ TextureImporter:
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 340 B |
@@ -20,7 +20,7 @@ namespace Pal3.Actor
|
||||
using Core.Services;
|
||||
using Data;
|
||||
using MetaData;
|
||||
using Player;
|
||||
using GamePlay;
|
||||
using Renderer;
|
||||
using Script.Waiter;
|
||||
using State;
|
||||
@@ -197,8 +197,7 @@ namespace Pal3.Actor
|
||||
textureProvider,
|
||||
_tintColor,
|
||||
polFile,
|
||||
weaponTextureProvider,
|
||||
Color.white);
|
||||
weaponTextureProvider);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Pal3.Actor
|
||||
using Core.Services;
|
||||
using Input;
|
||||
using MetaData;
|
||||
using Player;
|
||||
using GamePlay;
|
||||
using Script.Waiter;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#if PAL3A
|
||||
|
||||
namespace Pal3.Player
|
||||
namespace Pal3.Actor
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -10,7 +10,7 @@ namespace Pal3.Actor
|
||||
using Command.InternalCommands;
|
||||
using Command.SceCommands;
|
||||
using Core.GameBox;
|
||||
using Player;
|
||||
using GamePlay;
|
||||
using Script.Waiter;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.Player
|
||||
namespace Pal3.Actor
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -57,6 +57,8 @@ namespace Pal3.Audio
|
||||
|
||||
private CancellationTokenSource _sceneAudioCts = new ();
|
||||
|
||||
private AudioClip _themeMusicClip;
|
||||
|
||||
public void Init(Camera mainCamera,
|
||||
GameResourceProvider resourceProvider,
|
||||
SceneManager sceneManager,
|
||||
@@ -71,6 +73,11 @@ namespace Pal3.Audio
|
||||
|
||||
_musicVolume = _gameSettings.MusicVolume;
|
||||
_sfxVolume = _gameSettings.SfxVolume;
|
||||
|
||||
// Load and play the theme music on init
|
||||
_themeMusicClip = Requires.IsNotNull(
|
||||
Resources.Load<AudioClip>($"Music/{GameConstants.AppName}-Theme"),
|
||||
$"Music/{GameConstants.AppName}-Theme");
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
@@ -83,6 +90,14 @@ namespace Pal3.Audio
|
||||
CommandExecutorRegistry<ICommand>.Instance.UnRegister(this);
|
||||
}
|
||||
|
||||
public void PlayThemeMusic()
|
||||
{
|
||||
_musicPlayer.clip = _themeMusicClip;
|
||||
_musicPlayer.volume = _musicVolume;
|
||||
_musicPlayer.loop = true;
|
||||
_musicPlayer.Play();
|
||||
}
|
||||
|
||||
public void Execute(SettingChangedNotification command)
|
||||
{
|
||||
if (command.SettingName == nameof(_gameSettings.MusicVolume))
|
||||
@@ -143,7 +158,10 @@ namespace Pal3.Audio
|
||||
if (audioSource.clip != null)
|
||||
{
|
||||
audioSource.Stop();
|
||||
Destroy(audioSource.clip);
|
||||
if (audioSource.clip != _themeMusicClip)
|
||||
{
|
||||
Destroy(audioSource.clip);
|
||||
}
|
||||
}
|
||||
|
||||
audioSource.clip = audioClip;
|
||||
|
||||
@@ -17,9 +17,9 @@ namespace Pal3.Camera
|
||||
using Core.DataReader.Scn;
|
||||
using Core.GameBox;
|
||||
using Core.Utils;
|
||||
using GamePlay;
|
||||
using Input;
|
||||
using MetaData;
|
||||
using Player;
|
||||
using Scene;
|
||||
using Script.Waiter;
|
||||
using State;
|
||||
@@ -33,9 +33,9 @@ namespace Pal3.Camera
|
||||
ICommandExecutor<CameraShakeEffectCommand>,
|
||||
ICommandExecutor<CameraOrbitCommand>,
|
||||
ICommandExecutor<CameraRotateCommand>,
|
||||
#if PAL3A
|
||||
ICommandExecutor<CameraOrbitHorizontalCommand>,
|
||||
ICommandExecutor<CameraOrbitVerticalCommand>,
|
||||
#if PAL3A
|
||||
ICommandExecutor<CameraMoveToLookAtPointCommand>,
|
||||
ICommandExecutor<CameraMoveToDefaultLookAtPointCommand>,
|
||||
#endif
|
||||
@@ -761,6 +761,9 @@ namespace Pal3.Camera
|
||||
|
||||
public void Execute(ResetGameStateCommand command)
|
||||
{
|
||||
if (!_asyncCameraAnimationCts.IsCancellationRequested) _asyncCameraAnimationCts.Cancel();
|
||||
|
||||
_curtainImage.color = Color.black;
|
||||
_currentAppliedDefaultTransformOption = 0;
|
||||
_initTransformOptionOnSceneLoad = null;
|
||||
_initRotationOnSceneLoad = null;
|
||||
@@ -768,7 +771,6 @@ namespace Pal3.Camera
|
||||
_cameraFollowPlayer = true;
|
||||
}
|
||||
|
||||
#if PAL3A
|
||||
public void Execute(CameraOrbitHorizontalCommand command)
|
||||
{
|
||||
if (!_asyncCameraAnimationCts.IsCancellationRequested) _asyncCameraAnimationCts.Cancel();
|
||||
@@ -825,6 +827,7 @@ namespace Pal3.Camera
|
||||
}
|
||||
}
|
||||
|
||||
#if PAL3A
|
||||
public void Execute(CameraMoveToLookAtPointCommand command)
|
||||
{
|
||||
if (!_asyncCameraAnimationCts.IsCancellationRequested) _asyncCameraAnimationCts.Cancel();
|
||||
|
||||
@@ -335,6 +335,22 @@ namespace Pal3.Command
|
||||
new CameraOrbitCommand(yaw, pitch, duration, curveType));
|
||||
}
|
||||
|
||||
// <auto-generated/>
|
||||
[ConsoleMethodAttribute("CameraOrbitHorizontal", "镜头朝向固定点左右Orbit参数:目标Yaw,Pitch,目标镜头距离(原GameBox引擎下的距离单位),运动时间,插值类型(0:Linear,1:Sine),同步(1暂停当前脚本运行,0异步进行动画且继续执行脚本)")]
|
||||
public static void CameraOrbitHorizontal(System.Single yaw, System.Single pitch, System.Single gameBoxDistance, System.Single duration, System.Int32 curveType, System.Int32 synchronous)
|
||||
{
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
new CameraOrbitHorizontalCommand(yaw, pitch, gameBoxDistance, duration, curveType, synchronous));
|
||||
}
|
||||
|
||||
// <auto-generated/>
|
||||
[ConsoleMethodAttribute("CameraOrbitVertical", "镜头朝向固定点上下Orbit参数:目标Yaw,Pitch,目标镜头距离(原GameBox引擎下的距离单位),运动时间,插值类型(0:Linear,1:Sine),同步(1暂停当前脚本运行,0异步进行动画且继续执行脚本)")]
|
||||
public static void CameraOrbitVertical(System.Single yaw, System.Single pitch, System.Single gameBoxDistance, System.Single duration, System.Int32 curveType, System.Int32 synchronous)
|
||||
{
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
new CameraOrbitVerticalCommand(yaw, pitch, gameBoxDistance, duration, curveType, synchronous));
|
||||
}
|
||||
|
||||
// <auto-generated/>
|
||||
[ConsoleMethodAttribute("CameraPopState", "取出镜头状态")]
|
||||
public static void CameraPopState()
|
||||
@@ -1320,11 +1336,11 @@ namespace Pal3.Command
|
||||
}
|
||||
|
||||
// <auto-generated/>
|
||||
[ConsoleMethodAttribute("ToggleStorySelectorRequest", "Execute ToggleStorySelectorRequest.")]
|
||||
public static void ToggleStorySelectorRequest()
|
||||
[ConsoleMethodAttribute("ToggleMainMenuRequest", "Execute ToggleMainMenuRequest.")]
|
||||
public static void ToggleMainMenuRequest()
|
||||
{
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
new ToggleStorySelectorRequest());
|
||||
new ToggleMainMenuRequest());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1400,11 +1400,11 @@ namespace Pal3.Command
|
||||
}
|
||||
|
||||
// <auto-generated/>
|
||||
[ConsoleMethodAttribute("ToggleStorySelectorRequest", "Execute ToggleStorySelectorRequest.")]
|
||||
public static void ToggleStorySelectorRequest()
|
||||
[ConsoleMethodAttribute("ToggleMainMenuRequest", "Execute ToggleMainMenuRequest.")]
|
||||
public static void ToggleMainMenuRequest()
|
||||
{
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(
|
||||
new ToggleStorySelectorRequest());
|
||||
new ToggleMainMenuRequest());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
namespace Pal3.Command.InternalCommands
|
||||
{
|
||||
[AvailableInConsole]
|
||||
public class ToggleStorySelectorRequest: ICommand
|
||||
public class ToggleMainMenuRequest: ICommand
|
||||
{
|
||||
public ToggleStorySelectorRequest() {}
|
||||
public ToggleMainMenuRequest() {}
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
namespace Pal3.Command.SceCommands
|
||||
{
|
||||
#if PAL3A
|
||||
[AvailableInConsole]
|
||||
[SceCommand(174, "镜头朝向固定点左右Orbit" +
|
||||
"参数:目标Yaw,Pitch,目标镜头距离(原GameBox引擎下的距离单位),运动时间,插值类型(0:Linear,1:Sine),同步(1暂停当前脚本运行,0异步进行动画且继续执行脚本)")]
|
||||
@@ -34,5 +33,4 @@ namespace Pal3.Command.SceCommands
|
||||
public int CurveType { get; }
|
||||
public int Synchronous { get; }
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
namespace Pal3.Command.SceCommands
|
||||
{
|
||||
#if PAL3A
|
||||
[AvailableInConsole]
|
||||
[SceCommand(175, "镜头朝向固定点上下Orbit" +
|
||||
"参数:目标Yaw,Pitch,目标镜头距离(原GameBox引擎下的距离单位),运动时间,插值类型(0:Linear,1:Sine),同步(1暂停当前脚本运行,0异步进行动画且继续执行脚本)")]
|
||||
@@ -28,5 +27,4 @@ namespace Pal3.Command.SceCommands
|
||||
public int CurveType { get; }
|
||||
public int Synchronous { get; }
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 515d83a628644044955b51117dde338d
|
||||
timeCreated: 1680489008
|
||||
@@ -17,21 +17,12 @@ namespace Pal3.Dev
|
||||
using MetaData;
|
||||
using Scene;
|
||||
using Script;
|
||||
using State;
|
||||
using UI;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public sealed class MazeSkipper : IDisposable,
|
||||
ICommandExecutor<ScenePostLoadingNotification>,
|
||||
ICommandExecutor<GameStateChangedNotification>
|
||||
public sealed class MazeSkipper
|
||||
{
|
||||
private readonly GameStateManager _gameStateManager;
|
||||
private readonly SceneManager _sceneManager;
|
||||
private readonly CanvasGroup _mazeSkipperCanvasGroup;
|
||||
private readonly Button _mazeEntranceButton;
|
||||
private readonly Button _mazeExitButton;
|
||||
|
||||
#region Maze skipper commands
|
||||
// _0 for entrance, _1 for exit
|
||||
#if PAL3
|
||||
private readonly Dictionary<string, IList<ICommand>> _skipperCommands = new()
|
||||
@@ -665,7 +656,8 @@ namespace Pal3.Dev
|
||||
{ "m11_4_1", new List<ICommand>()
|
||||
{
|
||||
new ActorSetNavLayerCommand(-1, 1),
|
||||
new ActorSetTilePositionCommand(-1, 118, 236)
|
||||
new ActorSetTilePositionCommand(-1, 118, 236),
|
||||
new PlayerInteractWithObjectCommand(10)
|
||||
}},
|
||||
{ "m12_1_0", new List<ICommand>()
|
||||
{
|
||||
@@ -894,46 +886,33 @@ namespace Pal3.Dev
|
||||
}},
|
||||
};
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
public MazeSkipper(GameStateManager gameStateManager,
|
||||
SceneManager sceneManager,
|
||||
CanvasGroup mazeSkipperCanvasGroup,
|
||||
Button mazeEntranceButton,
|
||||
Button mazeExitButton)
|
||||
public MazeSkipper(SceneManager sceneManager)
|
||||
{
|
||||
_gameStateManager = Requires.IsNotNull(gameStateManager, nameof(gameStateManager));
|
||||
_sceneManager = Requires.IsNotNull(sceneManager, nameof(sceneManager));
|
||||
_mazeSkipperCanvasGroup = Requires.IsNotNull(mazeSkipperCanvasGroup, nameof(mazeSkipperCanvasGroup));
|
||||
_mazeEntranceButton = Requires.IsNotNull(mazeEntranceButton, nameof(mazeEntranceButton));
|
||||
_mazeExitButton = Requires.IsNotNull(mazeExitButton, nameof(mazeExitButton));
|
||||
|
||||
_mazeSkipperCanvasGroup.alpha = 0f;
|
||||
_mazeSkipperCanvasGroup.interactable = false;
|
||||
|
||||
_mazeEntranceButton.colors = UITheme.GetButtonColors();
|
||||
_mazeEntranceButton.onClick
|
||||
.AddListener(EntranceButtonClicked);
|
||||
_mazeExitButton.colors = UITheme.GetButtonColors();
|
||||
_mazeExitButton.onClick
|
||||
.AddListener(ExitButtonClicked);
|
||||
|
||||
CommandExecutorRegistry<ICommand>.Instance.Register(this);
|
||||
}
|
||||
|
||||
private void EntranceButtonClicked()
|
||||
public bool IsMazeSceneAndHasSkipperCommands(ScnSceneInfo sceneInfo)
|
||||
{
|
||||
var cmdHashKeyPrefix = GetCommandHashKeyPrefix(sceneInfo);
|
||||
return _skipperCommands.Keys.Any(_ => _.StartsWith(cmdHashKeyPrefix, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
public void PortalToEntrance()
|
||||
{
|
||||
if (_gameStateManager.GetCurrentState() != GameState.Gameplay) return;
|
||||
if (_sceneManager.GetCurrentScene() is not { } currentScene) return;
|
||||
|
||||
foreach (ICommand command in _skipperCommands[GetCommandHashKeyPrefix(currentScene.GetSceneInfo()) + "0"])
|
||||
{
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(command);
|
||||
}
|
||||
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new ActorStopActionAndStandCommand(ActorConstants.PlayerActorVirtualID));
|
||||
}
|
||||
|
||||
private void ExitButtonClicked()
|
||||
public void PortalToExitOrNextStoryPoint()
|
||||
{
|
||||
if (_gameStateManager.GetCurrentState() != GameState.Gameplay) return;
|
||||
if (_sceneManager.GetCurrentScene() is not { } currentScene) return;
|
||||
|
||||
// This is how exit button works:
|
||||
@@ -969,57 +948,9 @@ namespace Pal3.Dev
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new ActorStopActionAndStandCommand(ActorConstants.PlayerActorVirtualID));
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
CommandExecutorRegistry<ICommand>.Instance.UnRegister(this);
|
||||
_mazeEntranceButton.onClick
|
||||
.RemoveListener(EntranceButtonClicked);
|
||||
_mazeExitButton.onClick
|
||||
.RemoveListener(ExitButtonClicked);
|
||||
}
|
||||
|
||||
private string GetCommandHashKeyPrefix(ScnSceneInfo sceneInfo)
|
||||
{
|
||||
return $"{sceneInfo.CityName}_{sceneInfo.SceneName}_".ToLower();
|
||||
}
|
||||
|
||||
public void Execute(GameStateChangedNotification command)
|
||||
{
|
||||
if (command.NewState != GameState.Gameplay)
|
||||
{
|
||||
_mazeSkipperCanvasGroup.alpha = 0f;
|
||||
_mazeSkipperCanvasGroup.interactable = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (_sceneManager.GetCurrentScene() is not { } currentScene) return;
|
||||
|
||||
ScnSceneInfo currentSceneInfo = currentScene.GetSceneInfo();
|
||||
var cmdHashKeyPrefix = GetCommandHashKeyPrefix(currentSceneInfo);
|
||||
|
||||
if (command.NewState == GameState.Gameplay &&
|
||||
_skipperCommands.Keys.Any(_ => _.StartsWith(cmdHashKeyPrefix, StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
_mazeSkipperCanvasGroup.alpha = 1f;
|
||||
_mazeSkipperCanvasGroup.interactable = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void Execute(ScenePostLoadingNotification command)
|
||||
{
|
||||
var cmdHashKeyPrefix = GetCommandHashKeyPrefix(command.NewSceneInfo);
|
||||
|
||||
if (_gameStateManager.GetCurrentState() == GameState.Gameplay &&
|
||||
_skipperCommands.Keys.Any(_ => _.StartsWith(cmdHashKeyPrefix, StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
_mazeSkipperCanvasGroup.alpha = 1f;
|
||||
_mazeSkipperCanvasGroup.interactable = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
_mazeSkipperCanvasGroup.alpha = 0f;
|
||||
_mazeSkipperCanvasGroup.interactable = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ namespace Pal3.Effect
|
||||
{
|
||||
using System;
|
||||
using Core.DataLoader;
|
||||
using Core.DataReader.Pol;
|
||||
using Core.Renderer;
|
||||
using Data;
|
||||
using MetaData;
|
||||
@@ -31,12 +32,11 @@ namespace Pal3.Effect
|
||||
|
||||
if (!string.IsNullOrEmpty(info.ModelPath))
|
||||
{
|
||||
(Core.DataReader.Pol.PolFile PolFile, ITextureResourceProvider TextureProvider) poly = resourceProvider.GetPol(info.ModelPath);
|
||||
(PolFile PolFile, ITextureResourceProvider TextureProvider) poly = resourceProvider.GetPol(info.ModelPath);
|
||||
_sceneObjectRenderer = gameObject.AddComponent<PolyModelRenderer>();
|
||||
_sceneObjectRenderer.Render(poly.PolFile,
|
||||
materialFactory,
|
||||
poly.TextureProvider,
|
||||
Color.white);
|
||||
materialFactory);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(info.TexturePathFormat))
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
namespace Pal3.Effect.PostProcessing
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Command;
|
||||
using Command.InternalCommands;
|
||||
using Command.SceCommands;
|
||||
@@ -163,6 +164,33 @@ namespace Pal3.Effect.PostProcessing
|
||||
ToggleAmbientOcclusionBasedOnSetting();
|
||||
TogglePostProcessLayerWhenNeeded();
|
||||
}
|
||||
|
||||
#if UNITY_IOS
|
||||
if (command.SettingName is nameof(GameSettings.ResolutionScale))
|
||||
{
|
||||
StartCoroutine(ReloadAmbientOcclusionSetting());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if UNITY_IOS
|
||||
private IEnumerator Start()
|
||||
{
|
||||
yield return ReloadAmbientOcclusionSetting();
|
||||
}
|
||||
|
||||
// On iOS, the SSAO and Resolution changing are causing the RoundedFrostedGlass
|
||||
// shader to malfunction. This is a workaround to disable and re-enable SSAO to fix the issue.
|
||||
private IEnumerator ReloadAmbientOcclusionSetting()
|
||||
{
|
||||
if (_gameSettings.IsAmbientOcclusionEnabled)
|
||||
{
|
||||
yield return null;
|
||||
_gameSettings.IsAmbientOcclusionEnabled = false;
|
||||
yield return null;
|
||||
_gameSettings.IsAmbientOcclusionEnabled = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.Player
|
||||
namespace Pal3.GamePlay
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -20,6 +20,7 @@ namespace Pal3.Player
|
||||
using Core.Renderer;
|
||||
using Core.Utils;
|
||||
using Data;
|
||||
using GameSystem;
|
||||
using Input;
|
||||
using MetaData;
|
||||
using Scene;
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.Player
|
||||
namespace Pal3.GamePlay
|
||||
{
|
||||
using System;
|
||||
using Command;
|
||||
@@ -105,6 +105,7 @@ namespace Pal3
|
||||
// since it's possible that user changed the game data folder path
|
||||
// during the file system initialization
|
||||
gameSettings.GameDataFolderPath = gameDataFolderPath;
|
||||
gameSettings.SaveSettings();
|
||||
|
||||
break; // Stop searching when file system is initialized successfully
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.UI
|
||||
namespace Pal3.GameSystem
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -19,6 +19,7 @@ namespace Pal3.UI
|
||||
using Scene;
|
||||
using State;
|
||||
using TMPro;
|
||||
using UI;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.InputSystem;
|
||||
@@ -29,6 +30,7 @@ namespace Pal3.UI
|
||||
ICommandExecutor<BigMapEnableRegionCommand>,
|
||||
ICommandExecutor<ResetGameStateCommand>,
|
||||
ICommandExecutor<GameSwitchRenderingStateCommand>,
|
||||
ICommandExecutor<GameSwitchToMainMenuCommand>,
|
||||
ICommandExecutor<ToggleBigMapRequest>
|
||||
{
|
||||
private EventSystem _eventSystem;
|
||||
@@ -38,7 +40,10 @@ namespace Pal3.UI
|
||||
private ScriptManager _scriptManager;
|
||||
private SceneManager _sceneManager;
|
||||
private CanvasGroup _bigMapCanvas;
|
||||
private GridLayoutGroup _bigMapCanvasGridLayoutGroup;
|
||||
private GameObject _bigMapRegionButtonPrefab;
|
||||
private RectTransform _bigMapBackgroundTransform;
|
||||
private CanvasGroup _bigMapBackgroundCanvasGroup;
|
||||
|
||||
private bool _isVisible;
|
||||
|
||||
@@ -53,7 +58,8 @@ namespace Pal3.UI
|
||||
InputManager inputManager,
|
||||
ScriptManager scriptManager,
|
||||
CanvasGroup bigMapCanvas,
|
||||
GameObject bigMapRegionButtonPrefab)
|
||||
GameObject bigMapRegionButtonPrefab,
|
||||
GameObject bigMapBackground)
|
||||
{
|
||||
_eventSystem = Requires.IsNotNull(eventSystem, nameof(eventSystem));
|
||||
_gameStateManager = Requires.IsNotNull(gameStateManager, nameof(gameStateManager));
|
||||
@@ -61,12 +67,18 @@ namespace Pal3.UI
|
||||
_inputManager = Requires.IsNotNull(inputManager, nameof(inputManager));
|
||||
_scriptManager = Requires.IsNotNull(scriptManager, nameof(scriptManager));
|
||||
_bigMapCanvas = Requires.IsNotNull(bigMapCanvas, nameof(bigMapCanvas));
|
||||
_bigMapCanvasGridLayoutGroup = Requires.IsNotNull(_bigMapCanvas.GetComponent<GridLayoutGroup>(), "bigMapCanvasGridLayoutGroup");
|
||||
_bigMapRegionButtonPrefab = Requires.IsNotNull(bigMapRegionButtonPrefab, nameof(bigMapRegionButtonPrefab));
|
||||
|
||||
Requires.IsNotNull(bigMapBackground, nameof(bigMapBackground));
|
||||
_bigMapBackgroundTransform = Requires.IsNotNull(bigMapBackground.GetComponent<RectTransform>(), "bigMapBackgroundRectTransform");
|
||||
_bigMapBackgroundCanvasGroup = Requires.IsNotNull(bigMapBackground.GetComponent<CanvasGroup>(), "bigMapBackgroundCanvasGroup");
|
||||
|
||||
_playerInputActions = inputManager.GetPlayerInputActions();
|
||||
|
||||
_bigMapCanvas.alpha = 0f;
|
||||
_bigMapCanvas.interactable = false;
|
||||
_bigMapBackgroundCanvasGroup.alpha = 0f;
|
||||
_isVisible = false;
|
||||
|
||||
_playerInputActions.Gameplay.ToggleBigMap.performed += ToggleBigMapOnPerformed;
|
||||
@@ -97,6 +109,7 @@ namespace Pal3.UI
|
||||
if (_isVisible)
|
||||
{
|
||||
Hide();
|
||||
_gameStateManager.GoToState(GameState.Gameplay);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,6 +130,7 @@ namespace Pal3.UI
|
||||
if (_isVisible)
|
||||
{
|
||||
Hide();
|
||||
_gameStateManager.GoToState(GameState.Gameplay);
|
||||
}
|
||||
else if (_gameStateManager.GetCurrentState() == GameState.Gameplay)
|
||||
{
|
||||
@@ -151,11 +165,7 @@ namespace Pal3.UI
|
||||
GameObject exitButtonObj = Instantiate(_bigMapRegionButtonPrefab, _bigMapCanvas.transform);
|
||||
var exitButtonTextUI = exitButtonObj.GetComponentInChildren<TextMeshProUGUI>();
|
||||
exitButtonTextUI.text = "关闭";
|
||||
exitButtonTextUI.fontStyle = FontStyles.Underline;
|
||||
var exitButton = exitButtonObj.GetComponent<Button>();
|
||||
Navigation exitButtonNavigation = exitButton.navigation;
|
||||
exitButtonNavigation.mode = Navigation.Mode.Horizontal | Navigation.Mode.Vertical;
|
||||
exitButton.navigation = exitButtonNavigation;
|
||||
exitButton.colors = UITheme.GetButtonColors();
|
||||
exitButton.onClick.AddListener(delegate { BigMapButtonClicked(-1);});
|
||||
_selectionButtons.Add(exitButtonObj);
|
||||
@@ -168,9 +178,6 @@ namespace Pal3.UI
|
||||
buttonTextUI.text = BigMapConstants.BigMapRegions[i];
|
||||
var buttonIndex = i;
|
||||
var button = selectionButton.GetComponent<Button>();
|
||||
Navigation buttonNavigation = button.navigation;
|
||||
buttonNavigation.mode = Navigation.Mode.Horizontal | Navigation.Mode.Vertical;
|
||||
button.navigation = buttonNavigation;
|
||||
button.colors = UITheme.GetButtonColors();
|
||||
button.onClick.AddListener(delegate { BigMapButtonClicked(buttonIndex);});
|
||||
_selectionButtons.Add(selectionButton);
|
||||
@@ -191,10 +198,40 @@ namespace Pal3.UI
|
||||
_eventSystem.firstSelectedGameObject = null;
|
||||
}
|
||||
|
||||
if (_selectionButtons.Count > 0)
|
||||
if (_selectionButtons.Count > 1)
|
||||
{
|
||||
// Setup button navigation
|
||||
void ConfigureButtonNavigation(Button button, int index, int count)
|
||||
{
|
||||
Navigation buttonNavigation = button.navigation;
|
||||
buttonNavigation.mode = Navigation.Mode.Explicit;
|
||||
|
||||
int leftIndex = index == 0 ? count - 1 : index - 1;
|
||||
int rightIndex = index == count - 1 ? 0 : index + 1;
|
||||
|
||||
buttonNavigation.selectOnLeft = _selectionButtons[leftIndex].GetComponentInChildren<Button>();
|
||||
buttonNavigation.selectOnRight = _selectionButtons[rightIndex].GetComponentInChildren<Button>();
|
||||
|
||||
button.navigation = buttonNavigation;
|
||||
}
|
||||
|
||||
for (var i = 0; i < _selectionButtons.Count; i++)
|
||||
{
|
||||
var button = _selectionButtons[i].GetComponentInChildren<Button>();
|
||||
ConfigureButtonNavigation(button, i, _selectionButtons.Count);
|
||||
}
|
||||
|
||||
float width = (_bigMapCanvasGridLayoutGroup.cellSize.x + _bigMapCanvasGridLayoutGroup.spacing.x) *
|
||||
_selectionButtons.Count - _bigMapCanvasGridLayoutGroup.spacing.x + 80f;
|
||||
float height = _bigMapCanvasGridLayoutGroup.cellSize.y + 100f;
|
||||
|
||||
_bigMapBackgroundTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, width);
|
||||
_bigMapBackgroundTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, height);
|
||||
_bigMapBackgroundTransform.ForceUpdateRectTransforms();
|
||||
|
||||
_bigMapCanvas.alpha = 1f;
|
||||
_bigMapCanvas.interactable = true;
|
||||
_bigMapBackgroundCanvasGroup.alpha = 1f;
|
||||
_isVisible = true;
|
||||
}
|
||||
}
|
||||
@@ -206,12 +243,14 @@ namespace Pal3.UI
|
||||
_scriptManager.AddScript((uint)(100 + buttonIndex), true);
|
||||
}
|
||||
Hide();
|
||||
_gameStateManager.GoToState(GameState.Gameplay);
|
||||
}
|
||||
|
||||
public void Hide()
|
||||
{
|
||||
_bigMapCanvas.alpha = 0f;
|
||||
_bigMapCanvas.interactable = false;
|
||||
_bigMapBackgroundCanvasGroup.alpha = 0f;
|
||||
_isVisible = false;
|
||||
|
||||
foreach (GameObject button in _selectionButtons)
|
||||
@@ -221,7 +260,6 @@ namespace Pal3.UI
|
||||
}
|
||||
_selectionButtons.Clear();
|
||||
_gameStateManager.RemoveGamePlayStateLocker(_stateLockerGuid);
|
||||
_gameStateManager.GoToState(GameState.Gameplay);
|
||||
}
|
||||
|
||||
public void Execute(BigMapEnableRegionCommand command)
|
||||
@@ -246,5 +284,13 @@ namespace Pal3.UI
|
||||
{
|
||||
ToggleBigMap();
|
||||
}
|
||||
|
||||
public void Execute(GameSwitchToMainMenuCommand command)
|
||||
{
|
||||
if (_bigMapCanvas.interactable)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.Feature
|
||||
namespace Pal3.GameSystem
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.UI
|
||||
namespace Pal3.GameSystem
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -13,6 +13,7 @@ namespace Pal3.UI
|
||||
using Command;
|
||||
using Command.InternalCommands;
|
||||
using Command.SceCommands;
|
||||
using Core.Animation;
|
||||
using Core.Utils;
|
||||
using Data;
|
||||
using Input;
|
||||
@@ -21,6 +22,7 @@ namespace Pal3.UI
|
||||
using Script.Waiter;
|
||||
using State;
|
||||
using TMPro;
|
||||
using UI;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.InputSystem;
|
||||
@@ -34,7 +36,10 @@ namespace Pal3.UI
|
||||
ICommandExecutor<DialogueRenderTextWithTimeLimitCommand>,
|
||||
ICommandExecutor<ResetGameStateCommand>
|
||||
{
|
||||
private const float LIMIT_TIME_DIALOGUE_PLAYER_MAX_REACTION_TIME = 4f;
|
||||
private const float LIMIT_TIME_DIALOGUE_PLAYER_MAX_REACTION_TIME_IN_SECONDS = 4f;
|
||||
private const float DIALOGUE_SHOW_HIDE_ANIMATION_DURATION = 0.1f;
|
||||
private const float DIALOGUE_SHOW_HIDE_ANIMATION_Y_OFFSET = -30f;
|
||||
|
||||
private const string INFORMATION_TEXT_COLOR_HEX = "#ffff05";
|
||||
|
||||
private GameResourceProvider _resourceProvider;
|
||||
@@ -44,7 +49,7 @@ namespace Pal3.UI
|
||||
private PlayerInputActions _inputActions;
|
||||
|
||||
private EventSystem _eventSystem;
|
||||
private Canvas _dialogueCanvas;
|
||||
private CanvasGroup _dialogueCanvasGroup;
|
||||
private Canvas _dialogueSelectionButtonsCanvas;
|
||||
private GameObject _dialogueSelectionButtonPrefab;
|
||||
private Image _dialogueBackgroundImage;
|
||||
@@ -72,7 +77,7 @@ namespace Pal3.UI
|
||||
SceneManager sceneManager,
|
||||
InputManager inputManager,
|
||||
EventSystem eventSystem,
|
||||
Canvas dialogueCanvas,
|
||||
CanvasGroup dialogueCanvasGroup,
|
||||
Image dialogueBackgroundImage,
|
||||
Image avatarImageLeft,
|
||||
Image avatarImageRight,
|
||||
@@ -88,7 +93,7 @@ namespace Pal3.UI
|
||||
_inputManager = Requires.IsNotNull(inputManager, nameof(inputManager));
|
||||
_eventSystem = Requires.IsNotNull(eventSystem, nameof(eventSystem));
|
||||
|
||||
_dialogueCanvas = Requires.IsNotNull(dialogueCanvas, nameof(dialogueCanvas));
|
||||
_dialogueCanvasGroup = Requires.IsNotNull(dialogueCanvasGroup, nameof(dialogueCanvasGroup));
|
||||
_dialogueBackgroundImage = Requires.IsNotNull(dialogueBackgroundImage, nameof(dialogueBackgroundImage));
|
||||
|
||||
_avatarImageLeft = Requires.IsNotNull(avatarImageLeft, nameof(avatarImageLeft));
|
||||
@@ -103,6 +108,7 @@ namespace Pal3.UI
|
||||
|
||||
_avatarImageLeft.preserveAspect = true;
|
||||
_avatarImageRight.preserveAspect = true;
|
||||
|
||||
ResetUI();
|
||||
|
||||
_inputActions = inputManager.GetPlayerInputActions();
|
||||
@@ -127,7 +133,7 @@ namespace Pal3.UI
|
||||
|
||||
public bool PlayerReactedInTimeForLimitTimeDialogue()
|
||||
{
|
||||
return _totalTimeUsedBeforeSkippingTheLastDialogue < LIMIT_TIME_DIALOGUE_PLAYER_MAX_REACTION_TIME;
|
||||
return _totalTimeUsedBeforeSkippingTheLastDialogue < LIMIT_TIME_DIALOGUE_PLAYER_MAX_REACTION_TIME_IN_SECONDS;
|
||||
}
|
||||
|
||||
IEnumerator TypeSentenceAsync(TextMeshProUGUI textUI, string sentence, float waitSecondsBeforeRenderingChar)
|
||||
@@ -266,9 +272,13 @@ namespace Pal3.UI
|
||||
var timer = new Stopwatch();
|
||||
timer.Start();
|
||||
_dialogueBackgroundImage.enabled = true;
|
||||
_dialogueCanvas.enabled = true;
|
||||
_dialogueCanvasGroup.alpha = 0f;
|
||||
_dialogueCanvasGroup.enabled = true;
|
||||
_isSkipDialogueRequested = false;
|
||||
|
||||
yield return StartDialogueAnimationAsync(true);
|
||||
_isSkipDialogueRequested = false; // Ignore skip request during dialogue rendering animation
|
||||
|
||||
foreach (var dialogue in GetSubDialoguesAsync(text))
|
||||
{
|
||||
IEnumerator renderDialogue = RenderDialogueTextWithAnimationAsync(dialogueTextUI, dialogue);
|
||||
@@ -292,14 +302,43 @@ namespace Pal3.UI
|
||||
_totalTimeUsedBeforeSkippingTheLastDialogue = timer.Elapsed.TotalSeconds;
|
||||
}
|
||||
|
||||
yield return StartDialogueAnimationAsync(false);
|
||||
|
||||
ResetUI();
|
||||
waitUntilCanceled.CancelWait();
|
||||
_isDialoguePresenting = false;
|
||||
}
|
||||
|
||||
private IEnumerator StartDialogueAnimationAsync(bool showDialogue)
|
||||
{
|
||||
const float yOffset = DIALOGUE_SHOW_HIDE_ANIMATION_Y_OFFSET;
|
||||
Transform dialogueCanvasGroupTransform = _dialogueCanvasGroup.transform;
|
||||
Vector3 finalPosition = dialogueCanvasGroupTransform.position;
|
||||
Vector3 startPosition = finalPosition + new Vector3(0f, yOffset, 0);
|
||||
|
||||
float startValue = showDialogue ? 0f : 1f;
|
||||
float endValue = showDialogue ? 1f : 0f;
|
||||
|
||||
if (showDialogue)
|
||||
{
|
||||
dialogueCanvasGroupTransform.position = startPosition;
|
||||
}
|
||||
|
||||
yield return AnimationHelper.EnumerateValueAsync(startValue, endValue, DIALOGUE_SHOW_HIDE_ANIMATION_DURATION,
|
||||
AnimationCurveType.Linear, value =>
|
||||
{
|
||||
_dialogueCanvasGroup.transform.position = finalPosition + new Vector3(0f, yOffset * (1 - value), 0);
|
||||
_dialogueCanvasGroup.alpha = value;
|
||||
});
|
||||
|
||||
_dialogueCanvasGroup.transform.position = finalPosition; // Always set to final position
|
||||
_dialogueCanvasGroup.alpha = showDialogue ? 1f : 0f;
|
||||
}
|
||||
|
||||
private void ResetUI()
|
||||
{
|
||||
_dialogueCanvas.enabled = false;
|
||||
_dialogueCanvasGroup.alpha = 0f;
|
||||
_dialogueCanvasGroup.enabled = false;
|
||||
|
||||
_dialogueTextLeft.text = string.Empty;
|
||||
_dialogueTextRight.text = string.Empty;
|
||||
@@ -396,8 +435,8 @@ namespace Pal3.UI
|
||||
var skipDialogueWaiter = new WaitUntilCanceled();
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new ScriptRunnerAddWaiterRequest(skipDialogueWaiter));
|
||||
DialogueRenderActorAvatarCommand avatarCommand = _lastAvatarCommand;
|
||||
_dialogueRenderQueue.Enqueue(
|
||||
RenderDialogueAndWaitAsync(GetDisplayText(command.DialogueText), false, skipDialogueWaiter, avatarCommand));
|
||||
_dialogueRenderQueue.Enqueue(RenderDialogueAndWaitAsync(
|
||||
GetDisplayText(command.DialogueText), false, skipDialogueWaiter, avatarCommand));
|
||||
_lastAvatarCommand = null;
|
||||
}
|
||||
|
||||
@@ -406,7 +445,8 @@ namespace Pal3.UI
|
||||
var skipDialogueWaiter = new WaitUntilCanceled();
|
||||
CommandDispatcher<ICommand>.Instance.Dispatch(new ScriptRunnerAddWaiterRequest(skipDialogueWaiter));
|
||||
DialogueRenderActorAvatarCommand avatarCommand = _lastAvatarCommand;
|
||||
_dialogueRenderQueue.Enqueue(RenderDialogueAndWaitAsync(GetDisplayText(command.DialogueText), true, skipDialogueWaiter, avatarCommand));
|
||||
_dialogueRenderQueue.Enqueue(RenderDialogueAndWaitAsync(
|
||||
GetDisplayText(command.DialogueText), true, skipDialogueWaiter, avatarCommand));
|
||||
_lastAvatarCommand = null;
|
||||
}
|
||||
|
||||
@@ -480,31 +520,26 @@ namespace Pal3.UI
|
||||
}
|
||||
|
||||
// Setup button navigation
|
||||
for (var i = 0; i < command.Selections.Count; i++)
|
||||
void ConfigureButtonNavigation(Button button, int index, int count)
|
||||
{
|
||||
var button = _selectionButtons[i].GetComponentInChildren<Button>();
|
||||
Navigation buttonNavigation = button.navigation;
|
||||
buttonNavigation.mode = Navigation.Mode.Explicit;
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
buttonNavigation.selectOnUp = _selectionButtons[^1].GetComponentInChildren<Button>();
|
||||
buttonNavigation.selectOnDown = _selectionButtons[i + 1].GetComponentInChildren<Button>();
|
||||
}
|
||||
else if (i == command.Selections.Count - 1)
|
||||
{
|
||||
buttonNavigation.selectOnUp = _selectionButtons[i - 1].GetComponentInChildren<Button>();
|
||||
buttonNavigation.selectOnDown = _selectionButtons[0].GetComponentInChildren<Button>();
|
||||
}
|
||||
else
|
||||
{
|
||||
buttonNavigation.selectOnUp = _selectionButtons[i - 1].GetComponentInChildren<Button>();
|
||||
buttonNavigation.selectOnDown = _selectionButtons[i + 1].GetComponentInChildren<Button>();
|
||||
}
|
||||
int upIndex = index == 0 ? count - 1 : index - 1;
|
||||
int downIndex = index == count - 1 ? 0 : index + 1;
|
||||
|
||||
buttonNavigation.selectOnUp = _selectionButtons[upIndex].GetComponentInChildren<Button>();
|
||||
buttonNavigation.selectOnDown = _selectionButtons[downIndex].GetComponentInChildren<Button>();
|
||||
|
||||
button.navigation = buttonNavigation;
|
||||
}
|
||||
|
||||
for (var i = 0; i < command.Selections.Count; i++)
|
||||
{
|
||||
var button = _selectionButtons[i].GetComponentInChildren<Button>();
|
||||
ConfigureButtonNavigation(button, i, command.Selections.Count);
|
||||
}
|
||||
|
||||
var firstButton = _selectionButtons.First().GetComponentInChildren<Button>();
|
||||
|
||||
InputDevice lastActiveInputDevice = _inputManager.GetLastActiveInputDevice();
|
||||
@@ -520,7 +555,8 @@ namespace Pal3.UI
|
||||
_eventSystem.firstSelectedGameObject = null;
|
||||
}
|
||||
|
||||
_dialogueCanvas.enabled = true;
|
||||
_dialogueCanvasGroup.alpha = 1f;
|
||||
_dialogueCanvasGroup.enabled = true;
|
||||
_dialogueSelectionButtonsCanvas.enabled = true;
|
||||
}
|
||||
|
||||
@@ -533,6 +569,7 @@ namespace Pal3.UI
|
||||
public void Execute(ResetGameStateCommand command)
|
||||
{
|
||||
_lastAvatarCommand = null;
|
||||
_totalTimeUsedBeforeSkippingTheLastDialogue = 0f;
|
||||
_dialogueRenderQueue.Clear();
|
||||
ResetUI();
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.Feature
|
||||
namespace Pal3.GameSystem
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.Feature
|
||||
namespace Pal3.GameSystem
|
||||
{
|
||||
using System;
|
||||
using Command;
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.UI
|
||||
namespace Pal3.GameSystem
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.Player
|
||||
namespace Pal3.GameSystem
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -3,7 +3,7 @@
|
||||
// See LICENSE file in the project root for license information.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
namespace Pal3.Player
|
||||
namespace Pal3.GameSystem
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -15,6 +15,7 @@ namespace Pal3.Player
|
||||
using Core.DataReader.Scn;
|
||||
using Core.Utils;
|
||||
using MetaData;
|
||||
using GamePlay;
|
||||
using Scene;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
||||
// version 1.5.0
|
||||
// version 1.5.1
|
||||
// from Assets/Scripts/Pal3/Input/PlayerInputActions.inputactions
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
|
||||
@@ -19,10 +19,10 @@ namespace Pal3
|
||||
using Data;
|
||||
using Dev;
|
||||
using Effect;
|
||||
using Feature;
|
||||
using GamePlay;
|
||||
using GameSystem;
|
||||
using Input;
|
||||
using IngameDebugConsole;
|
||||
using Player;
|
||||
using Scene;
|
||||
using Script;
|
||||
using Settings;
|
||||
@@ -62,7 +62,7 @@ namespace Pal3
|
||||
[SerializeField] private TextMeshProUGUI noteText;
|
||||
|
||||
// Dialogue
|
||||
[SerializeField] private Canvas dialogueCanvas;
|
||||
[SerializeField] private CanvasGroup dialogueCanvasGroup;
|
||||
[SerializeField] private Image dialogueBackgroundImage;
|
||||
[SerializeField] private Image dialogueAvatarImageLeft;
|
||||
[SerializeField] private Image dialogueAvatarImageRight;
|
||||
@@ -77,23 +77,24 @@ namespace Pal3
|
||||
|
||||
// Debug
|
||||
[SerializeField] private TextMeshProUGUI debugInfo;
|
||||
[SerializeField] private CanvasGroup mazeSkipperCanvasGroup;
|
||||
[SerializeField] private Button mazeEntranceButton;
|
||||
[SerializeField] private Button mazeExitButton;
|
||||
|
||||
// BigMap
|
||||
[SerializeField] private CanvasGroup bigMapCanvasGroup;
|
||||
[SerializeField] private GameObject bigMapRegionButtonPrefab;
|
||||
[SerializeField] private GameObject bigMapBackground;
|
||||
|
||||
// Story selector
|
||||
[SerializeField] private CanvasGroup storySelectionCanvasGroup;
|
||||
[SerializeField] private GameObject storySelectionButtonPrefab;
|
||||
// Main menu
|
||||
[SerializeField] private CanvasGroup mainMenuCanvasGroup;
|
||||
[SerializeField] private GameObject menuButtonPrefab;
|
||||
[SerializeField] private RectTransform backgroundTransform;
|
||||
[SerializeField] private RectTransform contentTransform;
|
||||
[SerializeField] private ScrollRect contentScrollRect;
|
||||
|
||||
// Touch control
|
||||
[SerializeField] private Canvas touchControlUI;
|
||||
[SerializeField] private Button interactionButton;
|
||||
[SerializeField] private Button bigMapButton;
|
||||
[SerializeField] private Button storySelectionButton;
|
||||
[SerializeField] private Button mainMenuButton;
|
||||
|
||||
// Event system
|
||||
[SerializeField] private EventSystem eventSystem;
|
||||
@@ -181,7 +182,7 @@ namespace Pal3
|
||||
_teamManager = new TeamManager(_playerManager, _sceneManager);
|
||||
ServiceLocator.Instance.Register(_teamManager);
|
||||
_touchControlUIManager = new TouchControlUIManager(touchControlUI,
|
||||
interactionButton, bigMapButton, storySelectionButton);
|
||||
interactionButton, bigMapButton, mainMenuButton);
|
||||
ServiceLocator.Instance.Register(_touchControlUIManager);
|
||||
_favorManager = new FavorManager();
|
||||
ServiceLocator.Instance.Register(_favorManager);
|
||||
@@ -253,7 +254,7 @@ namespace Pal3
|
||||
_sceneManager,
|
||||
_inputManager,
|
||||
eventSystem,
|
||||
dialogueCanvas,
|
||||
dialogueCanvasGroup,
|
||||
dialogueBackgroundImage,
|
||||
dialogueAvatarImageLeft,
|
||||
dialogueAvatarImageRight,
|
||||
@@ -281,7 +282,8 @@ namespace Pal3
|
||||
_inputManager,
|
||||
_scriptManager,
|
||||
bigMapCanvasGroup,
|
||||
bigMapRegionButtonPrefab);
|
||||
bigMapRegionButtonPrefab,
|
||||
bigMapBackground);
|
||||
ServiceLocator.Instance.Register(_bigMapManager);
|
||||
|
||||
_postProcessManager = gameObject.AddComponent<PostProcessManager>();
|
||||
@@ -305,16 +307,13 @@ namespace Pal3
|
||||
_postProcessManager);
|
||||
ServiceLocator.Instance.Register(_saveManager);
|
||||
|
||||
_mazeSkipper = new MazeSkipper(_gameStateManager,
|
||||
_sceneManager,
|
||||
mazeSkipperCanvasGroup,
|
||||
mazeEntranceButton,
|
||||
mazeExitButton);
|
||||
_mazeSkipper = new MazeSkipper(_sceneManager);
|
||||
ServiceLocator.Instance.Register(_mazeSkipper);
|
||||
|
||||
_mainMenu = gameObject.AddComponent<MainMenu>();
|
||||
_mainMenu.Init(
|
||||
_gameSettings,
|
||||
_audioManager,
|
||||
_inputManager,
|
||||
eventSystem,
|
||||
_sceneManager,
|
||||
@@ -323,8 +322,13 @@ namespace Pal3
|
||||
_teamManager,
|
||||
_saveManager,
|
||||
_informationManager,
|
||||
storySelectionCanvasGroup,
|
||||
storySelectionButtonPrefab);
|
||||
_mazeSkipper,
|
||||
mainMenuCanvasGroup,
|
||||
menuButtonPrefab,
|
||||
contentScrollRect,
|
||||
backgroundTransform,
|
||||
contentTransform,
|
||||
mainCamera);
|
||||
ServiceLocator.Instance.Register(_mainMenu);
|
||||
|
||||
DebugLogManager.Instance.OnLogWindowShown += OnDebugWindowShown;
|
||||
@@ -336,8 +340,12 @@ namespace Pal3
|
||||
DebugLogConsole.AddCommand<float>("fov", "Set camera FOV.", SetCameraFov);
|
||||
|
||||
DisableInGameDebugConsoleButtonNavigation();
|
||||
}
|
||||
|
||||
_mainMenu.Show();
|
||||
private void Start()
|
||||
{
|
||||
_mainMenu.ShowInitView();
|
||||
_mainMenu.ShowMenu();
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
@@ -356,7 +364,7 @@ namespace Pal3
|
||||
_sceneManager.Dispose();
|
||||
_touchControlUIManager.Dispose();
|
||||
_favorManager.Dispose();
|
||||
_mazeSkipper.Dispose();
|
||||
_saveManager.Dispose();
|
||||
|
||||
#if PAL3
|
||||
_appraisalsMiniGame.Dispose();
|
||||
|
||||
@@ -33,11 +33,11 @@ namespace Pal3.Renderer
|
||||
public void Init(CvdFile cvdFile,
|
||||
IMaterialFactory materialFactory,
|
||||
ITextureResourceProvider textureProvider,
|
||||
Color tintColor,
|
||||
Color? tintColor = default,
|
||||
float initTime = 0f)
|
||||
{
|
||||
_animationDuration = cvdFile.AnimationDuration;
|
||||
_tintColor = tintColor;
|
||||
_tintColor = tintColor ?? Color.white;
|
||||
_currentTime = initTime;
|
||||
|
||||
foreach (CvdGeometryNode node in cvdFile.RootNodes)
|
||||
|
||||
@@ -60,16 +60,16 @@ namespace Pal3.Renderer
|
||||
public void Init(Mv3File mv3File,
|
||||
IMaterialFactory materialFactory,
|
||||
ITextureResourceProvider textureProvider,
|
||||
Color tintColor,
|
||||
Color? tintColor = default,
|
||||
PolFile tagNodePolFile = default,
|
||||
ITextureResourceProvider tagNodeTextureProvider = default,
|
||||
Color tagNodeTintColor = default)
|
||||
Color? tagNodeTintColor = default)
|
||||
{
|
||||
DisposeAnimation();
|
||||
|
||||
_materialFactory = materialFactory;
|
||||
_textureProvider = textureProvider;
|
||||
_tintColor = tintColor;
|
||||
_tintColor = tintColor ?? Color.white;
|
||||
|
||||
_events = mv3File.AnimationEvents;
|
||||
_duration = mv3File.Duration;
|
||||
@@ -116,8 +116,8 @@ namespace Pal3.Renderer
|
||||
_tagNodes[i] = new GameObject(tagNodePolFile.NodeDescriptions.First().Name);
|
||||
var tagNodeRenderer = _tagNodes[i].AddComponent<PolyModelRenderer>();
|
||||
tagNodeRenderer.Render(tagNodePolFile,
|
||||
_materialFactory,
|
||||
tagNodeTextureProvider,
|
||||
_materialFactory,
|
||||
tagNodeTintColor);
|
||||
|
||||
_tagNodes[i].transform.SetParent(transform, true);
|
||||
|
||||
@@ -38,14 +38,14 @@ namespace Pal3.Renderer
|
||||
private readonly int _mainTexturePropertyId = Shader.PropertyToID("_MainTex");
|
||||
|
||||
public void Render(PolFile polFile,
|
||||
IMaterialFactory materialFactory,
|
||||
ITextureResourceProvider textureProvider,
|
||||
Color tintColor,
|
||||
bool isWaterSurfaceOpaque = false)
|
||||
IMaterialFactory materialFactory,
|
||||
Color? tintColor = default,
|
||||
bool isWaterSurfaceOpaque = default)
|
||||
{
|
||||
_materialFactory = materialFactory;
|
||||
_textureProvider = textureProvider;
|
||||
_tintColor = tintColor;
|
||||
_materialFactory = materialFactory;
|
||||
_tintColor = tintColor ?? Color.white;
|
||||
_isWaterSurfaceOpaque = isWaterSurfaceOpaque;
|
||||
_textureCache = BuildTextureCache(polFile, textureProvider);
|
||||
|
||||
|
||||
@@ -240,8 +240,8 @@ namespace Pal3.Scene
|
||||
_mesh.transform.SetParent(_parent.transform, false);
|
||||
|
||||
polyMeshRenderer.Render(ScenePolyMesh.PolFile,
|
||||
_materialFactory,
|
||||
ScenePolyMesh.TextureProvider,
|
||||
_materialFactory,
|
||||
Color.white,
|
||||
IsWaterSurfaceOpaque());
|
||||
|
||||
@@ -250,9 +250,7 @@ namespace Pal3.Scene
|
||||
var cvdMeshRenderer = _mesh.AddComponent<CvdModelRenderer>();
|
||||
cvdMeshRenderer.Init(SceneCvdMesh.Value.CvdFile,
|
||||
_materialFactory,
|
||||
SceneCvdMesh.Value.TextureProvider,
|
||||
Color.white,
|
||||
0f);
|
||||
SceneCvdMesh.Value.TextureProvider);
|
||||
cvdMeshRenderer.LoopAnimation(SCENE_CVD_ANIMATION_DEFAULT_TIMESCALE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Pal3.Scene
|
||||
using Core.DataReader.Pol;
|
||||
using Core.DataReader.Scn;
|
||||
using Data;
|
||||
using Player;
|
||||
using GamePlay;
|
||||
using SceneObjects;
|
||||
using State;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -15,8 +15,8 @@ namespace Pal3.Scene.SceneObjects
|
||||
using Core.GameBox;
|
||||
using Core.Services;
|
||||
using Data;
|
||||
using GamePlay;
|
||||
using MetaData;
|
||||
using Player;
|
||||
using Renderer;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||