diff --git a/assets/Scenes/LoginScene.scene b/assets/Scenes/LoginScene.scene deleted file mode 100644 index 4bfa796a..00000000 --- a/assets/Scenes/LoginScene.scene +++ /dev/null @@ -1,1903 +0,0 @@ -[ - { - "__type__": "cc.SceneAsset", - "_name": "LoginScene", - "_objFlags": 0, - "__editorExtras__": {}, - "_native": "", - "scene": { - "__id__": 1 - } - }, - { - "__type__": "cc.Scene", - "_name": "LoginScene", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": null, - "_children": [ - { - "__id__": 2 - } - ], - "_active": true, - "_components": [], - "_prefab": { - "__id__": 48 - }, - "_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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "autoReleaseAssets": false, - "_globals": { - "__id__": 49 - }, - "_id": "dab4ae00-c26e-4176-9c7e-709d8899e525" - }, - { - "__type__": "cc.Node", - "_name": "UICanvas", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 3 - }, - { - "__id__": 5 - } - ], - "_active": true, - "_components": [ - { - "__id__": 45 - }, - { - "__id__": 46 - }, - { - "__id__": 47 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 540, - "y": 1057.5, - "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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "beI88Z2HpFELqR4T5EMHpg" - }, - { - "__type__": "cc.Node", - "_name": "Camera", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 4 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 1000 - }, - "_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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "ebFwiq8gBFaYpqYbdoDODe" - }, - { - "__type__": "cc.Camera", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 3 - }, - "_enabled": true, - "__prefab": null, - "_projection": 0, - "_priority": 0, - "_fov": 45, - "_fovAxis": 0, - "_orthoHeight": 1057.5, - "_near": 0, - "_far": 2000, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_depth": 1, - "_stencil": 0, - "_clearFlags": 7, - "_rect": { - "__type__": "cc.Rect", - "x": 0, - "y": 0, - "width": 1, - "height": 1 - }, - "_aperture": 19, - "_shutter": 7, - "_iso": 0, - "_screenScale": 1, - "_visibility": 1108344832, - "_targetTexture": null, - "_postProcess": null, - "_usePostProcess": false, - "_cameraType": -1, - "_trackingType": 0, - "_id": "63WIch3o5BEYRlXzTT0oWc" - }, - { - "__type__": "cc.Node", - "_name": "LoginUI", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [ - { - "__id__": 6 - }, - { - "__id__": 10 - }, - { - "__id__": 13 - }, - { - "__id__": 17 - }, - { - "__id__": 24 - }, - { - "__id__": 27 - }, - { - "__id__": 31 - } - ], - "_active": true, - "_components": [ - { - "__id__": 42 - }, - { - "__id__": 43 - }, - { - "__id__": 44 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "23Dh4rs5FFYLcPZI6qA2h6" - }, - { - "__type__": "cc.Node", - "_name": "test-001", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 7 - }, - { - "__id__": 8 - }, - { - "__id__": 9 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "f5jE6YkpBGg6PhVhTUtOUz" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 6 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 1080, - "height": 2115 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "0ew2s8aGNE3I+3/4mp7wx2" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 6 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "8426dfa7-c0bd-4bfc-8ea1-90d9f957fa73@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "62/lhTdBhGxrBtW3oX/+D5" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 6 - }, - "_enabled": true, - "__prefab": null, - "_alignFlags": 45, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 255, - "_originalHeight": 255, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "b2Ps2MxNtDsI3A3aX+BMKP" - }, - { - "__type__": "cc.Node", - "_name": "VideoPlayer", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 11 - }, - { - "__id__": 12 - } - ], - "_prefab": null, - "_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": 2.7, - "y": 2.7, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "69QQ8UOKtAcos5l2IrIwc1" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 10 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 400, - "height": 866 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "83Yf5goEZElIH8PDKLu0/A" - }, - { - "__type__": "cc.VideoPlayer", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 10 - }, - "_enabled": true, - "__prefab": null, - "_resourceType": 1, - "_remoteURL": "", - "_clip": { - "__uuid__": "18612543-70d6-4f60-8fee-04f76154e806", - "__expectedType__": "cc.VideoClip" - }, - "_playOnAwake": true, - "_volume": 1, - "_mute": false, - "_playbackRate": 1, - "_loop": true, - "_fullScreenOnAwake": false, - "_stayOnBottom": true, - "_keepAspectRatio": true, - "videoPlayerEvent": [], - "_id": "57HK5xAiBG5a4JsqFNko8Y" - }, - { - "__type__": "cc.Node", - "_name": "BG", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 14 - }, - { - "__id__": 15 - }, - { - "__id__": 16 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "1d5qGpOzlPnLnKhwI6LYt7" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 13 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 1170, - "height": 2532 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "d0c5DY6+pDY74yxB4Bb9l/" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 13 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 24, - "g": 15, - "b": 32, - "a": 119 - }, - "_spriteFrame": { - "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "63iO9zGNNDP47QFZzKrJzC" - }, - { - "__type__": "820fdbVWCBN+qohMzrVfhh2", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 13 - }, - "_enabled": true, - "__prefab": null, - "_id": "16QQQ23ZJLVbI+9+hB2cMF" - }, - { - "__type__": "cc.Node", - "_name": "Mask", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [ - { - "__id__": 18 - } - ], - "_active": false, - "_components": [ - { - "__id__": 21 - }, - { - "__id__": 22 - }, - { - "__id__": 23 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 299.3589999999999, - "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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "58mse+Y9lDrYCz9zPuYKSV" - }, - { - "__type__": "cc.Node", - "_name": "Sprite", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 17 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - }, - { - "__id__": 20 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "f9ehAc85JLyoAN5lnyKQnP" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 300, - "height": 300 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "b3R9215/1IHZnSXoQtxlE3" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "777fc276-1999-4eba-a9a4-9bcfb84cbd72@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "d7cT9cQshDgoC106tak0by" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 17 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 300, - "height": 300 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "e2iOn/sthCuZdG0QSjp15K" - }, - { - "__type__": "cc.Mask", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 17 - }, - "_enabled": true, - "__prefab": null, - "_type": 3, - "_inverted": false, - "_segments": 64, - "_alphaThreshold": 0.1, - "_id": "eeAqeg+9lLCKsQrmP2Y9it" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 17 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "4cef8664-eeed-4be5-b33b-1bb74a6019cb@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "5eCK0BnplJHoY+Sx9iSM98" - }, - { - "__type__": "cc.Node", - "_name": "Icon_BG", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 25 - }, - { - "__id__": 26 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 299.3589999999999, - "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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "96PSzdR+lNW6rxfZaUrhFR" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 24 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 312, - "height": 312 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "6cv3lYbA1LhIoC9AtJJObM" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 24 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "956bb46f-bf99-44c5-b1d3-4717914d71ea@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": "f5WrotzqdGWJP9wQYVbDCZ" - }, - { - "__type__": "cc.Node", - "_name": "text", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 28 - }, - { - "__id__": 29 - }, - { - "__id__": 30 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -14.424999999999955, - "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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "8dWZtjhe5MC4Vrv/iR99Wa" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 27 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 971.1772500000001, - "height": 307.104 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "450JyC0olLu7EQEduC9/bx" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 27 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 195, - "g": 186, - "b": 206, - "a": 255 - }, - "_string": "I couldn’t help but notice your profile… you look like someone who enjoys turning a quiet conversation into something unforgettable. Should we test that out tonight?\"", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 46, - "_fontSize": 46, - "_fontFamily": "NotoSans-Regular", - "_lineHeight": 54.6, - "_overflow": 1, - "_enableWrapText": true, - "_font": { - "__uuid__": "52af39e6-df78-413a-88bb-72dfdca7ec84", - "__expectedType__": "cc.TTFFont" - }, - "_isSystemFontUsed": false, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 2, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "b4oSayshNMcqNuuyrCIJak" - }, - { - "__type__": "d7e4fOii5xNLqH2PF6de4pP", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 27 - }, - "_enabled": true, - "__prefab": null, - "languageKey": "opening.desc", - "defaultText": "", - "autoUpdate": true, - "_id": "73R25edyxKpoKwPXNA+Idv" - }, - { - "__type__": "cc.Node", - "_name": "loginNode", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [ - { - "__id__": 32 - } - ], - "_active": true, - "_components": [ - { - "__id__": 40 - }, - { - "__id__": 41 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "cbgmHP/CFF1rtmMD7vJI0c" - }, - { - "__type__": "cc.Node", - "_name": "btnLogin", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 31 - }, - "_children": [ - { - "__id__": 33 - } - ], - "_active": true, - "_components": [ - { - "__id__": 36 - }, - { - "__id__": 37 - }, - { - "__id__": 38 - }, - { - "__id__": 39 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -511.273, - "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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "20XiExjNlNz4WgKxRYVHg4" - }, - { - "__type__": "cc.Node", - "_name": "Label", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 32 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 34 - }, - { - "__id__": 35 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "c9QK+QiMdN05iiunOuSORG" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 33 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 209.931640625, - "height": 91.35 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "c69JGQfqNFH7wh5os8iwkl" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 33 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "Log in", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 70, - "_fontSize": 70, - "_fontFamily": "Arial", - "_lineHeight": 72.5, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": true, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 2, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "14arglROtOO4uXIOOeRmbM" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 32 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 458, - "height": 138 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "9b8PXTRT1DqKCAXDPmdvwb" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 32 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "6a575808-ac52-447e-871c-3c65972185c6@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "d2zujrESJPbJh2iH8ZtP3u" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 32 - }, - "_enabled": true, - "__prefab": null, - "_alignFlags": 20, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": -530.273, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 0, - "_originalHeight": 0, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "dfdxZQmvFOwrQBo53Z1saZ" - }, - { - "__type__": "cc.Button", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 32 - }, - "_enabled": true, - "__prefab": null, - "clickEvents": [], - "_interactable": true, - "_transition": 0, - "_normalColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_hoverColor": { - "__type__": "cc.Color", - "r": 211, - "g": 211, - "b": 211, - "a": 255 - }, - "_pressedColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_disabledColor": { - "__type__": "cc.Color", - "r": 124, - "g": 124, - "b": 124, - "a": 255 - }, - "_normalSprite": null, - "_hoverSprite": null, - "_pressedSprite": null, - "_disabledSprite": null, - "_duration": 0.1, - "_zoomScale": 1.2, - "_target": { - "__id__": 32 - }, - "_id": "c9KDag5vBLKazTx4FSrM2p" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 31 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "51LpH13xtAcKvHofY3HjM1" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 31 - }, - "_enabled": true, - "__prefab": null, - "_alignFlags": 18, - "_target": null, - "_left": 490, - "_right": 490, - "_top": 1120, - "_bottom": 1120, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 100, - "_originalHeight": 100, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "ffSHIcdQ9MDLv6Ji+LALik" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 5 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 1080, - "height": 2115 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "61PRTabr1JtalMKyhRN7re" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 5 - }, - "_enabled": true, - "__prefab": null, - "_alignFlags": 45, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 100, - "_originalHeight": 100, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "fcCE1XQq5LsqZEHtr4Un7m" - }, - { - "__type__": "0fa6dwB3g1IR65sYkERgU2A", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 5 - }, - "_enabled": true, - "__prefab": null, - "m_rootNode": null, - "_id": "19/KVpJSNDwrm5eFmJdFVS" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 1080, - "height": 2115 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "d6rUX5yfhMlKoWX2bSbawx" - }, - { - "__type__": "cc.Canvas", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": null, - "_cameraComponent": { - "__id__": 4 - }, - "_alignCanvasWithScreen": true, - "_id": "12O/ljcVlEqLmVm3U2gEOQ" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": null, - "_alignFlags": 45, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 0, - "_originalHeight": 0, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "c5V1EV8IpMtrIvY1OE9t2u" - }, - { - "__type__": "cc.PrefabInfo", - "root": null, - "asset": null, - "fileId": "16b0d021-6436-4bbc-ba5e-05ebe3e84ba4", - "instance": null, - "targetOverrides": null - }, - { - "__type__": "cc.SceneGlobals", - "ambient": { - "__id__": 50 - }, - "shadows": { - "__id__": 51 - }, - "_skybox": { - "__id__": 52 - }, - "fog": { - "__id__": 53 - }, - "octree": { - "__id__": 54 - }, - "skin": { - "__id__": 55 - }, - "lightProbeInfo": { - "__id__": 56 - }, - "postSettings": { - "__id__": 57 - }, - "bakedWithStationaryMainLight": false, - "bakedWithHighpLightmap": false - }, - { - "__type__": "cc.AmbientInfo", - "_skyColorHDR": { - "__type__": "cc.Vec4", - "x": 0, - "y": 0, - "z": 0, - "w": 0.520833125 - }, - "_skyColor": { - "__type__": "cc.Vec4", - "x": 0, - "y": 0, - "z": 0, - "w": 0.520833125 - }, - "_skyIllumHDR": 20000, - "_skyIllum": 20000, - "_groundAlbedoHDR": { - "__type__": "cc.Vec4", - "x": 0, - "y": 0, - "z": 0, - "w": 0 - }, - "_groundAlbedo": { - "__type__": "cc.Vec4", - "x": 0, - "y": 0, - "z": 0, - "w": 0 - }, - "_skyColorLDR": { - "__type__": "cc.Vec4", - "x": 0.2, - "y": 0.5, - "z": 0.8, - "w": 1 - }, - "_skyIllumLDR": 20000, - "_groundAlbedoLDR": { - "__type__": "cc.Vec4", - "x": 0.2, - "y": 0.2, - "z": 0.2, - "w": 1 - } - }, - { - "__type__": "cc.ShadowsInfo", - "_enabled": false, - "_type": 0, - "_normal": { - "__type__": "cc.Vec3", - "x": 0, - "y": 1, - "z": 0 - }, - "_distance": 0, - "_planeBias": 1, - "_shadowColor": { - "__type__": "cc.Color", - "r": 76, - "g": 76, - "b": 76, - "a": 255 - }, - "_maxReceived": 4, - "_size": { - "__type__": "cc.Vec2", - "x": 512, - "y": 512 - } - }, - { - "__type__": "cc.SkyboxInfo", - "_envLightingType": 0, - "_envmapHDR": null, - "_envmap": null, - "_envmapLDR": null, - "_diffuseMapHDR": null, - "_diffuseMapLDR": null, - "_enabled": false, - "_useHDR": true, - "_editableMaterial": null, - "_reflectionHDR": null, - "_reflectionLDR": null, - "_rotationAngle": 0 - }, - { - "__type__": "cc.FogInfo", - "_type": 0, - "_fogColor": { - "__type__": "cc.Color", - "r": 200, - "g": 200, - "b": 200, - "a": 255 - }, - "_enabled": false, - "_fogDensity": 0.3, - "_fogStart": 0.5, - "_fogEnd": 300, - "_fogAtten": 5, - "_fogTop": 1.5, - "_fogRange": 1.2, - "_accurate": false - }, - { - "__type__": "cc.OctreeInfo", - "_enabled": false, - "_minPos": { - "__type__": "cc.Vec3", - "x": -1024, - "y": -1024, - "z": -1024 - }, - "_maxPos": { - "__type__": "cc.Vec3", - "x": 1024, - "y": 1024, - "z": 1024 - }, - "_depth": 8 - }, - { - "__type__": "cc.SkinInfo", - "_enabled": false, - "_blurRadius": 0.01, - "_sssIntensity": 3 - }, - { - "__type__": "cc.LightProbeInfo", - "_giScale": 1, - "_giSamples": 1024, - "_bounces": 2, - "_reduceRinging": 0, - "_showProbe": true, - "_showWireframe": true, - "_showConvex": false, - "_data": null, - "_lightProbeSphereVolume": 1 - }, - { - "__type__": "cc.PostSettingsInfo", - "_toneMappingType": 0 - } -] \ No newline at end of file diff --git a/assets/Scenes/LoginScene.scene.meta b/assets/Scenes/LoginScene.scene.meta deleted file mode 100644 index 1be101e8..00000000 --- a/assets/Scenes/LoginScene.scene.meta +++ /dev/null @@ -1 +0,0 @@ -{"ver":"1.1.50","importer":"scene","imported":true,"uuid":"dab4ae00-c26e-4176-9c7e-709d8899e525","files":[".json"],"subMetas":{},"userData":{}} diff --git a/assets/Scenes/MainScene.scene b/assets/Scenes/MainScene.scene index b190c805..085652d6 100644 --- a/assets/Scenes/MainScene.scene +++ b/assets/Scenes/MainScene.scene @@ -23,7 +23,7 @@ "_active": true, "_components": [], "_prefab": { - "__id__": 31 + "__id__": 27 }, "_lpos": { "__type__": "cc.Vec3", @@ -54,13 +54,13 @@ }, "autoReleaseAssets": false, "_globals": { - "__id__": 32 + "__id__": 28 }, "_id": "1a23cd3e-e487-4fd1-a415-346c2087464d" }, { "__type__": "cc.Node", - "_name": "UICanvas", + "_name": "MainScene", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -81,24 +81,21 @@ }, { "__id__": 20 - }, - { - "__id__": 23 } ], "_active": true, "_components": [ { - "__id__": 27 + "__id__": 23 }, { - "__id__": 28 + "__id__": 24 }, { - "__id__": 29 + "__id__": 25 }, { - "__id__": 30 + "__id__": 26 } ], "_prefab": null, @@ -129,7 +126,7 @@ "y": 0, "z": 0 }, - "_id": "beI88Z2HpFELqR4T5EMHpg" + "_id": "71PSAm0U5EN513SjB0jM8O" }, { "__type__": "cc.Node", @@ -174,7 +171,7 @@ "y": 0, "z": 0 }, - "_id": "ebFwiq8gBFaYpqYbdoDODe" + "_id": "8dIONDYHFFl7DVZ3t3zyFU" }, { "__type__": "cc.Camera", @@ -220,7 +217,7 @@ "_usePostProcess": false, "_cameraType": -1, "_trackingType": 0, - "_id": "63WIch3o5BEYRlXzTT0oWc" + "_id": "893BHdWlxBRLC6eoG3YKzX" }, { "__type__": "cc.Node", @@ -275,7 +272,7 @@ "y": 0, "z": 0 }, - "_id": "f2um9njPVFUrw07IxJZ2Ah" + "_id": "19P2dUiM9B2rzTU9tEzCTu" }, { "__type__": "cc.Node", @@ -326,7 +323,7 @@ "y": 0, "z": 0 }, - "_id": "62NcZ+WhRKnaIB9Nn886pg" + "_id": "00yBofC6RHjKVN24SuYkWU" }, { "__type__": "cc.UITransform", @@ -348,7 +345,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "e9cMt7vAhIc4a7k9vEIMWF" + "_id": "96J/qF3g1Hu5KCifHBHTSI" }, { "__type__": "cc.VideoPlayer", @@ -376,7 +373,7 @@ "__id__": 9 } ], - "_id": "4eO0OJtSRAuJxLXluDHDbn" + "_id": "32b260vq1LvpZUbTAjk2Pq" }, { "__type__": "cc.ClickEvent", @@ -398,7 +395,7 @@ }, "_enabled": true, "__prefab": null, - "_id": "b5k2KOjKtLkaxD5pVR6wCQ" + "_id": "4968xgbr1J74FIwzQMKo2w" }, { "__type__": "cc.UITransform", @@ -420,7 +417,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "30mG8HUqRBI5nTm2oK6AzE" + "_id": "1eiVEkUPZOPL/vO+yeE189" }, { "__type__": "cc.Widget", @@ -450,7 +447,7 @@ "_originalHeight": 100, "_alignMode": 2, "_lockFlags": 0, - "_id": "88uIpLSUpFcq1yB9nA16Xu" + "_id": "7dOmfIfktI0IDkzVF4Zsm0" }, { "__type__": "5caf8//TmZHLJgls9ahUjBU", @@ -463,7 +460,7 @@ "_enabled": true, "__prefab": null, "m_rootNode": null, - "_id": "80UNyz/UdPILGcK/mJl5q5" + "_id": "30yWHGlSxCP4xfT2YvFQeM" }, { "__type__": "cc.Node", @@ -511,7 +508,7 @@ "y": 0, "z": 0 }, - "_id": "99E25LLUhLPZB2mQ2YjsDD" + "_id": "cce3MYA5lPhqXH4KfpgYGE" }, { "__type__": "cc.UITransform", @@ -533,7 +530,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "d0IL3iFVRAvqQ8EJZ31nFY" + "_id": "2dNvIYF2BA5ZS2iUJN2+JZ" }, { "__type__": "cc.Widget", @@ -563,7 +560,7 @@ "_originalHeight": 100, "_alignMode": 2, "_lockFlags": 0, - "_id": "e6M4zdUS1N6bIBwqHwnARY" + "_id": "ebrXdl5AhKhK+1/qSIaRpM" }, { "__type__": "cc.Node", @@ -611,7 +608,7 @@ "y": 0, "z": 0 }, - "_id": "12LOWX4llOJKCGaYZD4frU" + "_id": "592j375INCiaJVhUg43jSm" }, { "__type__": "cc.UITransform", @@ -633,7 +630,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "77KhXGIbxFXoWO9LOs4fwe" + "_id": "aeqdUq+ilEaYPL6uwi7JdF" }, { "__type__": "cc.Widget", @@ -663,7 +660,7 @@ "_originalHeight": 100, "_alignMode": 2, "_lockFlags": 0, - "_id": "96K4zn3IlDvoIbb1I7ctPL" + "_id": "92UKbCz9xGOLw7kGjojijO" }, { "__type__": "cc.Node", @@ -711,7 +708,7 @@ "y": 0, "z": 0 }, - "_id": "f061eJiSBKN5PguQygisF7" + "_id": "f4kNREfSZMCILejO7dA8U+" }, { "__type__": "cc.UITransform", @@ -733,7 +730,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "9bsrrdIjlNVaLy/kkNM/4Q" + "_id": "a0/2HJepNFoZRWQ+ZGhWNo" }, { "__type__": "cc.AudioSource", @@ -752,149 +749,7 @@ "_loop": true, "_playOnAwake": true, "_volume": 1, - "_id": "030kCofjFAmI5HlV2BrAD6" - }, - { - "__type__": "cc.Node", - "_name": "test", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 24 - }, - { - "__id__": 25 - }, - { - "__id__": 26 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "3eM7mCdfROdaOWSbccQmmQ" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 23 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 1080, - "height": 2115 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "4bzm4tl4VJwZDKcaQMFTmm" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 23 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "8426dfa7-c0bd-4bfc-8ea1-90d9f957fa73@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "fd5aPdKARIe4KoMy2wyxvh" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 23 - }, - "_enabled": true, - "__prefab": null, - "_alignFlags": 45, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 255, - "_originalHeight": 255, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "cdikCeObJEaoGZ5FWImPkl" + "_id": "e0dBsb0fFFeIlcmZR39o89" }, { "__type__": "cc.UITransform", @@ -916,7 +771,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "d6rUX5yfhMlKoWX2bSbawx" + "_id": "a45zYXLkdB5p21cBR3Jhwj" }, { "__type__": "cc.Canvas", @@ -932,7 +787,7 @@ "__id__": 4 }, "_alignCanvasWithScreen": true, - "_id": "12O/ljcVlEqLmVm3U2gEOQ" + "_id": "1etPCOcLVNCp217Ewk7Uf2" }, { "__type__": "cc.Widget", @@ -962,7 +817,7 @@ "_originalHeight": 0, "_alignMode": 2, "_lockFlags": 45, - "_id": "c5V1EV8IpMtrIvY1OE9t2u" + "_id": "f1ZdtMSHBJU5jobLqI2dYT" }, { "__type__": "fb227p/84NJBbVq0Iq6yVqT", @@ -974,16 +829,10 @@ }, "_enabled": true, "__prefab": null, - "UIRoot": { - "__id__": 14 - }, - "UILayerMod": { - "__id__": 17 - }, "MainCamera": { "__id__": 4 }, - "_id": "98EWBIubZPlZT+LFQb4IYI" + "_id": "28MjFWW29O+IabrSgIO0op" }, { "__type__": "cc.PrefabInfo", @@ -996,28 +845,28 @@ { "__type__": "cc.SceneGlobals", "ambient": { - "__id__": 33 + "__id__": 29 }, "shadows": { - "__id__": 34 + "__id__": 30 }, "_skybox": { - "__id__": 35 + "__id__": 31 }, "fog": { - "__id__": 36 + "__id__": 32 }, "octree": { - "__id__": 37 + "__id__": 33 }, "skin": { - "__id__": 38 + "__id__": 34 }, "lightProbeInfo": { - "__id__": 39 + "__id__": 35 }, "postSettings": { - "__id__": 40 + "__id__": 36 }, "bakedWithStationaryMainLight": false, "bakedWithHighpLightmap": false diff --git a/assets/Scenes/PreloadScene.scene b/assets/Scenes/PreloadScene.scene index b9122e57..a120a372 100644 --- a/assets/Scenes/PreloadScene.scene +++ b/assets/Scenes/PreloadScene.scene @@ -23,7 +23,7 @@ "_active": true, "_components": [], "_prefab": { - "__id__": 55 + "__id__": 59 }, "_lpos": { "__type__": "cc.Vec3", @@ -54,7 +54,7 @@ }, "autoReleaseAssets": false, "_globals": { - "__id__": 56 + "__id__": 64 }, "_id": "16b0d021-6436-4bbc-ba5e-05ebe3e84ba4" }, @@ -72,18 +72,24 @@ }, { "__id__": 5 + }, + { + "__id__": 36 } ], "_active": true, "_components": [ { - "__id__": 52 + "__id__": 56 }, { - "__id__": 53 + "__id__": 57 }, { - "__id__": 54 + "__id__": 58 + }, + { + "__id__": 34 } ], "_prefab": null, @@ -220,37 +226,25 @@ "__id__": 6 }, { - "__id__": 10 + "__id__": 9 }, { "__id__": 13 }, { - "__id__": 17 - }, - { - "__id__": 24 - }, - { - "__id__": 27 - }, - { - "__id__": 31 - }, - { - "__id__": 38 + "__id__": 20 } ], "_active": true, "_components": [ { - "__id__": 49 + "__id__": 31 }, { - "__id__": 50 + "__id__": 32 }, { - "__id__": 51 + "__id__": 33 } ], "_prefab": null, @@ -285,7 +279,7 @@ }, { "__type__": "cc.Node", - "_name": "test", + "_name": "VideoPlayer", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -299,148 +293,6 @@ }, { "__id__": 8 - }, - { - "__id__": 9 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "eey3di2TNJHIBkZPe/VAph" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 6 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 1080, - "height": 2115 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "eaVX1KxrlICrkx6US/yZyO" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 6 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "8426dfa7-c0bd-4bfc-8ea1-90d9f957fa73@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "5cuz1tY2pO8odSYDksby+B" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 6 - }, - "_enabled": true, - "__prefab": null, - "_alignFlags": 45, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 255, - "_originalHeight": 255, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "224Hhbo89MuqEBEW2RShKf" - }, - { - "__type__": "cc.Node", - "_name": "VideoPlayer", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 11 - }, - { - "__id__": 12 } ], "_prefab": null, @@ -479,7 +331,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 10 + "__id__": 6 }, "_enabled": true, "__prefab": null, @@ -501,7 +353,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 10 + "__id__": 6 }, "_enabled": true, "__prefab": null, @@ -522,480 +374,6 @@ "videoPlayerEvent": [], "_id": "ddzb70moVPvZ0awsk0S9Uz" }, - { - "__type__": "cc.Node", - "_name": "BG", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 14 - }, - { - "__id__": 15 - }, - { - "__id__": 16 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "1d5qGpOzlPnLnKhwI6LYt7" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 13 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 1080, - "height": 2115 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "d0c5DY6+pDY74yxB4Bb9l/" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 13 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 36, - "g": 26, - "b": 53, - "a": 153 - }, - "_spriteFrame": { - "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "63iO9zGNNDP47QFZzKrJzC" - }, - { - "__type__": "820fdbVWCBN+qohMzrVfhh2", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 13 - }, - "_enabled": true, - "__prefab": null, - "_id": "16QQQ23ZJLVbI+9+hB2cMF" - }, - { - "__type__": "cc.Node", - "_name": "Mask", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [ - { - "__id__": 18 - } - ], - "_active": false, - "_components": [ - { - "__id__": 21 - }, - { - "__id__": 22 - }, - { - "__id__": 23 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 299.3589999999999, - "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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "1dl1E0dN1JgZt9AVuURcS1" - }, - { - "__type__": "cc.Node", - "_name": "Sprite", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 17 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 19 - }, - { - "__id__": 20 - } - ], - "_prefab": null, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "a7SGu3HnVGM4lsoW0DsAcK" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 300, - "height": 300 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "e0n1lZL9FHnqbhMpjIKBUU" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "777fc276-1999-4eba-a9a4-9bcfb84cbd72@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "adNbDlGY1OKr/qRzrdtbwd" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 17 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 300, - "height": 300 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "b3/GGiZaxCC75fRLDuCLph" - }, - { - "__type__": "cc.Mask", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 17 - }, - "_enabled": true, - "__prefab": null, - "_type": 3, - "_inverted": false, - "_segments": 64, - "_alphaThreshold": 0.1, - "_id": "59XRmPl/1NubfCJSIGhzua" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 17 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "4cef8664-eeed-4be5-b33b-1bb74a6019cb@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "f1uT7qS7ZM5bjAtq3RkN7/" - }, - { - "__type__": "cc.Node", - "_name": "Icon_BG", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 5 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 25 - }, - { - "__id__": 26 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 299.3589999999999, - "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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "96PSzdR+lNW6rxfZaUrhFR" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 24 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 312, - "height": 312 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "6cv3lYbA1LhIoC9AtJJObM" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 24 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "956bb46f-bf99-44c5-b1d3-4717914d71ea@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": "f5WrotzqdGWJP9wQYVbDCZ" - }, { "__type__": "cc.Node", "_name": "text", @@ -1008,13 +386,13 @@ "_active": true, "_components": [ { - "__id__": 28 + "__id__": 10 }, { - "__id__": 29 + "__id__": 11 }, { - "__id__": 30 + "__id__": 12 } ], "_prefab": null, @@ -1053,7 +431,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 27 + "__id__": 9 }, "_enabled": true, "__prefab": null, @@ -1075,7 +453,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 27 + "__id__": 9 }, "_enabled": true, "__prefab": null, @@ -1089,7 +467,7 @@ "b": 206, "a": 255 }, - "_string": "I couldn’t help but notice your profile… you look like someone who enjoys turning a quiet conversation into something unforgettable. Should we test that out tonight?\"", + "_string": "मैं आपकी प्रोफाइल को नोटिस किए बिना नहीं रह सका... आपको ऐसा लगता है जो एक शांत बातचीत को कुछ अविस्मरणीय में बदलने का आनंद लेते हैं। क्या हम आज रात इसे आज़माएं?", "_horizontalAlign": 1, "_verticalAlign": 1, "_actualFontSize": 46, @@ -1140,12 +518,12 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 27 + "__id__": 9 }, "_enabled": true, "__prefab": null, "languageKey": "opening.desc", - "defaultText": "", + "defaultText": "मैं आपकी प्रोफाइल को नोटिस किए बिना नहीं रह सका... आपको ऐसा लगता है जो एक शांत बातचीत को कुछ अविस्मरणीय में बदलने का आनंद लेते हैं। क्या हम आज रात इसे आज़माएं?", "autoUpdate": true, "_id": "0d7v6Eg6lMm65faTibDc9x" }, @@ -1159,26 +537,26 @@ }, "_children": [ { - "__id__": 32 + "__id__": 14 } ], "_active": true, "_components": [ { - "__id__": 35 + "__id__": 17 }, { - "__id__": 36 + "__id__": 18 }, { - "__id__": 37 + "__id__": 19 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": -643.281, + "y": -713.049, "z": 0 }, "_lrot": { @@ -1210,16 +588,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 31 + "__id__": 13 }, "_children": [], "_active": true, "_components": [ { - "__id__": 33 + "__id__": 15 }, { - "__id__": 34 + "__id__": 16 } ], "_prefab": null, @@ -1258,7 +636,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 32 + "__id__": 14 }, "_enabled": true, "__prefab": null, @@ -1280,7 +658,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 32 + "__id__": 14 }, "_enabled": true, "__prefab": null, @@ -1319,7 +697,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 31 + "__id__": 13 }, "_enabled": true, "__prefab": null, @@ -1341,7 +719,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 31 + "__id__": 13 }, "_enabled": true, "__prefab": null, @@ -1380,7 +758,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 31 + "__id__": 13 }, "_enabled": true, "__prefab": null, @@ -1389,7 +767,7 @@ "_left": 0, "_right": 0, "_top": 0, - "_bottom": 395.71900000000005, + "_bottom": 325.951, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -1414,16 +792,16 @@ }, "_children": [ { - "__id__": 39 + "__id__": 21 } ], - "_active": false, + "_active": true, "_components": [ { - "__id__": 47 + "__id__": 29 }, { - "__id__": 48 + "__id__": 30 } ], "_prefab": null, @@ -1454,7 +832,7 @@ "y": 0, "z": 0 }, - "_id": "cbgmHP/CFF1rtmMD7vJI0c" + "_id": "6byrnDPwRKqb5wURmIPPM6" }, { "__type__": "cc.Node", @@ -1462,33 +840,33 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 38 + "__id__": 20 }, "_children": [ { - "__id__": 40 + "__id__": 22 } ], "_active": true, "_components": [ { - "__id__": 43 + "__id__": 25 }, { - "__id__": 44 + "__id__": 26 }, { - "__id__": 45 + "__id__": 27 }, { - "__id__": 46 + "__id__": 28 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": -370.278, + "y": -394.99300000000005, "z": 0 }, "_lrot": { @@ -1512,7 +890,7 @@ "y": 0, "z": 0 }, - "_id": "20XiExjNlNz4WgKxRYVHg4" + "_id": "adbCaQ4l9HN4AnzxXYy++p" }, { "__type__": "cc.Node", @@ -1520,16 +898,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 39 + "__id__": 21 }, "_children": [], "_active": true, "_components": [ { - "__id__": 41 + "__id__": 23 }, { - "__id__": 42 + "__id__": 24 } ], "_prefab": null, @@ -1560,7 +938,7 @@ "y": 0, "z": 0 }, - "_id": "c9QK+QiMdN05iiunOuSORG" + "_id": "14Zxm6e/xAa44e2qLypKCj" }, { "__type__": "cc.UITransform", @@ -1568,13 +946,13 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 40 + "__id__": 22 }, "_enabled": true, "__prefab": null, "_contentSize": { "__type__": "cc.Size", - "width": 124.5999755859375, + "width": 209.931640625, "height": 91.35 }, "_anchorPoint": { @@ -1582,7 +960,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "c69JGQfqNFH7wh5os8iwkl" + "_id": "24xhpso0RAsp1k/Zo35dwm" }, { "__type__": "cc.Label", @@ -1590,7 +968,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 40 + "__id__": 22 }, "_enabled": true, "__prefab": null, @@ -1604,11 +982,11 @@ "b": 255, "a": 255 }, - "_string": "登录", + "_string": "Log in", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 62.3, - "_fontSize": 62.3, + "_actualFontSize": 70, + "_fontSize": 70, "_fontFamily": "Arial", "_lineHeight": 72.5, "_overflow": 0, @@ -1617,7 +995,7 @@ "_isSystemFontUsed": true, "_spacingX": 0, "_isItalic": false, - "_isBold": false, + "_isBold": true, "_isUnderline": false, "_underlineHeight": 2, "_cacheMode": 0, @@ -1644,7 +1022,7 @@ "y": 2 }, "_shadowBlur": 2, - "_id": "14arglROtOO4uXIOOeRmbM" + "_id": "086RpvbEhEpI8zEZWy3OIa" }, { "__type__": "cc.UITransform", @@ -1652,21 +1030,21 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 39 + "__id__": 21 }, "_enabled": true, "__prefab": null, "_contentSize": { "__type__": "cc.Size", - "width": 500, - "height": 110.1 + "width": 458, + "height": 138 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, "y": 0.5 }, - "_id": "9b8PXTRT1DqKCAXDPmdvwb" + "_id": "45rfBL1k1Mm4mIQYdgUcyS" }, { "__type__": "cc.Sprite", @@ -1674,7 +1052,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 39 + "__id__": 21 }, "_enabled": true, "__prefab": null, @@ -1689,10 +1067,10 @@ "a": 255 }, "_spriteFrame": { - "__uuid__": "6d0a8cc2-834f-4734-966c-9a62178b2510@f9941", + "__uuid__": "6a575808-ac52-447e-871c-3c65972185c6@f9941", "__expectedType__": "cc.SpriteFrame" }, - "_type": 1, + "_type": 0, "_fillType": 0, "_sizeMode": 0, "_fillCenter": { @@ -1705,7 +1083,7 @@ "_isTrimmedMode": true, "_useGrayscale": false, "_atlas": null, - "_id": "d2zujrESJPbJh2iH8ZtP3u" + "_id": "55WlMzI7FAT5PuCGnCZsS/" }, { "__type__": "cc.Widget", @@ -1713,7 +1091,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 39 + "__id__": 21 }, "_enabled": true, "__prefab": null, @@ -1722,7 +1100,7 @@ "_left": 0, "_right": 0, "_top": 0, - "_bottom": 744.672, + "_bottom": -413.99300000000005, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -1735,7 +1113,7 @@ "_originalHeight": 0, "_alignMode": 2, "_lockFlags": 0, - "_id": "dfdxZQmvFOwrQBo53Z1saZ" + "_id": "8eBeAkYrxNDryoABgWfX85" }, { "__type__": "cc.Button", @@ -1743,7 +1121,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 39 + "__id__": 21 }, "_enabled": true, "__prefab": null, @@ -1785,9 +1163,9 @@ "_duration": 0.1, "_zoomScale": 1.2, "_target": { - "__id__": 39 + "__id__": 21 }, - "_id": "c9KDag5vBLKazTx4FSrM2p" + "_id": "c1YFFV+9dHEKQS7zVcNg9H" }, { "__type__": "cc.UITransform", @@ -1795,21 +1173,21 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 38 + "__id__": 20 }, "_enabled": true, "__prefab": null, "_contentSize": { "__type__": "cc.Size", - "width": 1080, - "height": 2340 + "width": 100, + "height": 100 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, "y": 0.5 }, - "_id": "51LpH13xtAcKvHofY3HjM1" + "_id": "58A8RaNXtPrp6Ka4YMXrv9" }, { "__type__": "cc.Widget", @@ -1817,16 +1195,16 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 38 + "__id__": 20 }, "_enabled": true, "__prefab": null, - "_alignFlags": 45, + "_alignFlags": 18, "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, + "_left": 490, + "_right": 490, + "_top": 1120, + "_bottom": 1120, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -1839,7 +1217,7 @@ "_originalHeight": 100, "_alignMode": 2, "_lockFlags": 0, - "_id": "ffSHIcdQ9MDLv6Ji+LALik" + "_id": "8564kPelFLf5OcKf4TQwN+" }, { "__type__": "cc.UITransform", @@ -1890,7 +1268,7 @@ "_originalWidth": 100, "_originalHeight": 100, "_alignMode": 2, - "_lockFlags": 0, + "_lockFlags": 45, "_id": "fcCE1XQq5LsqZEHtr4Un7m" }, { @@ -1903,8 +1281,677 @@ }, "_enabled": true, "__prefab": null, + "mainScene": { + "__id__": 34 + }, "_id": "81PEyjJPJOvaY0u8iqWtBY" }, + { + "__type__": "fb227p/84NJBbVq0Iq6yVqT", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": null, + "UIRoot": { + "__id__": 35 + }, + "UILayerMod": { + "__id__": 46 + }, + "MainCamera": { + "__id__": 4 + }, + "_id": "18mxxtDvtLwKLt5v+KTe1F" + }, + { + "__type__": "cc.Node", + "_name": "UIRoot", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 36 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 54 + }, + { + "__id__": 55 + } + ], + "_prefab": null, + "_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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "5437/jSwBCqIGpFCTRiiIp" + }, + { + "__type__": "cc.Node", + "_name": "MainScene", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 37 + }, + { + "__id__": 35 + }, + { + "__id__": 46 + }, + { + "__id__": 49 + } + ], + "_active": true, + "_components": [ + { + "__id__": 52 + }, + { + "__id__": 53 + } + ], + "_prefab": null, + "_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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "ef3iCtDYBFlaG8vwPeAiRR" + }, + { + "__type__": "cc.Node", + "_name": "BgLayer", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 36 + }, + "_children": [ + { + "__id__": 38 + } + ], + "_active": true, + "_components": [ + { + "__id__": 43 + }, + { + "__id__": 44 + }, + { + "__id__": 45 + } + ], + "_prefab": null, + "_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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "e27DyzGmVH67HiFuM3YEDJ" + }, + { + "__type__": "cc.Node", + "_name": "videoPlayer", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 37 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 39 + }, + { + "__id__": 40 + }, + { + "__id__": 42 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 185.337, + "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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "9ddmjU8cRI3IqGe4MqAIeh" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 38 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 400, + "height": 866 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "0b8hSRo3xEEpvUXO41kozO" + }, + { + "__type__": "cc.VideoPlayer", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 38 + }, + "_enabled": true, + "__prefab": null, + "_resourceType": 0, + "_remoteURL": "", + "_clip": null, + "_playOnAwake": true, + "_volume": 1, + "_mute": true, + "_playbackRate": 1, + "_loop": true, + "_fullScreenOnAwake": false, + "_stayOnBottom": true, + "_keepAspectRatio": true, + "videoPlayerEvent": [ + { + "__id__": 41 + } + ], + "_id": "423wj8SLdJxpHi5bzVZasX" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 38 + }, + "component": "", + "_componentId": "72cc36txkdCsYwmehDVnUGe", + "handler": "onVideoEvent", + "customEventData": "" + }, + { + "__type__": "72cc36txkdCsYwmehDVnUGe", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 38 + }, + "_enabled": true, + "__prefab": null, + "_id": "a2xQSbqBtDhpcLiyQWux8B" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 37 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1080, + "height": 2115 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "daa9T88rVPk4dyTEoJ2Bt8" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 37 + }, + "_enabled": true, + "__prefab": null, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "dbc8MnvDVCtbvWRn7zj+zq" + }, + { + "__type__": "5caf8//TmZHLJgls9ahUjBU", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 37 + }, + "_enabled": true, + "__prefab": null, + "m_rootNode": null, + "_id": "60FiUkwmVGy4Opa1EUm7WU" + }, + { + "__type__": "cc.Node", + "_name": "UILayerMod", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 36 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 47 + }, + { + "__id__": 48 + } + ], + "_prefab": null, + "_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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "47F/qW9jVOr6XkMuzmxy9M" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 46 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1080, + "height": 2115 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "a9M2ankOFGErH1KekWA9Uh" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 46 + }, + "_enabled": true, + "__prefab": null, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "f2OxL75bVO36qtlTAQO6B8" + }, + { + "__type__": "cc.Node", + "_name": "audio", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 36 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 50 + }, + { + "__id__": 51 + } + ], + "_prefab": null, + "_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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "02vDd0ufBO4JhcVcuJhJV7" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 49 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "3aiIC4YV1CDIcqxvjIxKB1" + }, + { + "__type__": "cc.AudioSource", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 49 + }, + "_enabled": true, + "__prefab": null, + "_clip": { + "__uuid__": "78e9f81f-ddb9-460d-bbce-74e58e0ce7e4", + "__expectedType__": "cc.AudioClip" + }, + "_loop": true, + "_playOnAwake": true, + "_volume": 1, + "_id": "9axhcCv5NCiLfwXnn1UHWE" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1080, + "height": 2115 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "f4/cQsRR5PQrM2pdAzZqLE" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": null, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "10rmgmsH5EJozps0KGxkuI" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 35 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1080, + "height": 2115 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "2c03PF4QhINJFmNn5TJ0HC" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 35 + }, + "_enabled": true, + "__prefab": null, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "e1pd/xq0xGnZOv+UvpthBf" + }, { "__type__": "cc.UITransform", "_name": "", @@ -1979,33 +2026,84 @@ "asset": null, "fileId": "16b0d021-6436-4bbc-ba5e-05ebe3e84ba4", "instance": null, - "targetOverrides": null + "targetOverrides": [ + { + "__id__": 60 + }, + { + "__id__": 62 + } + ] + }, + { + "__type__": "cc.TargetOverrideInfo", + "source": { + "__id__": 34 + }, + "sourceInfo": null, + "propertyPath": [ + "UIRoot" + ], + "target": { + "__id__": 36 + }, + "targetInfo": { + "__id__": 61 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "43DqjKgUZNirwECuW4NpKW" + ] + }, + { + "__type__": "cc.TargetOverrideInfo", + "source": { + "__id__": 34 + }, + "sourceInfo": null, + "propertyPath": [ + "UILayerMod" + ], + "target": { + "__id__": 36 + }, + "targetInfo": { + "__id__": 63 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "6doup5tx9Adr70Lm7owVtS" + ] }, { "__type__": "cc.SceneGlobals", "ambient": { - "__id__": 57 + "__id__": 65 }, "shadows": { - "__id__": 58 + "__id__": 66 }, "_skybox": { - "__id__": 59 + "__id__": 67 }, "fog": { - "__id__": 60 + "__id__": 68 }, "octree": { - "__id__": 61 + "__id__": 69 }, "skin": { - "__id__": 62 + "__id__": 70 }, "lightProbeInfo": { - "__id__": 63 + "__id__": 71 }, "postSettings": { - "__id__": 64 + "__id__": 72 }, "bakedWithStationaryMainLight": false, "bakedWithHighpLightmap": false diff --git a/assets/Scripts/Main/Manager/ResManager.ts b/assets/Scripts/Main/Manager/ResManager.ts index 5cb6be1e..b7f78a11 100644 --- a/assets/Scripts/Main/Manager/ResManager.ts +++ b/assets/Scripts/Main/Manager/ResManager.ts @@ -1,521 +1,586 @@ -import { _decorator, AssetManager, assetManager, Component, Node, director, Prefab, resources, Sprite, SpriteFrame, Texture2D, v2, SpriteAtlas, ImageAsset, instantiate, AudioClip, Asset, JsonAsset, Material, VideoPlayer, VideoClip } from 'cc'; +import { + _decorator, + AssetManager, + assetManager, + Component, + Node, + director, + Prefab, + resources, + Sprite, + SpriteFrame, + Texture2D, + v2, + SpriteAtlas, + ImageAsset, + instantiate, + AudioClip, + Asset, + JsonAsset, + Material, + VideoPlayer, + VideoClip, +} from "cc"; const { ccclass, property } = _decorator; -@ccclass('ResManager') +@ccclass("ResManager") export default class ResManager { - private static _I: ResManager = null; - public static get I(): ResManager { - if (!ResManager._I) { - ResManager._I = new ResManager(); + private static _I: ResManager = null; + public static get I(): ResManager { + if (!ResManager._I) { + ResManager._I = new ResManager(); + } + return ResManager._I; + } + + /**切换场景 */ + enterScene(i_sceneName: string) { + director.loadScene(i_sceneName, () => {}); + } + + /** 场景-跳转到主界面场景*/ + goMainScene() { + this.enterScene("MainScene"); + } + + /** 场景-跳转到游戏场景*/ + goGameScene() { + this.enterScene("GameScene"); + } + + /** 场景-跳转到自定义场景*/ + goCustomScene(sceneName: string) { + this.enterScene(sceneName); + } + + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // /**加载bundle */ + // loadBundle(bundleName, cb?) { + // let bundle = assetManager.getBundle(bundleName) + // if (bundle) { cb && cb(bundle); return; } + // assetManager.loadBundle(bundleName, (err: Error, _bundle: AssetManager.Bundle) => { + // if (!err) { + // cb && cb(_bundle); + // } + // }); + // } + /**移除bundle */ + removeBundle(bundleName) { + let bundle = assetManager.getBundle(bundleName); + if (bundle) { + bundle.releaseAll(); + assetManager.removeBundle(bundle); + } + } + /**预加载bundle中的PB*/ + preLoadSubpackagePrefab(url: string, cb) { + let bundle = assetManager.getBundle("PB"); + if (bundle) { + bundle.preload(url, Prefab, (err, res) => { + if (err) { + console.log(err); + return; } - return ResManager._I; - } - - - /**切换场景 */ - enterScene(i_sceneName: string) { - director.loadScene(i_sceneName, () => { }); - } - - - /** 场景-跳转到主界面场景*/ - goMainScene() { - this.enterScene('MainScene'); - } - - /** 场景-跳转到游戏场景*/ - goGameScene() { - this.enterScene('GameScene'); - } - - /** 场景-跳转到自定义场景*/ - goCustomScene(sceneName:string) { - this.enterScene(sceneName); - } - - - - ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - // /**加载bundle */ - // loadBundle(bundleName, cb?) { - // let bundle = assetManager.getBundle(bundleName) - // if (bundle) { cb && cb(bundle); return; } - // assetManager.loadBundle(bundleName, (err: Error, _bundle: AssetManager.Bundle) => { - // if (!err) { - // cb && cb(_bundle); - // } - // }); - // } - /**移除bundle */ - removeBundle(bundleName) { - let bundle = assetManager.getBundle(bundleName); - if (bundle) { - bundle.releaseAll(); - assetManager.removeBundle(bundle); + cb && cb(); + }); + } else { + assetManager.loadBundle( + "PB", + (err: Error, _bundle: AssetManager.Bundle) => { + if (err) { + console.log(err); + return; + } + this.preLoadSubpackagePrefab(url, cb); } + ); } - /**预加载bundle中的PB*/ - preLoadSubpackagePrefab(url: string, cb) { - let bundle = assetManager.getBundle("PB"); - if (bundle){ - bundle.preload(url, Prefab, (err, res) => { - if (err) { - console.log(err); - return - } - cb && cb(); - }); - } else { - assetManager.loadBundle("PB", (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.preLoadSubpackagePrefab(url, cb); - }); + } + /**预加载bundle中的文件*/ + preLoadSubpackageFile(url: string, pkgName: string, ftype, succCB, failCB) { + let bundle = assetManager.getBundle(pkgName); + if (bundle) { + bundle.preload(url, ftype, (err, res) => { + if (err) { + console.log(err); + failCB && failCB(err); + return; } - } - /**预加载bundle中的文件*/ - preLoadSubpackageFile(url: string, pkgName: string, ftype, succCB, failCB) { - let bundle = assetManager.getBundle(pkgName); - if (bundle){ - bundle.preload(url, ftype, (err, res) => { - if (err) { - console.log(err); - failCB && failCB(err); - return - } - succCB && succCB(); - }); - } else { - assetManager.loadBundle(pkgName, (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - failCB && failCB(err); - return - } - this.preLoadSubpackageFile(url, pkgName, ftype, succCB, failCB); - }); + succCB && succCB(); + }); + } else { + assetManager.loadBundle( + pkgName, + (err: Error, _bundle: AssetManager.Bundle) => { + if (err) { + console.log(err); + failCB && failCB(err); + return; + } + this.preLoadSubpackageFile(url, pkgName, ftype, succCB, failCB); } + ); } - /** 加载bundle中的PB*/ - loadSubpackagePrefab(url: string, cb) { - let bundle = assetManager.getBundle("Chat18x"); - if (bundle){ - bundle.load(url, Prefab, (err, res: Prefab) => { - if (err) { - console.log(err); - return - } - let cc_N = instantiate(res); - cb && cb(cc_N); - }); - }else{ - assetManager.loadBundle("PB", (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.loadSubpackagePrefab(url, cb); - }); + } + /** 加载bundle中的PB*/ + loadSubpackagePrefab(url: string, cb) { + let bundle = assetManager.getBundle("Chat18x"); + if (bundle) { + bundle.load(url, Prefab, (err, res: Prefab) => { + if (err) { + console.log(err); + return; } + let cc_N = instantiate(res); + cb && cb(cc_N); + }); + } else { + assetManager.loadBundle( + "PB", + (err: Error, _bundle: AssetManager.Bundle) => { + if (err) { + console.log(err); + return; + } + this.loadSubpackagePrefab(url, cb); + } + ); } - /**获取pb节点 */ - getPrefab(path: string, cb: Function, target: Node) { - this.loadSubpackagePrefab(path, (pb: Prefab) => { - if (target && !target.isValid) { - pb.destroy() - return; - } - pb['path'] = path; - cb && cb(pb); - }); - } + } + /**获取pb节点 */ + getPrefab(path: string, cb: Function, target: Node) { + this.loadSubpackagePrefab(path, (pb: Prefab) => { + if (target && !target.isValid) { + pb.destroy(); + return; + } + pb["path"] = path; + cb && cb(pb); + }); + } - - /** 加载bundle中的PB*/ - loadSubpackage3DModel(url: string, cb) { - let bundle = assetManager.getBundle("Model3D"); - if (bundle){ - bundle.load(url, Prefab, (err, res: Prefab) => { - if (err) { - console.log(err); - return - } - let cc_N = instantiate(res); - cb && cb(cc_N); - }); - }else{ - assetManager.loadBundle("Model3D", (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.loadSubpackage3DModel(url, cb); - }); + /** 加载bundle中的PB*/ + loadSubpackage3DModel(url: string, cb) { + let bundle = assetManager.getBundle("Model3D"); + if (bundle) { + bundle.load(url, Prefab, (err, res: Prefab) => { + if (err) { + console.log(err); + return; } - } - - /** 改变图片--bundle资源 sprite-frame类型的图片*/ - changeBundleVideo(spt: VideoPlayer, url: string, packageName: string, cb: Function = null) { - if (!spt || !url) return; - let spttemp:any = spt - spttemp.frameUrl = url - let bundle = assetManager.getBundle(packageName); - if (bundle){ - bundle.load(url, VideoClip, (err, res: VideoClip) => { - if (err) { - console.log(err); - return - } - if (!spt.isValid) { - return; - } - if (spttemp.frameUrl != url) { - return; - } - spt.clip = res; - //spt.spriteFrame = res; - cb && cb(res); - }); - }else{ - assetManager.loadBundle(packageName, (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.changeBundleVideo(spt, url, packageName, cb); - }); + let cc_N = instantiate(res); + cb && cb(cc_N); + }); + } else { + assetManager.loadBundle( + "Model3D", + (err: Error, _bundle: AssetManager.Bundle) => { + if (err) { + console.log(err); + return; + } + this.loadSubpackage3DModel(url, cb); } + ); } - /** 改变图片--bundle资源 sprite-frame类型的图片*/ - changeBundleSpriteFrame(spt: Sprite, url: string, packageName: string, cb: Function = null) { - if (!spt || !url) return; - let spttemp:any = spt - spttemp.frameUrl = url - let bundle = assetManager.getBundle(packageName); - if (bundle){ - bundle.load(url + "/spriteFrame", SpriteFrame, (err, res: SpriteFrame) => { - if (err) { - console.log(err); - return - } - if (!spt.isValid) { - return; - } - if (spttemp.frameUrl != url) { - return; - } - spt.spriteFrame = res; - cb && cb(res); - }); - }else{ - assetManager.loadBundle(packageName, (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.changeBundleSpriteFrame(spt, url, packageName, cb); - }); + } + + /** 改变图片--bundle资源 sprite-frame类型的图片*/ + changeBundleVideo( + spt: VideoPlayer, + url: string, + packageName: string, + cb: Function = null + ) { + if (!spt || !url) return; + let spttemp: any = spt; + spttemp.frameUrl = url; + let bundle = assetManager.getBundle(packageName); + if (bundle) { + bundle.load(url, VideoClip, (err, res: VideoClip) => { + if (err) { + console.log(err); + return; } - } - /** 改变图片--bundle资源 texture类型的图片*/ - changeBundleTexture(spt: Sprite, url: string, packageName: string, cb: Function = null) { - if (!spt || !url) return; - let bundle = assetManager.getBundle(packageName); - if (bundle){ - bundle.load(url + "/texture", Texture2D, (err, res: Texture2D) => { - if (err) { - console.log(err); - return - } - if (!spt.isValid) { - return; - } - let spriteFrame = new SpriteFrame() - spriteFrame.texture = res - spt.spriteFrame = spriteFrame; - cb && cb(res); - }); - }else{ - assetManager.loadBundle(packageName, (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.changeBundleTexture(spt, url, packageName, cb); - }); + if (!spt.isValid) { + return; } - } - - - /** 加载bundle中的音频文件*/ - getBundleAudio(url: string, cb) { - let bundle = assetManager.getBundle("Audio"); - if (bundle){ - bundle.load(url, AudioClip, (err, res: AudioClip) => { - if (err) { - console.log(err); - return - } - cb && cb(res); - }); - }else{ - assetManager.loadBundle("Audio", (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.getBundleAudio(url, cb); - }); + if (spttemp.frameUrl != url) { + return; } - } - - - /** 加载bundle中的配置表*/ - loadSubpackageDataTable(url: string, cb) { - let bundle = assetManager.getBundle("DataTable"); - if (bundle){ - bundle.load(url, JsonAsset, (err, res: JsonAsset) => { - if (err) { - console.log(err); - return - } - cb && cb(res); - }); - }else{ - assetManager.loadBundle("DataTable", (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.loadSubpackagePrefab(url, cb); - }); + spt.clip = res; + //spt.spriteFrame = res; + cb && cb(res); + }); + } else { + assetManager.loadBundle( + packageName, + (err: Error, _bundle: AssetManager.Bundle) => { + if (err) { + console.log(err); + return; + } + this.changeBundleVideo(spt, url, packageName, cb); } + ); } - - - ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - //region 加载远程音频 - /** 加载远程资源*/ - loadRemoteAudio(url: string, cb: Function = null) { - assetManager.loadRemote(url, (err, res: AudioClip) => { - if (err) { - console.error(err); - return - } - cb && cb(res); - }) + } + /** 改变图片--bundle资源 sprite-frame类型的图片*/ + changeBundleSpriteFrame( + spt: Sprite, + url: string, + packageName: string, + cb: Function = null + ) { + if (!spt || !url) return; + let spttemp: any = spt; + spttemp.frameUrl = url; + let bundle = assetManager.getBundle(packageName); + if (bundle) { + bundle.load( + url + "/spriteFrame", + SpriteFrame, + (err, res: SpriteFrame) => { + if (err) { + console.log(err); + return; + } + if (!spt.isValid) { + return; + } + if (spttemp.frameUrl != url) { + return; + } + spt.spriteFrame = res; + cb && cb(res); + } + ); + } else { + assetManager.loadBundle( + packageName, + (err: Error, _bundle: AssetManager.Bundle) => { + if (err) { + console.log(err); + return; + } + this.changeBundleSpriteFrame(spt, url, packageName, cb); + } + ); } + } + /** 改变图片--bundle资源 texture类型的图片*/ + changeBundleTexture( + spt: Sprite, + url: string, + packageName: string, + cb: Function = null + ) { + if (!spt || !url) return; + let bundle = assetManager.getBundle(packageName); + if (bundle) { + bundle.load(url + "/texture", Texture2D, (err, res: Texture2D) => { + if (err) { + console.log(err); + return; + } + if (!spt.isValid) { + return; + } + let spriteFrame = new SpriteFrame(); + spriteFrame.texture = res; + spt.spriteFrame = spriteFrame; + cb && cb(res); + }); + } else { + assetManager.loadBundle( + packageName, + (err: Error, _bundle: AssetManager.Bundle) => { + if (err) { + console.log(err); + return; + } + this.changeBundleTexture(spt, url, packageName, cb); + } + ); + } + } - /** 加载远程资源*/ - // private loadRemoteRes1(url1: string, suffix: string = 'png', cb) { - // let tempStrArr: Array = url1.split("."); - // let aimStr = url1; - // if (tempStrArr.length > 1) { - // aimStr = tempStrArr[0]; + /** 加载bundle中的音频文件*/ + getBundleAudio(url: string, cb) { + let bundle = assetManager.getBundle("Audio"); + if (bundle) { + bundle.load(url, AudioClip, (err, res: AudioClip) => { + if (err) { + console.log(err); + return; + } + cb && cb(res); + }); + } else { + assetManager.loadBundle( + "Audio", + (err: Error, _bundle: AssetManager.Bundle) => { + if (err) { + console.log(err); + return; + } + this.getBundleAudio(url, cb); + } + ); + } + } + + /** 加载bundle中的配置表*/ + loadSubpackageDataTable(url: string, cb) { + let bundle = assetManager.getBundle("DataTable"); + if (bundle) { + bundle.load(url, JsonAsset, (err, res: JsonAsset) => { + if (err) { + console.log(err); + return; + } + cb && cb(res); + }); + } else { + assetManager.loadBundle( + "DataTable", + (err: Error, _bundle: AssetManager.Bundle) => { + if (err) { + console.log(err); + return; + } + this.loadSubpackagePrefab(url, cb); + } + ); + } + } + + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + //region 加载远程音频 + /** 加载远程资源*/ + loadRemoteAudio(url: string, cb: Function = null) { + assetManager.loadRemote(url, (err, res: AudioClip) => { + if (err) { + console.error(err); + return; + } + cb && cb(res); + }); + } + + /** 加载远程资源*/ + // private loadRemoteRes1(url1: string, suffix: string = 'png', cb) { + // let tempStrArr: Array = url1.split("."); + // let aimStr = url1; + // if (tempStrArr.length > 1) { + // aimStr = tempStrArr[0]; + // } + // let url: string = `http://tk3h5.hgwl710.com/Fish/DEV/TS/Res/`; + // url += aimStr + '.' + suffix; + // if (url1.includes("://")) { url = url1 } + // assetManager.loadRemote(url, { cacheEnabled: true }, (err, res: ImageAsset) => { + // if (!err) { + // const spriteFrame = new SpriteFrame(); + // const texture = new Texture2D(); + // texture.image = res; + // spriteFrame.texture = texture; + // cb && cb(spriteFrame); + // } + // }) + // } + + /** 加载远程图片 */ + changeRemoteSpriteFrame(spt: Sprite, url: string, cb: Function = null) { + if (!spt || !url) return; + // 临时加了一个字段,用来保存当前加载的资源路径 + let spttemp: any = spt; + // 在异步回调时判断这个组件是不是还在加载同一个 url,避免多次调用时产生覆盖冲突 + spttemp.frameUrl = url; + // 加载 + assetManager.loadRemote(url, (err, res: ImageAsset) => { + console.log("changeRemoteSpriteFrame方法加载远程图片: ", url); + if (err) { + console.log(err); + return; + } + if (!spt.isValid) { + return; + } + if (spttemp.frameUrl != url) { + return; + } + const spriteFrame = new SpriteFrame(); + const texture = new Texture2D(); + texture.image = res; + spriteFrame.texture = texture; + spt.spriteFrame = spriteFrame; + cb && cb(res); + }); + } + + /** 加载远程视频 */ + loadRemoteVideo(spt: VideoPlayer, url: string, cb: Function = null) { + if (!spt || !url) return; + // // 临时加了一个字段,用来保存当前加载的资源路径 + // let spttemp:any = spt; + // // 在异步回调时判断这个组件是不是还在加载同一个 url,避免多次调用时产生覆盖冲突 + // spttemp.frameUrl = url; + // // 加载 + // assetManager.loadRemote(url, (err, res: VideoClip) => { + // console.log("加载远程视频: ", url); + // if (err) { + // console.error(err); + // return; // } - // let url: string = `http://tk3h5.hgwl710.com/Fish/DEV/TS/Res/`; - // url += aimStr + '.' + suffix; - // if (url1.includes("://")) { url = url1 } - // assetManager.loadRemote(url, { cacheEnabled: true }, (err, res: ImageAsset) => { - // if (!err) { - // const spriteFrame = new SpriteFrame(); - // const texture = new Texture2D(); - // texture.image = res; - // spriteFrame.texture = texture; - // cb && cb(spriteFrame); - // } - // }) - // } - - /** 加载远程图片 */ - changeRemoteSpriteFrame(spt: Sprite, url: string, cb: Function = null) { - if (!spt || !url) return; - // 临时加了一个字段,用来保存当前加载的资源路径 - let spttemp:any = spt; - // 在异步回调时判断这个组件是不是还在加载同一个 url,避免多次调用时产生覆盖冲突 - spttemp.frameUrl = url; - // 加载 - assetManager.loadRemote(url, (err, res: ImageAsset) => { - console.log("changeRemoteSpriteFrame方法加载远程图片: ", url); - if (err) { - console.log(err); - return - } - if (!spt.isValid) { - return; - } - if (spttemp.frameUrl != url) { - return; - } - const spriteFrame = new SpriteFrame(); - const texture = new Texture2D(); - texture.image = res; - spriteFrame.texture = texture; - spt.spriteFrame = spriteFrame; - cb && cb(res); - }) - } - - /** 加载远程视频 */ - loadRemoteVideo(spt: VideoPlayer, url: string, cb: Function = null) { - if (!spt || !url) return; - // // 临时加了一个字段,用来保存当前加载的资源路径 - // let spttemp:any = spt; - // // 在异步回调时判断这个组件是不是还在加载同一个 url,避免多次调用时产生覆盖冲突 - // spttemp.frameUrl = url; - // // 加载 - // assetManager.loadRemote(url, (err, res: VideoClip) => { - // console.log("加载远程视频: ", url); - // if (err) { - // console.error(err); - // return; - // } - // if (!spt.isValid) { - // return; - // } - // if (spttemp.frameUrl != url) { - // return; - // } - // spt.clip = res; - // cb && cb(res); - // }) + // if (!spt.isValid) { + // return; + // } + // if (spttemp.frameUrl != url) { + // return; + // } + // spt.clip = res; + // cb && cb(res); + // }) - console.log("loadRemoteVideo方法加载远程视频: ", url); - spt.resourceType = VideoPlayer.ResourceType.REMOTE; - spt.remoteURL = url; - cb && cb(null); - } + console.log("loadRemoteVideo方法加载远程视频: ", url); + spt.resourceType = VideoPlayer.ResourceType.REMOTE; + spt.remoteURL = url; + cb && cb(null); + } - ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - /** 加载resources里的PB path:不带后缀*/ - private loadResourcePrefab(path: string, cb) { - resources.load(path, Prefab, (err, res: Prefab) => { - if (!err) { - cb && cb(res); - } else { - // loader.rlease(path); - } - }) - } - /** 加载resources里的图片*/ - private loadResourceRes(path: string, cb) { - resources.load(path, ImageAsset, (err, res: ImageAsset) => { - if (err) { - console.log(err); - return - } - cb && cb(res); - }) - } - /** 加载resources里图集里的图片*/ - // 加载 SpriteAtlas(图集),并且获取其中的一个 SpriteFrame - // 注意 atlas 资源文件(plist)通常会和一个同名的图片文件(png)放在一个目录下, 所以需要在第二个参数指定资源类型 - private loadResourceAtlas(sptName: string, path: string, cb) { - resources.load(path, SpriteAtlas, (err, res: SpriteAtlas) => { - const frame = res.getSpriteFrame(sptName); - if (!err) { - cb && cb(frame); - } else { - // loader.release(path); - } + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + /** 加载resources里的PB path:不带后缀*/ + public loadResourcePrefab(path: string, cb) { + resources.load(path, Prefab, (err, res: Prefab) => { + if (!err) { + cb && cb(res); + } else { + // loader.rlease(path); + } + }); + } + /** 加载resources里的图片*/ + private loadResourceRes(path: string, cb) { + resources.load(path, ImageAsset, (err, res: ImageAsset) => { + if (err) { + console.log(err); + return; + } + cb && cb(res); + }); + } + /** 加载resources里图集里的图片*/ + // 加载 SpriteAtlas(图集),并且获取其中的一个 SpriteFrame + // 注意 atlas 资源文件(plist)通常会和一个同名的图片文件(png)放在一个目录下, 所以需要在第二个参数指定资源类型 + private loadResourceAtlas(sptName: string, path: string, cb) { + resources.load(path, SpriteAtlas, (err, res: SpriteAtlas) => { + const frame = res.getSpriteFrame(sptName); + if (!err) { + cb && cb(frame); + } else { + // loader.release(path); + } + }); + } + /** 改变图片--resources里sprite-frame类型的图片*/ + changeResourceSpriteFrame(spt: Sprite, path: string, cb: Function = null) { + if (!spt || !path) return; + resources.load( + path + "/spriteFrame", + SpriteFrame, + (err, res: SpriteFrame) => { + if (err) { + console.log(err); + return; + } + if (!spt.isValid) { + return; + } + + spt.spriteFrame = res; + cb && cb(res); + } + ); + } + /** 改变图片--resources里texture类型的图片*/ + changeResourceTexture(spt: Sprite, path: string, cb: Function = null) { + if (!spt || !path) return; + resources.load(path + "/texture", Texture2D, (err, res: Texture2D) => { + if (err) { + console.log(err); + return; + } + if (!spt.isValid) { + return; + } + + let spriteFrame = new SpriteFrame(); + spriteFrame.texture = res; + spt.spriteFrame = spriteFrame; + cb && cb(res); + }); + } + + //设置图片置灰 + SetGray(spt: Sprite, isGray: boolean) { + //cc.assetManager.builtins.getBuiltin("material", "builtin-" + name) + if (isGray) { + let bundle = assetManager.getBundle("Materials"); + if (bundle) { + bundle.load("ui_sprite_gray", Material, (err, res: Material) => { + if (err) { + console.log(err); + return; + } + // spt.setSharedMaterial(res, 0) + spt.customMaterial = res; }); - } - /** 改变图片--resources里sprite-frame类型的图片*/ - changeResourceSpriteFrame(spt: Sprite, path: string, cb: Function = null) { - if (!spt || !path) return; - resources.load(path + "/spriteFrame", SpriteFrame, (err, res: SpriteFrame) => { + } else { + assetManager.loadBundle( + "Materials", + (err: Error, _bundle: AssetManager.Bundle) => { if (err) { - console.log(err); - return + console.log(err); + return; } - if (!spt.isValid) { - return; - } - - spt.spriteFrame = res; - cb && cb(res); - }) + this.SetGray(spt, isGray); + } + ); + } + } else { + // spt.setSharedMaterial(null, 0) + spt.customMaterial = null; } - /** 改变图片--resources里texture类型的图片*/ - changeResourceTexture(spt: Sprite, path: string, cb: Function = null) { - if (!spt || !path) return; - resources.load(path + "/texture", Texture2D, (err, res: Texture2D) => { + } + + /**设置图片模糊*/ + SetBlur(spt: Sprite, isBule: boolean) { + if (isBule) { + let bundle = assetManager.getBundle("Materials"); + if (bundle) { + bundle.load("mohu", Material, (err, res: Material) => { + if (err) { + console.log(err); + return; + } + // spt.setSharedMaterial(res, 0) + spt.customMaterial = res; + }); + } else { + assetManager.loadBundle( + "Materials", + (err: Error, _bundle: AssetManager.Bundle) => { if (err) { - console.log(err); - return + console.log(err); + return; } - if (!spt.isValid) { - return; - } - - let spriteFrame = new SpriteFrame() - spriteFrame.texture = res - spt.spriteFrame = spriteFrame; - cb && cb(res); - }) + this.SetBlur(spt, isBule); + } + ); + } + } else { + // spt.setSharedMaterial(null, 0) + spt.customMaterial = null; } - - - //设置图片置灰 - SetGray(spt: Sprite, isGray: boolean) { - //cc.assetManager.builtins.getBuiltin("material", "builtin-" + name) - if (isGray) { - let bundle = assetManager.getBundle("Materials"); - if (bundle){ - bundle.load("ui_sprite_gray", Material, (err, res: Material) => { - if (err) { - console.log(err); - return - } - // spt.setSharedMaterial(res, 0) - spt.customMaterial = res - }); - }else{ - assetManager.loadBundle("Materials", (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.SetGray(spt, isGray); - }); - } - } else { - // spt.setSharedMaterial(null, 0) - spt.customMaterial = null - } - } - - - /**设置图片模糊*/ - SetBlur(spt: Sprite, isBule: boolean) { - if (isBule) { - let bundle = assetManager.getBundle("Materials"); - if (bundle){ - bundle.load("mohu", Material, (err, res: Material) => { - if (err) { - console.log(err); - return - } - // spt.setSharedMaterial(res, 0) - spt.customMaterial = res - }); - }else{ - assetManager.loadBundle("Materials", (err: Error, _bundle: AssetManager.Bundle) => { - if (err) { - console.log(err); - return - } - this.SetBlur(spt, isBule); - }); - } - } else { - // spt.setSharedMaterial(null, 0) - spt.customMaterial = null - } - } - + } } - - diff --git a/assets/Scripts/Sub/GameScene.ts b/assets/Scripts/Sub/GameScene.ts deleted file mode 100644 index e2e598d7..00000000 --- a/assets/Scripts/Sub/GameScene.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { _decorator, Camera, Component, Node } from "cc"; -import GameRootUI from "../Main/Common/GameRootUI"; - -const { ccclass, property } = _decorator; - -//游戏场景 -@ccclass('GameScene') -export class GameScene extends Component { - - @property(Node) - UIRoot: Node = null - @property(Node) - UILayerMod: Node = null - @property(Camera) - MainCamera: Camera = null - - start() { - //每个场景必须添加的 - let gameRootUI = this.node.getComponent(GameRootUI) - if (!gameRootUI){ - gameRootUI = this.node.addComponent(GameRootUI) - gameRootUI.InitByCreate(this.UIRoot, this.UILayerMod, "UI/GameUI/Game_UI"); - } - GameRootUI.MainCamera = this.MainCamera - } -} \ No newline at end of file diff --git a/assets/Scripts/Sub/GameScene.ts.meta b/assets/Scripts/Sub/GameScene.ts.meta deleted file mode 100644 index 5d04cfa1..00000000 --- a/assets/Scripts/Sub/GameScene.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "d9d41102-bfd6-4256-8356-bfca87f844ec", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/Scripts/Sub/MainScene.ts b/assets/Scripts/Sub/MainScene.ts index 1bdc8a4e..df22eace 100644 --- a/assets/Scripts/Sub/MainScene.ts +++ b/assets/Scripts/Sub/MainScene.ts @@ -14,7 +14,9 @@ export class MainScene extends Component { @property(Camera) MainCamera: Camera = null; - start() { + start() {} + + init() { //每个场景必须添加的 let gameRootUI = this.node.getComponent(GameRootUI); if (!gameRootUI) { @@ -22,7 +24,7 @@ export class MainScene extends Component { gameRootUI.InitByCreate(this.UIRoot, this.UILayerMod, "NavigationPanel"); } GameRootUI.MainCamera = this.MainCamera; - + // 初始化MainController并预加载数据 this.initMainController(); } diff --git a/assets/Scripts/Sub/UI/LoginUI.ts b/assets/Scripts/Sub/UI/LoginUI.ts deleted file mode 100644 index d99ffe54..00000000 --- a/assets/Scripts/Sub/UI/LoginUI.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { _decorator, Button, Component, Node } from "cc"; -import li_BaseView from "../../Main/Common/li_BaseView"; -import Utils from "../../Main/Common/Utils"; -import { GButton } from "../../Main/Common/GButton"; -import ResManager from "../../Main/Manager/ResManager"; -import { DataManager, DataId } from "../../chat18x/data/DataManager"; -import { LoginData } from "../../chat18x/data/LoginData"; -import { PlayerData } from "../../chat18x/data/PlayerData"; -import { AccountData } from "../../chat18x/data/AccountData"; -import { WalletData } from "../../chat18x/data/WalletData"; -import { GlobalData } from "../../chat18x/data/GlobalData"; -import { EnvData } from "../../chat18x/data/EnvData"; -import DeviceIdService from "db://assets/Scripts/chat18x/foundation/identity/DeviceIdService"; -import MachineInfoService from "db://assets/Scripts/chat18x/foundation/identity/MachineInfoService"; -import { AuthService } from "db://assets/Scripts/chat18x/network/services/AuthService"; -import { PlayerDataService } from "db://assets/Scripts/chat18x/network/services/PlayerDataService"; -import { CommonService } from "db://assets/Scripts/chat18x/network/services/CommonService"; -import proto from "db://assets/Scripts/proto/proto.pb.js"; -const { ccclass, property } = _decorator; - -@ccclass("LoginUI") -export class LoginUI extends li_BaseView { - private _nodeTab: any = {}; - private loginFinish = false; - - loginBtn: Node; - protected start(): void { - Utils.parseNode(this.node, this._nodeTab); - - this.loginBtn = this._nodeTab.btnLogin; - - GButton.BandClick(this.loginBtn, this.onLogin, this); - } - - update(deltaTime: number) { - if (this.loginFinish) { - this.loginFinish = false; - this.enterGame(); - } - } - - async onLogin() { - const deviceId = DeviceIdService.I.id; - const os = MachineInfoService.I.getMachineOs(); - const reqData = { - platType: "guest", - userId: deviceId, - device: deviceId, - os, - }; - console.log("登录请求数据:", reqData); - let res = await AuthService.I.login(reqData); - console.log("登录响应数据:", res); - if (res && res.code === proto.cs.EnmRetCode.SUCCESS) { - const resData = res.data; - const loginData = DataManager.I.getDataById(DataId.Login); - loginData.token = resData.token; - loginData.refreshToken = resData.refreshToken; - loginData.expire = Number(resData.expire); - const playerData = DataManager.I.getDataById(DataId.Player); - playerData.name = resData.name; - const accountData = DataManager.I.getDataById( - DataId.Account - ); - accountData.accId = resData.accId; - const envData = DataManager.I.getDataById(DataId.Env); - envData.cdn = resData.cdn; - - this.loginFinish = true; - this.reqMyInfo(); - this.reqGlobalData(); - } - } - - // 请求个人数据 - private async reqMyInfo() { - const reqData = {}; - let res = await PlayerDataService.I.reqMyInfo(reqData); - console.log("个人信息响应数据:", res); - if (res && res.code === proto.cs.EnmRetCode.SUCCESS) { - const resData = res.data; - const walletData = DataManager.I.getDataById(DataId.Wallet); - walletData.balance = Number(resData.balance); - walletData.vipExpire = Number(resData.vipExpire); - } - } - - // 请求全局数据 - private async reqGlobalData() { - const reqData = { - resName: "TbGlobalConfig", - }; - let res = await CommonService.I.reqResConfig(reqData); - if (res && res.code === proto.cs.EnmRetCode.SUCCESS) { - // 保存数据 - const globalData = DataManager.I.getDataById(DataId.Global); - globalData.globals = res.data; - } - } - - private enterGame() { - ResManager.I.goMainScene(); - } -} diff --git a/assets/Scripts/Sub/UI/LoginUI.ts.meta b/assets/Scripts/Sub/UI/LoginUI.ts.meta deleted file mode 100644 index d2d59fe1..00000000 --- a/assets/Scripts/Sub/UI/LoginUI.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "0fa6dc01-de0d-4847-ae6c-624111814d80", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/Scripts/Sub/UI/PreloadUI.ts b/assets/Scripts/Sub/UI/PreloadUI.ts index 0f5dc35d..6edb43d2 100644 --- a/assets/Scripts/Sub/UI/PreloadUI.ts +++ b/assets/Scripts/Sub/UI/PreloadUI.ts @@ -6,6 +6,7 @@ import { Button, Component, ImageAsset, + instantiate, JsonAsset, Label, Material, @@ -25,22 +26,48 @@ import Utils from "../../Main/Common/Utils"; import { InnerMsgCode } from "../../Main/Config/InnerMsgCode"; import { promptItem } from "../Item/promptItem"; import LanguageUtils, { LanguageType } from "../../Main/Common/LanguageUtils"; -import { DataManager } from "../../chat18x/data/DataManager"; +import { DataId, DataManager } from "../../chat18x/data/DataManager"; import { ConfigManager } from "../../chat18x/manager/ConfigManager"; import { AppConfig } from "db://assets/Scripts/chat18x/config/env/appConfig"; import DeviceIdService from "db://assets/Scripts/chat18x/foundation/identity/DeviceIdService"; +import { AccountData } from "../../chat18x/data/AccountData"; +import { EnvData } from "../../chat18x/data/EnvData"; +import { GlobalData } from "../../chat18x/data/GlobalData"; +import { LoginData } from "../../chat18x/data/LoginData"; +import { PlayerData } from "../../chat18x/data/PlayerData"; +import { WalletData } from "../../chat18x/data/WalletData"; +import MachineInfoService from "../../chat18x/foundation/identity/MachineInfoService"; +import { AuthService } from "../../chat18x/network/services/AuthService"; +import { CommonService } from "../../chat18x/network/services/CommonService"; +import { PlayerDataService } from "../../chat18x/network/services/PlayerDataService"; +import proto from "db://assets/Scripts/proto/proto.pb.js"; +import { ViewManager } from "../../Main/Manager/ViewManager"; +import { MainScene } from "../MainScene"; const { ccclass, property } = _decorator; @ccclass("PreloadUI") export class PreloadUI extends Component { - private preloadFinish = false; //资源加载完成 + @property(MainScene) + mainScene: MainScene = null; + private _nodeTab: any = {}; + + private preloadFinish = false; //资源加载完成 + private loginFinish = false; //登录完成 + + loginBtn: Node; private jinduBar: Node = null; private jinduFilled: Sprite = null; start() { //Utils.addInnerEL(InnerMsgCode.UI_ShowPrompt, this, this.resiveShowPrompt) + Utils.parseNode(this.node, this._nodeTab); + + this.loginBtn = this._nodeTab.btnLogin; + this.loginBtn.active = false; + + GButton.BandClick(this.loginBtn, this.onLogin, this); this.jinduBar = this.node.getChildByName("jinduBar"); this.jinduFilled = this.jinduBar @@ -48,8 +75,8 @@ export class PreloadUI extends Component { .getComponent(Sprite); //适配背景图 - let BG = this.node.getChildByName("BG"); - Utils.adjustBgPixelRatio(BG, 1); + //let BG = this.node.getChildByName("BG"); + //Utils.adjustBgPixelRatio(BG, 1); this.jinduFilled.fillRange = 0; @@ -77,9 +104,16 @@ export class PreloadUI extends Component { } update(deltaTime: number) { - if (this.preloadFinish) { + if (!this.preloadFinish) { + return; + //this.goToLoginScene(); + } + + if (this.loginFinish) { + this.loginFinish = false; this.preloadFinish = false; - this.goToLoginScene(); + + this.enterGame(); } } @@ -100,25 +134,6 @@ export class PreloadUI extends Component { { path: "ChatPanel", bundleName: "Chat18x", ftype: Prefab }, { path: "GirlDetailPanel", bundleName: "Chat18x", ftype: Prefab }, { path: "GirlListPanel", bundleName: "Chat18x", ftype: Prefab }, - // {path:"Music/music_interface", bundleName: "Audio", ftype: AudioClip}, - // {path:"bg/mengli_stage_bg", bundleName: "Raw", ftype: ImageAsset}, - // {path:"cg0/mengli_0_cg", bundleName: "Raw", ftype: ImageAsset}, - // {path:"cg1/mengli_1_cg", bundleName: "Raw", ftype: ImageAsset}, - // {path:"cg2/mengli_2_cg", bundleName: "Raw", ftype: ImageAsset}, - // {path:"cg3/mengli_3_cg", bundleName: "Raw", ftype: ImageAsset}, - // {path:"emo_1/mengli_shy", bundleName: "Raw", ftype: ImageAsset}, - // {path:"emo_2/mengli_laugh", bundleName: "Raw", ftype: ImageAsset}, - // {path:"emo_3/mengli_disgust", bundleName: "Raw", ftype: ImageAsset}, - // {path:"role/mengli_default", bundleName: "Raw", ftype: ImageAsset}, - // {path:"Zjm/raw1", bundleName: "Raw", ftype: ImageAsset}, - // {path:"touming", bundleName: "common", ftype: ImageAsset}, - // // {path:"chanpin_1_0", bundleName: "daoju", ftype: ImageAsset}, //有合图加载失败 - // {path:"zjm_1", bundleName: "Zhujiemian", ftype: ImageAsset}, - // {path:"zjm_19", bundleName: "Zhujiemian", ftype: ImageAsset}, - // {path:"zjm_30", bundleName: "Zhujiemian", ftype: ImageAsset}, - // {path:"mohu", bundleName: "Materials", ftype: Material}, - // {path:"UI/Cross/Cross_UI", bundleName: "PB", ftype: Prefab}, - // {path:"UI/StartUI/Start_UI", bundleName: "PB", ftype: Prefab}, { path: "tblanguage", bundleName: "DataTable", ftype: BufferAsset }, ]; let num_prefab = 0; //已加载数量 @@ -145,7 +160,7 @@ export class PreloadUI extends Component { ); } else { if (num_succeed >= num_prefab) { - this.loadDataTable(); + this.startloginProcess(); } } }; @@ -153,29 +168,10 @@ export class PreloadUI extends Component { } //加载配置表 - loadDataTable() { - let dataArr = [ - //"commonGlobal", - // "levelHole", - //"Music", - //"Sound", - ]; - - //配置表使用方法: let cfgs = Resource.getConfig("Sound") - let num_prefab = 0; - let preloadFunc = () => { - if (num_prefab < dataArr.length) { - let cfgname = dataArr[num_prefab]; - ResManager.I.loadSubpackageDataTable(cfgname, (ret: JsonAsset) => { - num_prefab++; - Resource.addSubJsonConfig(cfgname, ret.json); - preloadFunc(); - }); - } else { - this.preloadFinish = true; - } - }; - preloadFunc(); + startloginProcess() { + this.jinduBar.active = false; + this.preloadFinish = true; + this.loginBtn.active = true; } //显示加载进度 @@ -184,8 +180,73 @@ export class PreloadUI extends Component { } // 跳转到登录场景 - private goToLoginScene() { - this.jinduBar.active = false; - ResManager.I.goCustomScene("LoginScene"); + // private goToLoginScene() { + // this.jinduBar.active = false; + // ResManager.I.goCustomScene("LoginScene"); + // } + + async onLogin() { + const deviceId = DeviceIdService.I.id; + const os = MachineInfoService.I.getMachineOs(); + const reqData = { + platType: "guest", + userId: deviceId, + device: deviceId, + os, + }; + console.log("登录请求数据:", reqData); + let res = await AuthService.I.login(reqData); + console.log("登录响应数据:", res); + if (res && res.code === proto.cs.EnmRetCode.SUCCESS) { + const resData = res.data; + const loginData = DataManager.I.getDataById(DataId.Login); + loginData.token = resData.token; + loginData.refreshToken = resData.refreshToken; + loginData.expire = Number(resData.expire); + const playerData = DataManager.I.getDataById(DataId.Player); + playerData.name = resData.name; + const accountData = DataManager.I.getDataById( + DataId.Account + ); + accountData.accId = resData.accId; + const envData = DataManager.I.getDataById(DataId.Env); + envData.cdn = resData.cdn; + + this.loginFinish = true; + this.reqMyInfo(); + this.reqGlobalData(); + } + } + + // 请求个人数据 + private async reqMyInfo() { + const reqData = {}; + let res = await PlayerDataService.I.reqMyInfo(reqData); + console.log("个人信息响应数据:", res); + if (res && res.code === proto.cs.EnmRetCode.SUCCESS) { + const resData = res.data; + const walletData = DataManager.I.getDataById(DataId.Wallet); + walletData.balance = Number(resData.balance); + walletData.vipExpire = Number(resData.vipExpire); + } + } + + // 请求全局数据 + private async reqGlobalData() { + const reqData = { + resName: "TbGlobalConfig", + }; + let res = await CommonService.I.reqResConfig(reqData); + if (res && res.code === proto.cs.EnmRetCode.SUCCESS) { + // 保存数据 + const globalData = DataManager.I.getDataById(DataId.Global); + globalData.globals = res.data; + } + } + + private enterGame() { + this.mainScene.init(); + this.node.destroy(); + //ResManager.I.goMainScene(); } }