+事件连琐

+对话框分化完毕
+打包Resources文件夹
This commit is contained in:
cneicy committed 2024-09-18 13:16:54 +08:00
1 parent 5e7e7bbb0e
commit d4a9b7e0a3
34 files changed
+2580 -251

No files matched your search

-2
View File
@@ -1,2 +0,0 @@
index,content,type,animation,character,event
0,我会一直视奸你,永远..永远…..,screen,typeing,,
1 index content type animation character event
2 0 我会一直视奸你,永远..永远….. screen typeing
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1ad893a1220789741ae03de71a8e669a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -151,96 +151,6 @@ MonoBehaviour:
m_StrikethroughThickness: 0
m_TabWidth: 30
m_GlyphTable:
- m_Index: 364
m_Metrics:
m_Width: 75
m_Height: 15
m_HorizontalBearingX: 15
m_HorizontalBearingY: 30
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 10
m_Y: 10
m_Width: 75
m_Height: 15
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 66
m_Metrics:
m_Width: 45
m_Height: 7.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: -7.5
m_HorizontalAdvance: 52.5
m_GlyphRect:
m_X: 104
m_Y: 10
m_Width: 45
m_Height: 8
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 95
m_Metrics:
m_Width: 7.5
m_Height: 82.5
m_HorizontalBearingX: 15
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 168
m_Y: 10
m_Width: 8
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 49
m_Metrics:
m_Width: 52.5
m_Height: 67.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 60
m_HorizontalAdvance: 60
m_GlyphRect:
m_X: 10
m_Y: 44
m_Width: 53
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 72
m_Metrics:
m_Width: 37.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 104
m_Y: 37
m_Width: 38
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 90
m_Metrics:
m_Width: 67.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 75
m_GlyphRect:
m_X: 195
m_Y: 10
m_Width: 68
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 3
m_Metrics:
m_Width: 0
@@ -256,6 +166,36 @@ MonoBehaviour:
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 14
m_Metrics:
m_Width: 52.5
m_Height: 52.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 52.5
m_HorizontalAdvance: 60
m_GlyphRect:
m_X: 195
m_Y: 75
m_Width: 53
m_Height: 53
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 17
m_Metrics:
m_Width: 7.5
m_Height: 7.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 0
m_HorizontalAdvance: 30
m_GlyphRect:
m_X: 369
m_Y: 75
m_Width: 8
m_Height: 8
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 39
m_Metrics:
m_Width: 52.5
@@ -271,21 +211,51 @@ MonoBehaviour:
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 76
- m_Index: 49
m_Metrics:
m_Width: 7.5
m_Width: 52.5
m_Height: 67.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 60
m_HorizontalAdvance: 30
m_HorizontalAdvance: 60
m_GlyphRect:
m_X: 10
m_Y: 131
m_Width: 8
m_Y: 44
m_Width: 53
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 55
m_Metrics:
m_Width: 52.5
m_Height: 67.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 60
m_HorizontalAdvance: 60
m_GlyphRect:
m_X: 948
m_Y: 10
m_Width: 53
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 66
m_Metrics:
m_Width: 45
m_Height: 7.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: -7.5
m_HorizontalAdvance: 52.5
m_GlyphRect:
m_X: 104
m_Y: 10
m_Width: 45
m_Height: 8
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 68
m_Metrics:
m_Width: 37.5
@@ -301,6 +271,51 @@ MonoBehaviour:
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 72
m_Metrics:
m_Width: 37.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 104
m_Y: 37
m_Width: 38
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 74
m_Metrics:
m_Width: 37.5
m_Height: 67.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 396
m_Y: 10
m_Width: 38
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 76
m_Metrics:
m_Width: 7.5
m_Height: 67.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 60
m_HorizontalAdvance: 30
m_GlyphRect:
m_X: 10
m_Y: 131
m_Width: 8
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 79
m_Metrics:
m_Width: 7.5
@@ -331,48 +346,123 @@ MonoBehaviour:
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 74
- m_Index: 87
m_Metrics:
m_Width: 37.5
m_Width: 30
m_Height: 67.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_HorizontalBearingY: 60
m_HorizontalAdvance: 37.5
m_GlyphRect:
m_X: 396
m_Y: 10
m_Width: 38
m_X: 256
m_Y: 177
m_Width: 30
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 14
- m_Index: 90
m_Metrics:
m_Width: 52.5
m_Height: 52.5
m_Width: 67.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 52.5
m_HorizontalAdvance: 60
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 75
m_GlyphRect:
m_X: 195
m_Y: 75
m_Width: 53
m_Height: 53
m_Y: 10
m_Width: 68
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 3372
- m_Index: 91
m_Metrics:
m_Width: 82.5
m_Width: 37.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 963
m_Y: 97
m_Width: 38
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 93
m_Metrics:
m_Width: 37.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 305
m_Y: 177
m_Width: 38
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 95
m_Metrics:
m_Width: 7.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingX: 15
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 168
m_Y: 10
m_Width: 8
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 364
m_Metrics:
m_Width: 75
m_Height: 15
m_HorizontalBearingX: 15
m_HorizontalBearingY: 30
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 267
m_Y: 75
m_X: 10
m_Y: 10
m_Width: 75
m_Height: 15
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 508
m_Metrics:
m_Width: 67.5
m_Height: 67.5
m_HorizontalBearingX: 15
m_HorizontalBearingY: 60
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 861
m_Y: 10
m_Width: 68
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 843
m_Metrics:
m_Width: 82.5
m_Height: 7.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 30
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 861
m_Y: 97
m_Width: 83
m_Height: 83
m_Height: 8
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
@@ -391,7 +481,22 @@ MonoBehaviour:
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 7700
- m_Index: 1068
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 555
m_Y: 10
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 1190
m_Metrics:
m_Width: 82.5
m_Height: 82.5
@@ -400,7 +505,7 @@ MonoBehaviour:
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 10
m_Y: 226
m_Y: 328
m_Width: 83
m_Height: 83
m_Scale: 1
@@ -421,7 +526,7 @@ MonoBehaviour:
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 1068
- m_Index: 3372
m_Metrics:
m_Width: 82.5
m_Height: 82.5
@@ -429,7 +534,112 @@ MonoBehaviour:
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 555
m_X: 267
m_Y: 75
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 3959
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 112
m_Y: 249
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 4593
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 657
m_Y: 10
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 5716
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 369
m_Y: 112
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 6575
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 471
m_Y: 112
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 6578
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 573
m_Y: 112
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 7700
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 10
m_Y: 226
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 8404
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 759
m_Y: 10
m_Width: 83
m_Height: 83
@@ -451,7 +661,7 @@ MonoBehaviour:
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 4593
- m_Index: 3605
m_Metrics:
m_Width: 82.5
m_Height: 82.5
@@ -459,14 +669,14 @@ MonoBehaviour:
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 657
m_Y: 10
m_X: 675
m_Y: 112
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 8404
- m_Index: 1402
m_Metrics:
m_Width: 82.5
m_Height: 82.5
@@ -474,69 +684,73 @@ MonoBehaviour:
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 759
m_Y: 10
m_X: 777
m_Y: 124
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 17
- m_Index: 8425
m_Metrics:
m_Width: 7.5
m_Height: 7.5
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 0
m_HorizontalAdvance: 30
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 369
m_Y: 75
m_Width: 8
m_Height: 8
m_X: 879
m_Y: 162
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
m_CharacterTable:
- m_ElementType: 1
m_Unicode: 8230
m_GlyphIndex: 364
m_Scale: 1
- m_ElementType: 1
m_Unicode: 95
m_GlyphIndex: 66
m_Scale: 1
- m_ElementType: 1
m_Unicode: 124
m_GlyphIndex: 95
m_Scale: 1
- m_ElementType: 1
m_Unicode: 78
m_GlyphIndex: 49
m_Scale: 1
- m_ElementType: 1
m_Unicode: 101
m_GlyphIndex: 72
m_Scale: 1
- m_ElementType: 1
m_Unicode: 119
m_GlyphIndex: 90
m_Scale: 1
- m_ElementType: 1
m_Unicode: 32
m_GlyphIndex: 3
m_Scale: 1
- m_ElementType: 1
m_Unicode: 43
m_GlyphIndex: 14
m_Scale: 1
- m_ElementType: 1
m_Unicode: 46
m_GlyphIndex: 17
m_Scale: 1
- m_ElementType: 1
m_Unicode: 68
m_GlyphIndex: 39
m_Scale: 1
- m_ElementType: 1
m_Unicode: 105
m_GlyphIndex: 76
m_Unicode: 78
m_GlyphIndex: 49
m_Scale: 1
- m_ElementType: 1
m_Unicode: 84
m_GlyphIndex: 55
m_Scale: 1
- m_ElementType: 1
m_Unicode: 95
m_GlyphIndex: 66
m_Scale: 1
- m_ElementType: 1
m_Unicode: 97
m_GlyphIndex: 68
m_Scale: 1
- m_ElementType: 1
m_Unicode: 101
m_GlyphIndex: 72
m_Scale: 1
- m_ElementType: 1
m_Unicode: 103
m_GlyphIndex: 74
m_Scale: 1
- m_ElementType: 1
m_Unicode: 105
m_GlyphIndex: 76
m_Scale: 1
- m_ElementType: 1
m_Unicode: 108
m_GlyphIndex: 79
@@ -546,48 +760,100 @@ MonoBehaviour:
m_GlyphIndex: 82
m_Scale: 1
- m_ElementType: 1
m_Unicode: 103
m_GlyphIndex: 74
m_Unicode: 116
m_GlyphIndex: 87
m_Scale: 1
- m_ElementType: 1
m_Unicode: 43
m_GlyphIndex: 14
m_Unicode: 119
m_GlyphIndex: 90
m_Scale: 1
- m_ElementType: 1
m_Unicode: 25105
m_GlyphIndex: 3372
m_Unicode: 120
m_GlyphIndex: 91
m_Scale: 1
- m_ElementType: 1
m_Unicode: 122
m_GlyphIndex: 93
m_Scale: 1
- m_ElementType: 1
m_Unicode: 124
m_GlyphIndex: 95
m_Scale: 1
- m_ElementType: 1
m_Unicode: 8230
m_GlyphIndex: 364
m_Scale: 1
- m_ElementType: 1
m_Unicode: 9633
m_GlyphIndex: 508
m_Scale: 1
- m_ElementType: 1
m_Unicode: 19968
m_GlyphIndex: 843
m_Scale: 1
- m_ElementType: 1
m_Unicode: 20250
m_GlyphIndex: 1029
m_Scale: 1
- m_ElementType: 1
m_Unicode: 35270
m_GlyphIndex: 7700
m_Unicode: 20320
m_GlyphIndex: 1068
m_Scale: 1
- m_ElementType: 1
m_Unicode: 20572
m_GlyphIndex: 1190
m_Scale: 1
- m_ElementType: 1
m_Unicode: 22904
m_GlyphIndex: 2393
m_Scale: 1
- m_ElementType: 1
m_Unicode: 20320
m_GlyphIndex: 1068
m_Unicode: 25105
m_GlyphIndex: 3372
m_Scale: 1
- m_ElementType: 1
m_Unicode: 65292
m_GlyphIndex: 10016
m_Unicode: 26242
m_GlyphIndex: 3959
m_Scale: 1
- m_ElementType: 1
m_Unicode: 27704
m_GlyphIndex: 4593
m_Scale: 1
- m_ElementType: 1
m_Unicode: 30452
m_GlyphIndex: 5716
m_Scale: 1
- m_ElementType: 1
m_Unicode: 32487
m_GlyphIndex: 6575
m_Scale: 1
- m_ElementType: 1
m_Unicode: 32493
m_GlyphIndex: 6578
m_Scale: 1
- m_ElementType: 1
m_Unicode: 35270
m_GlyphIndex: 7700
m_Scale: 1
- m_ElementType: 1
m_Unicode: 36828
m_GlyphIndex: 8404
m_Scale: 1
- m_ElementType: 1
m_Unicode: 46
m_GlyphIndex: 17
m_Unicode: 65292
m_GlyphIndex: 10016
m_Scale: 1
- m_ElementType: 1
m_Unicode: 25512
m_GlyphIndex: 3605
m_Scale: 1
- m_ElementType: 1
m_Unicode: 20986
m_GlyphIndex: 1402
m_Scale: 1
- m_ElementType: 1
m_Unicode: 36864
m_GlyphIndex: 8425
m_Scale: 1
m_AtlasTextures:
- {fileID: 3747318023419488858}
@@ -683,6 +949,62 @@ MonoBehaviour:
m_Y: 65
m_Width: 27
m_Height: 27
- m_X: 851
m_Y: 0
m_Width: 87
m_Height: 87
- m_X: 851
m_Y: 87
m_Width: 102
m_Height: 27
- m_X: 359
m_Y: 102
m_Width: 102
m_Height: 102
- m_X: 938
m_Y: 0
m_Width: 72
m_Height: 87
- m_X: 953
m_Y: 87
m_Width: 57
m_Height: 65
- m_X: 246
m_Y: 167
m_Width: 49
m_Height: 87
- m_X: 295
m_Y: 167
m_Width: 57
m_Height: 65
- m_X: 102
m_Y: 239
m_Width: 102
m_Height: 102
- m_X: 0
m_Y: 318
m_Width: 102
m_Height: 102
- m_X: 461
m_Y: 102
m_Width: 102
m_Height: 102
- m_X: 563
m_Y: 102
m_Width: 102
m_Height: 102
- m_X: 665
m_Y: 102
m_Width: 102
m_Height: 102
- m_X: 767
m_Y: 114
m_Width: 102
m_Height: 102
- m_X: 869
m_Y: 152
m_Width: 102
m_Height: 102
m_FreeGlyphRects:
- m_X: 72
m_Y: 34
@@ -700,14 +1022,6 @@ MonoBehaviour:
m_Y: 102
m_Width: 41
m_Height: 35
- m_X: 246
m_Y: 167
m_Width: 777
m_Height: 856
- m_X: 246
m_Y: 137
m_Width: 11
m_Height: 886
- m_X: 0
m_Y: 208
m_Width: 27
@@ -716,38 +1030,74 @@ MonoBehaviour:
m_Y: 121
m_Width: 18
m_Height: 95
- m_X: 0
m_Y: 318
m_Width: 1023
m_Height: 705
- m_X: 102
m_Y: 239
m_Width: 921
m_Height: 784
- m_X: 359
m_Y: 102
m_Width: 664
m_Height: 921
- m_X: 54
m_Y: 179
m_Width: 48
m_Height: 37
- m_X: 102
m_Y: 221
m_Width: 42
m_Height: 802
- m_X: 851
m_Y: 0
m_Width: 172
m_Height: 1023
- m_X: 359
m_Y: 92
m_Width: 84
m_Height: 931
m_Height: 10
- m_X: 386
m_Y: 87
m_Width: 57
m_Height: 936
m_Height: 15
- m_X: 1010
m_Y: 0
m_Width: 13
m_Height: 1023
- m_X: 246
m_Y: 137
m_Width: 11
m_Height: 30
- m_X: 352
m_Y: 167
m_Width: 7
m_Height: 856
- m_X: 102
m_Y: 221
m_Width: 42
m_Height: 18
- m_X: 204
m_Y: 254
m_Width: 819
m_Height: 769
- m_X: 204
m_Y: 239
m_Width: 42
m_Height: 784
- m_X: 0
m_Y: 420
m_Width: 1023
m_Height: 603
- m_X: 102
m_Y: 341
m_Width: 921
m_Height: 682
- m_X: 352
m_Y: 204
m_Width: 415
m_Height: 819
- m_X: 767
m_Y: 102
m_Width: 84
m_Height: 12
- m_X: 295
m_Y: 232
m_Width: 574
m_Height: 791
- m_X: 352
m_Y: 216
m_Width: 517
m_Height: 807
- m_X: 971
m_Y: 152
m_Width: 52
m_Height: 871
- m_X: 869
m_Y: 114
m_Width: 84
m_Height: 38
m_fontInfo:
Name:
PointSize: 0
@@ -869,7 +1219,7 @@ Texture2D:
m_ColorSpace: 1
m_PlatformBlob:
image data: 1048576
_typelessdata: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050a0f121313131313131313131313131313131313120f0a050000000000050a0f121313131313131313131313131313131313120f0a050000000000050a0f121313131313131313131313131313131313120f0a05000000000000000000050a0f121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313120f0a05000000000000000000050a0f1213131313131313130d0c0a0702000000000000000000000000000000000000000000000000000002070a0c0d0d0d0d0d0d0d0a09070400000000000000000000000000000002070a0c0d0d0d0d0d0d0d0a09070400000000000000000000000000000000000000000000000000000000000000000000000407090a0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0a09070400000000000000000000000000000000000000000307090a0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0c0a0702000000000000000000000000000000000000000000000000000002070a0c0d1313131313131313131313131313131313131313131313120f0a0500000000000000000000000000000000000000000000000000050a0f1213131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000050a0f1213131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000000000000000000000000000050a0f1213131313131313130d0c0a070200000000000000000000000000050a0f1213131313131313131313131313131313131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050a0f1213131313131313131313131313131313131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002070a0c0d1313131313131313120f0a050000000000000000000000000002070a0c0d1313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313120f0a05000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010910161b1e20202020202020202020202020202020201e1b1610090100010910161b1e20202020202020202020202020202020201e1b1610090100010910161b1e20202020202020202020202020202020201e1b161009010000000000010910161b1e20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020201e1b161009010000000000010910161b1e20202020202020201a1916130d07000000000000000000000000000000000000000000000000070d1316191a1a1a1a1a1a1a161613100b04000000000000000000000000070d1316191a1a1a1a1a1a1a161613100b0400000000000000000000000000000000000000000000000000000000000000040b101316161a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a161613100b0400000000000000000000000000000000040b10131616191919191919191919191919191919191919191919191916130d07000000000000000000000000000000000000000000000000070d1316191a20202020202020202020202020202020202020202020201e1b1610090100000000000000000000Line truncated
_typelessdata: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050a0f121313131313131313131313131313131313120f0a050000000000050a0f121313131313131313131313131313131313120f0a050000000000050a0f121313131313131313131313131313131313120f0a05000000000000000000050a0f121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313120f0a05000000000000000000050a0f1213131313131313130d0c0a0702000000000000000000000000000000000000000000000000000002070a0c0d0d0d0d0d0d0d0a09070400000000000000000000000000000002070a0c0d0d0d0d0d0d0d0a09070400000000000000000000000000000000000000000000000000000000000000000000000407090a0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0a09070400000000000000000000000000000000000000000307090a0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0c0a0702000000000000000000000000000000000000000000000000000002070a0c0d1313131313131313131313131313131313131313131313120f0a0500000000000000000000000000000000000000000000000000050a0f1213131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000050a0f1213131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000000000000000000000000000050a0f1213131313131313130d0c0a070200000000000000000000000000050a0f1213131313131313131313131313131313131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050a0f1213131313131313131313131313131313131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002070a0c0d1313131313131313120f0a050000000000000000000000000002070a0c0d1313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313120f0a050000000000000000000002070a0c0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0a09070400000000000000000000000000000000000000000000000000000000000000000000000407090a0d0d0d0d0d0d0d0c0a0702000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010910161b1e20202020202020202020202020202020201e1b1610090100010910161b1e20202020202020202020202020202020201e1b1610090100010910161b1e20202020202020202020202020202020201e1b161009010000000000010910161b1e20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020201e1b161009010000000000010910161b1e20202020202020201a1916130d07000000000000000000000000000000000000000000000000070d1316191a1a1a1a1a1a1a161613100b04000000000000000000000000070d1316191a1a1a1a1a1a1a161613100b0400000000000000000000000000000000000000000000000000000000000000040b101316161a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a161613100b0400000000000000000000000000000000040b10131616191919191919191919191919191919191919191919191916130d07000000000000000000000000000000000000000000000000070d1316191a20202020202020202020202020202020202020202020201e1b1610090100000000000000000000Line truncated
m_StreamData:
serializedVersion: 2
offset: 0
File renamed without changes.
File renamed without changes.
@@ -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
@@ -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:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d7a47aa66262c66428c44a7e46608f06
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f083c4c76b7f47744b1cb03fa190ebfb
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6c0ff36736862f24191b9fd8fdfca68f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

@@ -0,0 +1,127 @@
fileFormatVersion: 2
guid: f99ed75c78894f24aa64ef2e1284e1d4
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
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
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
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
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 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
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a05803541b38457498587a9849a7a902
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

@@ -0,0 +1,127 @@
fileFormatVersion: 2
guid: adf20ffe466837b4e8ee33187d34f6c8
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
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
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
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
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 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
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
File renamed without changes.
+3
View File
@@ -0,0 +1,3 @@
index,content,type,animation,character,event,arg
0,我会一直视奸你..,screen,typeing,,OnDialogPop,1
1,永远..永远…,box,Idle,Test,,
1 index content type animation character event arg
2 0 我会一直视奸你.. screen typeing OnDialogPop 1
3 1 永远..永远… box Idle Test
File diff suppressed because it is too large. Load diff
+93 -3
View File
@@ -1,7 +1,97 @@
namespace Dialog
using System.Collections;
using Event;
using Event.EventArgs;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
namespace Dialog
{
public class BoxDialog
public class BoxDialog : MonoBehaviour
{
public float typingSpeed = 0.05f;
public string introduceText;
private string _currentText = "";
private float _timer;
private int _currentIndex;
private bool _start;
public TMP_Text textMeshPro;
public float printTime;
public float maxPrintTime = 10;
public bool isTime2Break;
private string _eventToBeExc;
private string _eventArg;
[SerializeField] private GameObject dialogBox;
[SerializeField] private RawImage head;
[SerializeField] private RawImage face;
private void Update()
{
if (!_start) return;
printTime += Time.deltaTime;
if (printTime > maxPrintTime)
{
isTime2Break = true;
StartCoroutine(Delay());
}
Time2Break();
if (_currentText == introduceText)
{
return;
}
_timer += Time.deltaTime;
if (!(_timer >= typingSpeed)) return;
_timer = 0f;
_currentText += introduceText[_currentIndex];
textMeshPro.text = _currentText;
_currentIndex++;
}
// 沟槽的生命周期
private IEnumerator Delay()
{
yield return new WaitForSeconds(0.5f);
EventManager.Instance.DialogEventSwitch(_eventToBeExc, _eventArg);
}
private void Start()
{
EventManager.Instance.DialogPop += StartPrinting;
}
private void Time2Break()
{
if (!isTime2Break) return;
_start = false;
printTime = 0;
isTime2Break = false;
textMeshPro.text = "";
dialogBox.SetActive(false);
}
private void StartPrinting(DialogPopArgs e)
{
if (!DialogManager.Instance.GetDialogByIndex(e.Index).Type.Equals("box")) return;
if (printTime != 0) return;
dialogBox.SetActive(true);
_start = true;
_currentText = "";
introduceText = DialogManager.Instance.GetDialogByIndex(e.Index).Content;
_eventToBeExc = DialogManager.Instance.GetDialogByIndex(e.Index).DialogEvent;
_eventArg = DialogManager.Instance.GetDialogByIndex(e.Index).DialogEventArg;
head.texture = Resources.Load<Texture2D>("Character/Head" + "/" +
DialogManager.Instance.GetDialogByIndex(e.Index).Character +
"_Head");
face.texture = Resources.Load<Texture2D>("Character/Face" + "/" +
DialogManager.Instance.GetDialogByIndex(e.Index).Character + "_" +
DialogManager.Instance.GetDialogByIndex(e.Index).Animation +
"_Face");
_currentIndex = 0;
_timer = 0f;
textMeshPro.fontSize = 80;
}
}
}
+20 -13
View File
@@ -1,9 +1,8 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
namespace Data
namespace Dialog
{
public class Dialog
{
@@ -15,7 +14,8 @@ namespace Data
public readonly string DialogEvent;
public readonly string DialogEventArg;
public Dialog(int index, string content, string type, string animation, string character, string dialogEvent, string dialogEventArg)
public Dialog(int index, string content, string type, string animation, string character, string dialogEvent,
string dialogEventArg)
{
Index = index;
Content = content;
@@ -29,10 +29,9 @@ namespace Data
public class DialogManager : MonoBehaviour
{
public string filePath = "Assets/Dialog/DialogData.csv";
private readonly List<Dialog> _dialog = new();
private readonly List<Dialog> _dialog = new();
private static DialogManager _instance;
public static DialogManager Instance
{
get
@@ -44,6 +43,7 @@ namespace Data
return _instance;
}
}
private void Awake()
{
if (_instance != null && _instance != this)
@@ -52,18 +52,25 @@ namespace Data
}
else
{
LoadCsv(filePath);
LoadCsv("Dialog/DialogData");
_instance = this;
}
}
private void LoadCsv(string path)
private void LoadCsv(string resourcePath)
{
var lines = File.ReadAllLines(path);
var textAsset = Resources.Load<TextAsset>(resourcePath);
if (textAsset == null)
{
Debug.LogError($"Unable to find CSV file at path: {resourcePath}");
return;
}
var lines = textAsset.text.Split('\n');
for (var i = 1; i < lines.Length; i++)
{
var values = lines[i].Split(',');
if (values.Length < 7) continue;
var dialog = new Dialog(
int.Parse(values[0]),
values[1],
@@ -73,11 +80,11 @@ namespace Data
values[5],
values[6]
);
_dialog.Add(dialog);
}
}
public Dialog GetDialogByIndex(int index)
{
foreach (var dialog in _dialog.Where(dialogue => dialogue.Index == index))
+10 -6
View File
@@ -1,11 +1,10 @@
using System.Collections;
using Dialog;
using Event;
using Event.EventArgs;
using TMPro;
using UnityEngine;
namespace UI
namespace Dialog
{
public class ScreenDialog : MonoBehaviour
{
@@ -18,7 +17,7 @@ namespace UI
private bool _isBlinking;
public TMP_Text textMeshPro;
public float printTime;
public float maxPrintTime=10;
public float maxPrintTime = 10;
public bool isTime2Break;
private string _eventToBeExc;
private string _eventArg;
@@ -32,10 +31,12 @@ namespace UI
isTime2Break = true;
StartCoroutine(Delay());
}
if (_currentText == introduceText)
{
return;
}
_timer += Time.deltaTime;
if (!(_timer >= typingSpeed)) return;
_timer = 0f;
@@ -48,8 +49,9 @@ namespace UI
private IEnumerator Delay()
{
yield return new WaitForSeconds(1f);
EventManager.Instance.DialogEventSwitch(_eventToBeExc,_eventArg);
EventManager.Instance.DialogEventSwitch(_eventToBeExc, _eventArg);
}
private void Start()
{
EventManager.Instance.DialogPop += StartPrinting;
@@ -68,6 +70,7 @@ namespace UI
textMeshPro.text = "+";
break;
}
if (!_isBlinking)
{
textMeshPro.text += "|";
@@ -78,14 +81,15 @@ namespace UI
textMeshPro.text = textMeshPro.text[..^1];
_isBlinking = false;
}
yield return new WaitForSeconds(0.3f);
}
}
private void StartPrinting(DialogPopArgs e)
{
if(!DialogManager.Instance.GetDialogByIndex(e.Index).Type.Equals("screen")) return;
if(printTime != 0) return;
if (!DialogManager.Instance.GetDialogByIndex(e.Index).Type.Equals("screen")) return;
if (printTime != 0) return;
_start = true;
_currentText = "";
introduceText = DialogManager.Instance.GetDialogByIndex(e.Index).Content;
@@ -3,7 +3,6 @@
public class DialogPopArgs : System.EventArgs
{
public int Index { get; private set; }
public bool IsScreenDialog { get;private set; }
public DialogPopArgs(int index)
{
+12
View File
@@ -43,6 +43,18 @@ namespace Event
public event PlayerWalkStopHandler PlayerWalkStop;
public event PlayerWalkingHandler PlayerWalking;
public void DialogEventSwitch(string eventName, string args)
{
switch (eventName)
{
case "OnDialogPop":
OnDialogPop(int.Parse(args));
break;
default:
break;
}
}
public void OnCameraInterAct(GameObject item)
{
CameraInterAct?.Invoke(new CameraInterActArgs(item));
@@ -6,6 +6,8 @@ namespace Items.Abstract
{
public abstract class ItemBase : MonoBehaviour
{
public int index;
private void Start()
{
EventManager.Instance.CameraInterAct += ReceiveEvent;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace Items
protected override void ActivateItem()
{
base.ActivateItem();
EventManager.Instance.OnDialogPop(0);
EventManager.Instance.OnDialogPop(index);
}
}
}
+26
View File
@@ -0,0 +1,26 @@
using System;
using UnityEngine;
namespace UI
{
public class PauseButton : MonoBehaviour
{
[SerializeField] private GameObject pauseMenu;
private void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
Pause();
Cursor.lockState = CursorLockMode.None;
}
}
public void Pause()
{
pauseMenu.SetActive(true);
Time.timeScale = 0;
gameObject.SetActive(false);
}
}
}
+3
View File
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 1c0f94546ebb4d1291e84e1867586885
timeCreated: 1726632669
+41
View File
@@ -0,0 +1,41 @@
using UnityEngine;
namespace UI
{
public class PausePanel : MonoBehaviour
{
[SerializeField] private GameObject pauseButton;
private void Start()
{
Time.timeScale = 1;
gameObject.SetActive(false);
}
private void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
Continue();
}
}
public void Continue()
{
pauseButton.SetActive(true);
Time.timeScale = 1;
Cursor.lockState = CursorLockMode.Locked;
gameObject.SetActive(false);
}
public void Exit()
{
Application.Quit();
}
public void MainMenu()
{
Time.timeScale = 1;
}
}
}
+3
View File
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 1a7e77e32f8249e59678cd60afb13a77
timeCreated: 1726632456
+1 -1
View File
@@ -125,9 +125,9 @@
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0"
},
"url": "https://packages.unity.com"
+4 -1
View File
@@ -4,5 +4,8 @@
EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes: []
m_Scenes:
- enabled: 1
path: Assets/Scenes/SampleScene.unity
guid: 9fc0d4010bbf28b4594072e72b8655ab
m_configObjects: {}
+5 -6
View File
@@ -161,7 +161,7 @@ PlayerSettings:
androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1
applicationIdentifier:
Standalone: com.DefaultCompany.Dontback
Standalone: com.CrashWork.Dontback
buildNumber:
Standalone: 0
VisionOS: 0
@@ -233,7 +233,6 @@ PlayerSettings:
iOSMetalForceHardShadows: 0
metalEditorSupport: 1
metalAPIValidation: 1
metalCompileShaderBinary: 0
iOSRenderExtraFrameOnPause: 0
iosCopyPluginsCodeInsteadOfSymlink: 0
appleDeveloperTeamID:
@@ -755,9 +754,10 @@ PlayerSettings:
additionalCompilerArguments: {}
platformArchitecture: {}
scriptingBackend:
Standalone: 1
Standalone: 0
il2cppCompilerConfiguration: {}
il2cppCodeGeneration: {}
il2cppCodeGeneration:
Standalone: 1
managedStrippingLevel:
EmbeddedLinux: 1
GameCoreScarlett: 1
@@ -775,7 +775,7 @@ PlayerSettings:
tvOS: 1
incrementalIl2cppBuild: {}
suppressCommonWarnings: 1
allowUnsafeCode: 0
allowUnsafeCode: 1
useDeterministicCompilation: 1
additionalIl2CppArgs:
scriptingRuntimeVersion: 1
@@ -805,7 +805,6 @@ PlayerSettings:
metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0}
metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1}
metroSplashScreenUseBackgroundColor: 0
syncCapabilities: 0
platformCapabilities: {}
metroTargetDeviceFamilies: {}
metroFTAName:
+1 -3
View File
@@ -4,14 +4,12 @@
UnityConnectSettings:
m_ObjectHideFlags: 0
serializedVersion: 1
m_Enabled: 0
m_Enabled: 1
m_TestMode: 0
m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
m_ConfigUrl: https://config.uca.cloud.unity3d.com
m_DashboardUrl: https://dashboard.unity3d.com
m_CNEventUrl: https://cdp.cloud.unity.cn/v1/events
m_CNConfigUrl: https://cdp.cloud.unity.cn/config
m_TestInitMode: 0
CrashReportingSettings:
m_EventUrl: https://perf-events.cloud.unity.cn