Commit 33b9d065 authored by yu's avatar yu

文件名称

parent df199436
......@@ -307,7 +307,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "a1GjpGzJdD65Biy/y88Sq8",
"sync": false
......@@ -444,7 +444,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "afaLDsGNdF8rTS2GfZ3h3s",
"sync": false
......@@ -546,7 +546,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "24ejo0WoZJxpoRK40tkCN+",
"sync": false
......@@ -648,7 +648,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "42DCsVISJGIKgyDyhKrDpv",
"sync": false
......@@ -793,7 +793,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "4cZmgdmo1Az6QuveaZ6W/3",
"sync": false
......@@ -933,7 +933,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "8bJSQRyJRA0Jkcc+8GY5Do",
"sync": false
......@@ -1144,7 +1144,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "1coIwLNVZGEZEzF3dItpuK",
"sync": false
......@@ -1231,7 +1231,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "55nJZ9Uk5CArtjDKXyL9xa",
"sync": false
......@@ -1414,7 +1414,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "eauguU1wtOrbhO0xPWGhAt",
"sync": false
......@@ -1589,7 +1589,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "60BI1U1b9OoZRIDunWHW0a",
"sync": false
......@@ -1622,7 +1622,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "5cd2Jos1dOS46NiARvN6qg",
"sync": false
......@@ -1729,7 +1729,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "8aSOlD3bNAYbWZEGUBpU7X",
"sync": false
......@@ -1836,7 +1836,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "ddBCn3FshPQ4V9KDNSlBfr",
"sync": false
......@@ -1946,7 +1946,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "6anh4wjaRPMqyS2LhXSx4j",
"sync": false
......@@ -1957,7 +1957,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "f9qrJyDh5P1oErn3FfsNL7",
"sync": false
......@@ -2115,7 +2115,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "24pM39t0xAcpeV3Rbf7iK5",
"sync": false
......@@ -2126,7 +2126,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "28B+az6rRACpZT/KUohVaz",
"sync": false
......@@ -2159,7 +2159,7 @@
"_id": ""
},
{
"__type__": "ed40a8PbYdCDYoyW/46QqC7",
"__type__": "dd1f1Ae4z1HPL3RhGvG8lal",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -2174,7 +2174,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "eeb30776-64d3-4ec2-962b-a1f4bee3b27d"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"fileId": "",
"sync": false
......
{
"ver": "1.2.9",
"uuid": "ea29d7ab-a9ca-4501-aaba-ee96789843d1",
"uuid": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
......
{
"ver": "1.0.8",
"uuid": "72d2fadf-ee6a-43f2-b21a-5a1087fde153",
"uuid": "6f1789a6-a222-4fe3-bde0-2e9367c5cfe8",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
......@@ -286,7 +286,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "a2lcBX6axJcYgWizPAwXJQ",
"sync": false
......@@ -565,7 +565,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "2dFg2BRxNDIbzNQUJzInwD",
"sync": false
......@@ -773,7 +773,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "426YGeaQ1GSqxAl0es/FZ5",
"sync": false
......@@ -816,7 +816,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "1bsWjap9JK84XN2hkYfXDb",
"sync": false
......@@ -849,7 +849,7 @@
"_id": ""
},
{
"__type__": "72d2frf7mpD8rIaWhCH/eFT",
"__type__": "6f178mmoiJP473gLpNnxc/o",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -864,7 +864,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "",
"sync": false
......
{
"ver": "1.2.9",
"uuid": "359db7a9-6c66-4325-a51f-831118e6405f",
"uuid": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
......
{
"ver": "1.0.8",
"uuid": "1a3d1033-e1b7-4186-a90b-ed9216ed04bc",
"uuid": "9cf6bab4-0bcc-4116-8223-60fa87d10c4f",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
......@@ -2914,7 +2914,7 @@
"_id": "0eNv2wyGNGpJpZXRZokVOq"
},
{
"__type__": "1a3d1Az4bdBhqkL7ZIW7QS8",
"__type__": "9cf6bq0C8xBFoIjYPqH0QxP",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -2925,7 +2925,7 @@
"idx": "1",
"word": "june",
"jump": "7",
"_id": "a9EEoqY8FEVIh0K35xWpbb"
"_id": "f0smVpCuVLZrAS6cV5+4OT"
},
{
"__type__": "cc.Node",
......@@ -3965,7 +3965,7 @@
"_id": "62PgHLW79J4Lhg4yX6NQGl"
},
{
"__type__": "1a3d1Az4bdBhqkL7ZIW7QS8",
"__type__": "9cf6bq0C8xBFoIjYPqH0QxP",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -3976,7 +3976,7 @@
"idx": "12",
"word": "mule",
"jump": "20",
"_id": "bbaFwstH9OSqFhXLxPFupY"
"_id": "f6jxF/PQJJ5pnM31vsWC7F"
},
{
"__type__": "cc.Node",
......@@ -4076,7 +4076,7 @@
"_id": "30gUdHhTZKr5prkLCrehkU"
},
{
"__type__": "1a3d1Az4bdBhqkL7ZIW7QS8",
"__type__": "9cf6bq0C8xBFoIjYPqH0QxP",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -4087,7 +4087,7 @@
"idx": "13",
"word": "cute",
"jump": "8",
"_id": "fcO6N+YXJHkry+1uBXmpbR"
"_id": "ccDE3y7i5AFrwagxDrCCcq"
},
{
"__type__": "cc.Node",
......@@ -4563,7 +4563,7 @@
"_id": "bbs5DWg7FP0ZkC4V2IIM3i"
},
{
"__type__": "1a3d1Az4bdBhqkL7ZIW7QS8",
"__type__": "9cf6bq0C8xBFoIjYPqH0QxP",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -4574,7 +4574,7 @@
"idx": "18",
"word": "rope",
"jump": "15",
"_id": "0frAZAiI5GiauKt5ot9wt9"
"_id": "afuFtQEp5Dz7DAT4RTDOw6"
},
{
"__type__": "cc.Node",
......@@ -4862,7 +4862,7 @@
"_id": "54rKtPwmBBd5iMPk0tmzz5"
},
{
"__type__": "1a3d1Az4bdBhqkL7ZIW7QS8",
"__type__": "9cf6bq0C8xBFoIjYPqH0QxP",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -4873,7 +4873,7 @@
"idx": "21",
"word": "sail",
"jump": "10",
"_id": "023xc21iNN4bcY5K+LkID1"
"_id": "61Of9c4iZL8aMe8ZsNU9Cs"
},
{
"__type__": "cc.Node",
......@@ -9464,7 +9464,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "72C22cBvpIHJeqbjpKzYUv"
"_id": "53s3VpxDJAI6ctIUOd//6u"
},
{
"__type__": "cc.Node",
......@@ -9534,7 +9534,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e87Ggqo85HkoLdm5YqONNO"
"_id": "c8wg6gKVFLLY2aK9SHyL4e"
},
{
"__type__": "cc.Sprite",
......@@ -9566,7 +9566,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "eaVBC2+oNLK7smnTHCJQmm"
"_id": "f3tktDgRZOOZOBq/rPYG1B"
},
{
"__type__": "cc.Widget",
......@@ -9593,7 +9593,7 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_id": "54tjHRt6dF45WVrMw/Qldi"
"_id": "deBzz8aeNASYiJ1HV0IOCQ"
},
{
"__type__": "cc.Button",
......@@ -9661,7 +9661,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "5cBZCA0pFLK7Bicx5tDTT1"
"_id": "e0QB3QArhLUbxtVSl3ppLv"
},
{
"__type__": "cc.PrefabInfo",
......@@ -9669,7 +9669,7 @@
"__id__": 194
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "a2lcBX6axJcYgWizPAwXJQ",
"sync": false
......@@ -9743,7 +9743,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "2cy2QB+3pPB4QGS4ogoSdK"
"_id": "36k5xrXLlN4ZdWZzCo8W59"
},
{
"__type__": "cc.Node",
......@@ -9813,7 +9813,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b4CTFGOgRJSJo+8wK+XNh1"
"_id": "5f9ZECuC5I/7voYPQFOjvV"
},
{
"__type__": "cc.Sprite",
......@@ -9845,7 +9845,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "59/v/1cspLOrYiZ3YMzI5j"
"_id": "201kECJzJBt6cu4kQtDmAG"
},
{
"__type__": "cc.Widget",
......@@ -9872,7 +9872,7 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "35t8Q1fENODJWin601idcm"
"_id": "65+gQvV31CEq1EZ6qfsCqP"
},
{
"__type__": "cc.Button",
......@@ -9940,7 +9940,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "f0GF8UWp5JzZAMhMP8GaLW"
"_id": "64vETHJ4tOsIbjUYzTFMlx"
},
{
"__type__": "cc.PrefabInfo",
......@@ -9948,7 +9948,7 @@
"__id__": 194
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "2dFg2BRxNDIbzNQUJzInwD",
"sync": false
......@@ -10021,7 +10021,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e4/Kq8kFNAcpEjxeRpbQGZ"
"_id": "c99O4mxRJCp4Oz2t8WqTud"
},
{
"__type__": "cc.Sprite",
......@@ -10053,7 +10053,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "afP8CaOwFFXJeOp8+gydyD"
"_id": "a8s7IzZe9Ib6ipz+yvwJtH"
},
{
"__type__": "cc.Widget",
......@@ -10080,7 +10080,7 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "afR8KNFx1HVK6YbXQyCx0/"
"_id": "d6LrPDzo1EFoVt5/6BNcJI"
},
{
"__type__": "cc.Button",
......@@ -10148,7 +10148,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "01Gq4VRMtH54x5d/qNjCD6"
"_id": "06LVdMSWhCDIf9CqADHLj6"
},
{
"__type__": "cc.PrefabInfo",
......@@ -10156,7 +10156,7 @@
"__id__": 194
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "426YGeaQ1GSqxAl0es/FZ5",
"sync": false
......@@ -10191,7 +10191,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "231CoouRtOa4FNyUstpYl4"
"_id": "f8p2pR1xZITYySC5Eftbx1"
},
{
"__type__": "cc.PrefabInfo",
......@@ -10199,7 +10199,7 @@
"__id__": 194
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "1bsWjap9JK84XN2hkYfXDb",
"sync": false
......@@ -10229,17 +10229,17 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "0bRMt2vnZPnpd9xunK+k1T"
"_id": "94Q0Exz8ZETIKBl2stynS3"
},
{
"__type__": "72d2frf7mpD8rIaWhCH/eFT",
"__type__": "6f178mmoiJP473gLpNnxc/o",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 194
},
"_enabled": true,
"_id": "f1HtC+YZ9Jq7qaM4EidkGP"
"_id": "6axpTwPhxGA7UM3Bg4s2pe"
},
{
"__type__": "cc.PrefabInfo",
......@@ -10247,7 +10247,7 @@
"__id__": 194
},
"asset": {
"__uuid__": "359db7a9-6c66-4325-a51f-831118e6405f"
"__uuid__": "df9d8f95-e1bf-4bf5-9cc9-3268c77de1c6"
},
"fileId": "",
"sync": false
......@@ -11002,7 +11002,7 @@
},
"_enabled": true,
"loadingLayerPrefab": {
"__uuid__": "ea29d7ab-a9ca-4501-aaba-ee96789843d1"
"__uuid__": "73d8439d-e30a-4b3e-a664-3a1eaa7fca9a"
},
"_id": "eaTVUpqahPfZeO9+sUI7RP"
},
......
......@@ -116,9 +116,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
addComponents() {
cc.find('Canvas/bg/chessBoard/boardItems').children.forEach(node => {
let itemData = node.getComponent("BoardGame2_ItemData_i");
let itemData = node.getComponent("BoardGame2_ItemData_hole");
if (!itemData) {
itemData = node.addComponent('BoardGame2_ItemData_i');
itemData = node.addComponent('BoardGame2_ItemData_hole');
let name = node.name;
console.log(name);
if (name == 'start' || name == 'end') {
......@@ -137,7 +137,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
getJumpList() {
const jumpList = [];
cc.find('Canvas/bg/chessBoard/boardItems').children.forEach(node => {
const itemData = node.getComponent("BoardGame2_ItemData_i");
const itemData = node.getComponent("BoardGame2_ItemData_hole");
if (itemData.jump) {
const from = itemData.idx;
const to = itemData.jump;
......@@ -509,7 +509,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// console.log("startIdx = " + JSON.stringify(startIdx));
for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData_i");
const itemData = targetNode.getComponent("BoardGame2_ItemData_hole");
if (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
return targetNode;
......@@ -536,7 +536,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const startIdx = this._status[this._status.current];
for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData_i");
const itemData = targetNode.getComponent("BoardGame2_ItemData_hole");
if (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
return i;
}
......@@ -550,7 +550,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData_i");
const itemData = targetNode.getComponent("BoardGame2_ItemData_hole");
if (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
if (targetNode.getBoundingBox().intersects(node.getBoundingBox())) {
......@@ -775,7 +775,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const letterList = [];
for (let i = startIdx + 1; i < board.children.length - 1; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData_i");
const itemData = targetNode.getComponent("BoardGame2_ItemData_hole");
const nodeLetter = itemData.letter.toUpperCase();
if (!letterList.find((letter) => letter == nodeLetter)) {
letterList.push(nodeLetter);
......@@ -944,7 +944,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let idx = this.getNextRightIdx();
const pieceRed = cc.find("Canvas/bg/chessBoard/pieceRed");
const pieceBlue = cc.find("Canvas/bg/chessBoard/pieceBlue");
const riData = rightBlock.getComponent("BoardGame2_ItemData_i");
const riData = rightBlock.getComponent("BoardGame2_ItemData_hole");
if (riData.jump != "") {
rightBlock = this.jumpBlock(parseInt(riData.jump));
let idx = parseInt(riData.jump);//this.getNextRightIdx();
......@@ -971,7 +971,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pieceBlue["cantMove"] = false;
// await this.pieceFindRightBlock(rightBlock, idx);
const riData = rightBlock.getComponent("BoardGame2_ItemData_i");
const riData = rightBlock.getComponent("BoardGame2_ItemData_hole");
if (riData.jump != "") {
rightBlock = this.jumpBlock(parseInt(riData.jump));
idx = parseInt(riData.jump);//this.getNextRightIdx();
......@@ -1328,7 +1328,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// for (let i = startIdx + 1; i < board.children.length; i++) {
// const targetNode = board.children[i];
// const itemData = targetNode.getComponent("BoardGame2_ItemData_i");
// const itemData = targetNode.getComponent("BoardGame2_ItemData_hole");
// const prograssbar = cc.find(
// `Canvas/bg/Life${color.toLowerCase()}/life_${color.toLowerCase()}/mask/prograssbar`
......
......@@ -81,7 +81,7 @@ export class AI {
const startIdx = this._status[this._status.current];
for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData_i");
const itemData = targetNode.getComponent("BoardGame2_ItemData_hole");
if (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
return i;
}
......
{
"ver": "1.0.8",
"uuid": "ed40af0f-6d87-420d-8a32-5bfe3a42a0bb",
"uuid": "dd1f101e-e33d-473c-bdd1-846bc6f256a5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
......@@ -224,7 +224,7 @@ export class GameServer {
const letterList = [];
for (let i = startIdx + 1; i < board.children.length - 1; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData_i");
const itemData = targetNode.getComponent("BoardGame2_ItemData_hole");
const nodeLetter = itemData.letter.toUpperCase();
if (!letterList.find((letter) => letter == nodeLetter)) {
letterList.push(nodeLetter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment