Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interactiveGames_Level
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuxing@jiuaoedu.com
interactiveGames_Level
Commits
a4390be3
Commit
a4390be3
authored
Nov 01, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击后形成格子好了
parent
27c491aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
AdjacentArray.scene
...sceneBundle/games/adjacentArray/scene/AdjacentArray.scene
+4
-1
AdjacentArrayCtr.ts
...ceneBundle/games/adjacentArray/script/AdjacentArrayCtr.ts
+1
-2
No files found.
assets/sceneBundle/games/adjacentArray/scene/AdjacentArray.scene
View file @
a4390be3
...
...
@@ -1040,7 +1040,10 @@
"__uuid__": "69f70b78-4aed-4f84-b360-9e0dc59da4f7",
"__expectedType__": "cc.Prefab"
},
"gridPre": null,
"gridPre": {
"__uuid__": "d02f07b8-737a-4b88-b0b5-702256fe7f06",
"__expectedType__": "cc.Prefab"
},
"countdownLab": null,
"totalTime": 0,
"_id": "17m3iEoEhL27CwezZv9cwb"
...
...
assets/sceneBundle/games/adjacentArray/script/AdjacentArrayCtr.ts
View file @
a4390be3
...
...
@@ -155,8 +155,7 @@ export class AdjacentArrayCtr extends Component {
this
.
itemPosArrNode
.
addChild
(
clickNode
);
clickNode
.
layer
=
1
<<
25
;
clickNode
.
on
(
Node
.
EventType
.
TOUCH_END
,
this
.
onGridClick
,
this
);
let
gridSpr
=
new
Node
().
addComponent
(
Sprite
);
gridSpr
.
color
=
new
Color
(
255
,
0
,
0
,
255
);
let
gridSpr
=
instantiate
(
this
.
gridPre
).
getComponent
(
Sprite
)
!
;
gridSpr
.
node
.
getComponent
(
UITransform
)
!
.
width
=
this
.
itemWidth
*
2
+
this
.
itemSpaceX
;
gridSpr
.
node
.
getComponent
(
UITransform
)
!
.
height
=
this
.
itemHeight
;
gridSpr
.
node
.
layer
=
1
<<
25
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment