Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
T
tuseGameColor
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shujianhe
tuseGameColor
Commits
a2399e6b
Commit
a2399e6b
authored
Aug 23, 2023
by
lijin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手机点击BUG
parent
e4181be5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13792 additions
and
6 deletions
+13792
-6
MainData.cs
Assets/GameMgr/MainData.cs
+2
-6
AotStubs.cs
...isualScripting.Generated/VisualScripting.Core/AotStubs.cs
+13790
-0
No files found.
Assets/GameMgr/MainData.cs
View file @
a2399e6b
...
@@ -71,9 +71,7 @@ public class MainData : MonoBehaviour
...
@@ -71,9 +71,7 @@ public class MainData : MonoBehaviour
//涂过了,或点击到线
//涂过了,或点击到线
if
(
png
.
GetPixel
((
int
)
v
.
x
,
(
int
)
v
.
y
)
!=
Color
.
white
)
{
return
false
;
}
if
(
png
.
GetPixel
((
int
)
v
.
x
,
(
int
)
v
.
y
)
!=
Color
.
white
)
{
return
false
;
}
int
index
=
(
int
)(
v
.
x
+
v
.
y
*
json
.
width
);
//图内像素坐标转图内像素索引
Color
c
=
map
.
GetPixel
((
int
)
v
.
x
,
(
int
)
v
.
y
);
//点击的点阵数据:rgba,rg为房间ID,ba为组ID
Color
[]
c_map
=
map
.
GetPixels
();
//点阵数据
Color
c
=
c_map
[
index
];
//点击的点阵数据:rgba,rg为房间ID,ba为组ID
int
roomId
=
ResJsonData
.
ColorToV
(
c
).
x
;
int
roomId
=
ResJsonData
.
ColorToV
(
c
).
x
;
RoomDatas
rd
=
json
.
roomDatas
[
roomId
];
RoomDatas
rd
=
json
.
roomDatas
[
roomId
];
//涂过了
//涂过了
...
@@ -108,9 +106,7 @@ public class MainData : MonoBehaviour
...
@@ -108,9 +106,7 @@ public class MainData : MonoBehaviour
//涂过了,或点击到线
//涂过了,或点击到线
if
(
png
.
GetPixel
((
int
)
v
.
x
,
(
int
)
v
.
y
)
!=
Color
.
white
)
{
return
;
}
if
(
png
.
GetPixel
((
int
)
v
.
x
,
(
int
)
v
.
y
)
!=
Color
.
white
)
{
return
;
}
int
index
=
(
int
)(
v
.
x
+
v
.
y
*
json
.
width
);
//图内像素坐标转图内像素索引
Color
c
=
map
.
GetPixel
((
int
)
v
.
x
,
(
int
)
v
.
y
);
//点击的点阵数据:rgba,rg为房间ID,ba为组ID
Color
[]
c_map
=
map
.
GetPixels
();
//点阵数据
Color
c
=
c_map
[
index
];
//点击的点阵数据:rgba,rg为房间ID,ba为组ID
int
groupId
=
ResJsonData
.
ColorToV
(
c
).
y
;
int
groupId
=
ResJsonData
.
ColorToV
(
c
).
y
;
ChooseGroup
(
groupId
);
ChooseGroup
(
groupId
);
}
}
...
...
Assets/Unity.VisualScripting.Generated/VisualScripting.Core/AotStubs.cs
0 → 100644
View file @
a2399e6b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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