Commit dc523366 authored by haiyoucuv's avatar haiyoucuv

init

parent 66221ebf
This diff is collapsed.
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "96ddc659-7450-4f8e-a83b-de04481e8e59",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "96ddc659-7450-4f8e-a83b-de04481e8e59@6c48a",
"displayName": "propNum",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "96ddc659-7450-4f8e-a83b-de04481e8e59",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "96ddc659-7450-4f8e-a83b-de04481e8e59@f9941",
"displayName": "propNum",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 32,
"rawWidth": 32,
"rawHeight": 32,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16,
-16,
0,
16,
-16,
0,
-16,
16,
0,
16,
16,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
32,
32,
32,
0,
0,
32,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16,
-16,
0
],
"maxPos": [
16,
16,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "96ddc659-7450-4f8e-a83b-de04481e8e59@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "96ddc659-7450-4f8e-a83b-de04481e8e59@6c48a"
}
}
...@@ -17,27 +17,84 @@ ...@@ -17,27 +17,84 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 2 "__id__": 16
}, },
{ {
"__id__": 4 "__id__": 18
}, },
{ {
"__id__": 6 "__id__": 20
}, },
{ {
"__id__": 8 "__id__": 22
}
],
"_prefab": {
"__id__": 24
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "光",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}, },
{ {
"__id__": 10 "__id__": 5
},
{
"__id__": 7
} }
], ],
"_prefab": { "_prefab": {
"__id__": 12 "__id__": 9
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
...@@ -74,11 +131,176 @@ ...@@ -74,11 +131,176 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a9m0zFlAVMTolbJJyHStnD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "91e706a3-2b72-4aae-9409-b4ae87570f9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "63pxYfYalJV7q/FL1IcSkH"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d6D0xQbklDfLA7CluGRD3P"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "d6pw+sFUdBPrHDo8LQnwe3",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "card",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1 "__id__": 1
}, },
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 3 "__id__": 12
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
...@@ -94,7 +316,7 @@ ...@@ -94,7 +316,7 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "f36Gjr/cxA5bosiEnf90lC" "fileId": "d1CqVezb5CTq8E0iTrZfnx"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -102,11 +324,11 @@ ...@@ -102,11 +324,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 10
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 5 "__id__": 14
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
...@@ -139,7 +361,48 @@ ...@@ -139,7 +361,48 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "79U2Z8PihDCKpj25KchRMz" "fileId": "28Jyp/LdhOv4Sv8MjO8OC+"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "00kFVa8FBOo59BjrcYSa8m",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 32,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f36Gjr/cxA5bosiEnf90lC"
}, },
{ {
"__type__": "cc.RigidBody2D", "__type__": "cc.RigidBody2D",
...@@ -151,7 +414,7 @@ ...@@ -151,7 +414,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 7 "__id__": 19
}, },
"enabledContactListener": true, "enabledContactListener": true,
"bullet": false, "bullet": false,
...@@ -185,7 +448,7 @@ ...@@ -185,7 +448,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 21
}, },
"tag": 0, "tag": 0,
"_group": 4, "_group": 4,
...@@ -219,7 +482,7 @@ ...@@ -219,7 +482,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 23
}, },
"tag": 2, "tag": 2,
"_id": "" "_id": ""
......
...@@ -17,27 +17,84 @@ ...@@ -17,27 +17,84 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 2 "__id__": 16
}, },
{ {
"__id__": 4 "__id__": 18
}, },
{ {
"__id__": 6 "__id__": 20
}, },
{ {
"__id__": 8 "__id__": 22
}
],
"_prefab": {
"__id__": 24
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "光",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}, },
{ {
"__id__": 10 "__id__": 5
},
{
"__id__": 7
} }
], ],
"_prefab": { "_prefab": {
"__id__": 12 "__id__": 9
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
...@@ -74,11 +131,176 @@ ...@@ -74,11 +131,176 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b9ojSDLKJM+LLnlYx+jIiz"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "91e706a3-2b72-4aae-9409-b4ae87570f9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f6sp/rCfdDw5k9bAi0vsuK"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "22vMU9Y8ZL2KoblHMdgz0m"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c7nKaRpblL/o26rw4n29AL",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "card",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1 "__id__": 1
}, },
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 3 "__id__": 12
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
...@@ -94,7 +316,7 @@ ...@@ -94,7 +316,7 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "f36Gjr/cxA5bosiEnf90lC" "fileId": "d1/z6rqHVAfaj+WSO/D1xN"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -102,11 +324,11 @@ ...@@ -102,11 +324,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 10
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 5 "__id__": 14
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
...@@ -139,7 +361,48 @@ ...@@ -139,7 +361,48 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "79U2Z8PihDCKpj25KchRMz" "fileId": "07phbCLtlM/KAW+D7CWZnl"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b3CplpSPxBFYkOZrXZK2F9",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 32,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f36Gjr/cxA5bosiEnf90lC"
}, },
{ {
"__type__": "cc.RigidBody2D", "__type__": "cc.RigidBody2D",
...@@ -151,7 +414,7 @@ ...@@ -151,7 +414,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 7 "__id__": 19
}, },
"enabledContactListener": true, "enabledContactListener": true,
"bullet": false, "bullet": false,
...@@ -185,7 +448,7 @@ ...@@ -185,7 +448,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 21
}, },
"tag": 0, "tag": 0,
"_group": 4, "_group": 4,
...@@ -219,7 +482,7 @@ ...@@ -219,7 +482,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 23
}, },
"tag": 3, "tag": 3,
"_id": "" "_id": ""
......
...@@ -17,27 +17,84 @@ ...@@ -17,27 +17,84 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 2 "__id__": 16
}, },
{ {
"__id__": 4 "__id__": 18
}, },
{ {
"__id__": 6 "__id__": 20
}, },
{ {
"__id__": 8 "__id__": 22
}
],
"_prefab": {
"__id__": 24
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "光",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}, },
{ {
"__id__": 10 "__id__": 5
},
{
"__id__": 7
} }
], ],
"_prefab": { "_prefab": {
"__id__": 12 "__id__": 9
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
...@@ -74,11 +131,176 @@ ...@@ -74,11 +131,176 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "40INKyKr5Lz6YJNaCx6bwR"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "91e706a3-2b72-4aae-9409-b4ae87570f9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b1eAO0hgxD6IhmY3HHWXXw"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "825XjckfRLCJ3P6QGZwoNq"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "63Mto562FB0pIicSH3zivv",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "card",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1 "__id__": 1
}, },
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 3 "__id__": 12
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
...@@ -94,7 +316,7 @@ ...@@ -94,7 +316,7 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "f36Gjr/cxA5bosiEnf90lC" "fileId": "c7CLYhNVFJ2q6v3LeGxbzd"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -102,11 +324,11 @@ ...@@ -102,11 +324,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 10
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 5 "__id__": 14
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
...@@ -139,7 +361,48 @@ ...@@ -139,7 +361,48 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "79U2Z8PihDCKpj25KchRMz" "fileId": "e0byy6R19NaYeYRD4S4vjQ"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "63bNL8dRFHjqs4lq8F77Yq",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 32,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f36Gjr/cxA5bosiEnf90lC"
}, },
{ {
"__type__": "cc.RigidBody2D", "__type__": "cc.RigidBody2D",
...@@ -151,7 +414,7 @@ ...@@ -151,7 +414,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 7 "__id__": 19
}, },
"enabledContactListener": true, "enabledContactListener": true,
"bullet": false, "bullet": false,
...@@ -185,7 +448,7 @@ ...@@ -185,7 +448,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 21
}, },
"tag": 0, "tag": 0,
"_group": 4, "_group": 4,
...@@ -219,7 +482,7 @@ ...@@ -219,7 +482,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 23
}, },
"tag": 4, "tag": 4,
"_id": "" "_id": ""
......
...@@ -495,6 +495,7 @@ ...@@ -495,6 +495,7 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "95QVeGhHxFHYdTtrbtkAQN", "fileId": "95QVeGhHxFHYdTtrbtkAQN",
"instance": null,
"targetOverrides": null "targetOverrides": null
} }
] ]
\ No newline at end of file
...@@ -12,8 +12,12 @@ export class PreCd extends Component { ...@@ -12,8 +12,12 @@ export class PreCd extends Component {
animation: Animation = null; animation: Animation = null;
protected onLoad() { constructor() {
super();
PreCd._ins = this; PreCd._ins = this;
}
protected onLoad() {
this.node.active = false; this.node.active = false;
this.animation = this.getComponent(Animation); this.animation = this.getComponent(Animation);
} }
......
...@@ -14,10 +14,26 @@ export class PropBtn extends Component { ...@@ -14,10 +14,26 @@ export class PropBtn extends Component {
cdTxt: Label; cdTxt: Label;
numTxt: Label;
private _propNum = 0;
get propNum() {
return this._propNum;
}
set propNum(value: number) {
this._propNum = value;
this.numTxt.string = `${value}`;
}
onLoad() { onLoad() {
this.img = this.node.getChildByName("img").getComponent(Sprite); this.img = this.node.getChildByName("img").getComponent(Sprite);
this.nameTxt = this.node.getChildByName("name").getComponent(Label); this.nameTxt = this.node.getChildByName("name").getComponent(Label);
this.numTxt = this.node.getChildByPath("propNum/num")
.getComponent(Label);
const cd = this.node.getChildByName("cd"); const cd = this.node.getChildByName("cd");
this.cdMask = cd.getChildByName("mask").getComponent(Graphics); this.cdMask = cd.getChildByName("mask").getComponent(Graphics);
...@@ -33,6 +49,10 @@ export class PropBtn extends Component { ...@@ -33,6 +49,10 @@ export class PropBtn extends Component {
} }
start() {
}
doUse() { doUse() {
} }
...@@ -82,10 +102,6 @@ export class PropBtn extends Component { ...@@ -82,10 +102,6 @@ export class PropBtn extends Component {
}); });
} }
start() {
}
} }
...@@ -20,10 +20,15 @@ export class Target extends Component { ...@@ -20,10 +20,15 @@ export class Target extends Component {
@property(Node) mask: Node = null; @property(Node) mask: Node = null;
@property(Node) banner3: Node = null; @property(Node) banner3: Node = null;
protected onLoad() { constructor() {
super();
Target._ins = this; Target._ins = this;
} }
protected onLoad() {
this.node.active = true;
}
onDestroy() { onDestroy() {
Target._ins = null; Target._ins = null;
} }
......
...@@ -73,8 +73,12 @@ export class MainGame extends Scene { ...@@ -73,8 +73,12 @@ export class MainGame extends Scene {
return MainGame._ins; return MainGame._ins;
} }
async onLoad() { constructor() {
super();
MainGame._ins = this; MainGame._ins = this;
}
async onLoad() {
PhysicsSystem2D.instance.enable = true; PhysicsSystem2D.instance.enable = true;
// PhysicsSystem2D.instance.gravity = math.Vec2.ZERO; // PhysicsSystem2D.instance.gravity = math.Vec2.ZERO;
......
...@@ -26,10 +26,14 @@ export class CardManager extends Component { ...@@ -26,10 +26,14 @@ export class CardManager extends Component {
maxCard: number = 10; maxCard: number = 10;
onLoad() { constructor() {
super();
CardManager._ins = this; CardManager._ins = this;
} }
onLoad() {
}
onDestroy() { onDestroy() {
CardManager._ins = null; CardManager._ins = null;
} }
......
...@@ -24,7 +24,7 @@ export class FoodManger extends Component { ...@@ -24,7 +24,7 @@ export class FoodManger extends Component {
private static _ins: FoodManger = null; private static _ins: FoodManger = null;
static get ins() { static get ins() {
return this._ins; return FoodManger._ins;
} }
@property({ type: [SpriteFrame] }) @property({ type: [SpriteFrame] })
...@@ -35,10 +35,14 @@ export class FoodManger extends Component { ...@@ -35,10 +35,14 @@ export class FoodManger extends Component {
maxFood: number = 100; maxFood: number = 100;
onLoad() { constructor() {
super();
FoodManger._ins = this; FoodManger._ins = this;
} }
onLoad() {
}
onDestroy() { onDestroy() {
FoodManger._ins = null; FoodManger._ins = null;
} }
......
...@@ -26,9 +26,13 @@ export class LuckyBagManager extends Component { ...@@ -26,9 +26,13 @@ export class LuckyBagManager extends Component {
@property(Prefab) @property(Prefab)
luckyBagPrefab: Prefab = null; luckyBagPrefab: Prefab = null;
onLoad() { constructor() {
super();
LuckyBagManager._ins = this; LuckyBagManager._ins = this;
} }
onLoad() {
}
onDestroy() { onDestroy() {
LuckyBagManager._ins = null; LuckyBagManager._ins = null;
......
...@@ -7,9 +7,11 @@ const { ccclass, property } = _decorator; ...@@ -7,9 +7,11 @@ const { ccclass, property } = _decorator;
export class SpeedPropBtn extends PropBtn { export class SpeedPropBtn extends PropBtn {
start() { start() {
super.start();
// this.propNum = 10;
} }
doUse() { doUse() {
super.doUse(); super.doUse();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment