Updated TouchEventsManager to support input from Keyboard as well as an additional atk btn.

This commit is contained in:
genxium
2022-11-20 18:53:33 +08:00
parent 971f6461ab
commit 52480ab29f
36 changed files with 1612 additions and 892 deletions

View File

@@ -80,20 +80,20 @@
],
"_active": true,
"_components": [
{
"__id__": 31
},
{
"__id__": 32
},
{
"__id__": 33
},
{
"__id__": 34
},
{
"__id__": 35
},
{
"__id__": 36
},
{
"__id__": 37
},
{
"__id__": 38
}
],
"_prefab": null,
@@ -234,7 +234,7 @@
"__id__": 7
},
{
"__id__": 33
"__id__": 30
}
],
"_prefab": null,
@@ -323,7 +323,7 @@
"__id__": 17
},
"countdownLabel": {
"__id__": 26
"__id__": 23
},
"resultPanelPrefab": {
"__uuid__": "c4cfe3bd-c59e-4d5b-95cb-c933b120e184"
@@ -354,13 +354,13 @@
},
"_children": [
{
"__id__": 27
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 29
}
],
"_prefab": null,
@@ -422,14 +422,11 @@
{
"__id__": 12
},
{
"__id__": 22
},
{
"__id__": 8
},
{
"__id__": 25
"__id__": 22
}
],
"_active": true,
@@ -525,7 +522,7 @@
"array": [
0,
0,
210.4441731196186,
239.32248305180272,
0,
0,
0,
@@ -1027,111 +1024,6 @@
"_N$affectedByScale": false,
"_id": "f6GkgYwn9JvKLqbGG1zmeD"
},
{
"__type__": "cc.Node",
"_name": "KeyboardControlsMount",
"_objFlags": 0,
"_parent": {
"__id__": 9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
},
{
"__id__": 24
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-341.33333,
-640,
0,
0,
0,
0,
1,
0.66667,
0.66667,
0.66667
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e6nL+1zEhLmLSaT8R/9UgD"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_useOriginalSize": false,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "9cS5BRd+NKJIvGQiojJtIs"
},
{
"__type__": "4561aFzv9JPZLe6iIzODk2d",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_id": "5ahzSYC8pCCLVPCBYyCRfZ"
},
{
"__type__": "cc.Node",
"_name": "CountdownSeconds",
@@ -1143,7 +1035,7 @@
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 23
}
],
"_prefab": null,
@@ -1199,7 +1091,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 22
},
"_enabled": true,
"_materials": [
@@ -1233,16 +1125,16 @@
},
"_children": [
{
"__id__": 28
"__id__": 25
}
],
"_active": true,
"_components": [
{
"__id__": 30
"__id__": 27
},
{
"__id__": 31
"__id__": 28
}
],
"_prefab": null,
@@ -1298,13 +1190,13 @@
"_name": "Joystick",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 26
}
],
"_prefab": null,
@@ -1360,7 +1252,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 25
},
"_enabled": true,
"_materials": [
@@ -1394,7 +1286,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 24
},
"_enabled": true,
"_materials": [
@@ -1428,7 +1320,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 24
},
"_enabled": true,
"alignMode": 0,
@@ -1590,11 +1482,12 @@
"zoomingListenerNode": {
"__id__": 5
},
"actionBtnListenerNode": null,
"stickhead": {
"__id__": 28
"__id__": 25
},
"base": {
"__id__": 27
"__id__": 24
},
"joyStickEps": 0.1,
"magicLeanLowerBound": 0.414,