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
0afe8bd5
Commit
0afe8bd5
authored
Aug 22, 2023
by
lijin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
組按鈕BUG
parent
24ad9062
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
GameEditor.cs
Assets/Editor/GameEditor.cs
+6
-3
MainData.cs
Assets/GameMgr/MainData.cs
+0
-1
No files found.
Assets/Editor/GameEditor.cs
View file @
0afe8bd5
...
@@ -52,8 +52,11 @@ public class GameEditor
...
@@ -52,8 +52,11 @@ public class GameEditor
Color
[]
c
=
rd
.
png
.
GetPixels
();
Color
[]
c
=
rd
.
png
.
GetPixels
();
rd
.
png
=
new
Texture2D
(
rd
.
png
.
width
,
rd
.
png
.
height
,
rd
.
png
.
format
,
false
);
rd
.
png
=
new
Texture2D
(
rd
.
png
.
width
,
rd
.
png
.
height
,
rd
.
png
.
format
,
false
);
rd
.
png
.
SetPixels
(
c
);
rd
.
png
.
SetPixels
(
c
);
List
<
short
>
l
=
new
List
<
short
>();
short
[]
l
=
new
short
[
2048
*
2048
];
for
(
int
i
=
0
;
i
<
2048
*
2048
;
i
++)
{
l
.
Add
(-
1
);
}
for
(
int
i
=
0
;
i
<
rd
.
json
.
roomDatas
.
Count
;
i
++)
for
(
int
i
=
0
;
i
<
rd
.
json
.
roomDatas
.
Count
;
i
++)
{
{
FunDo
(
l
,
rd
.
png
,
rd
.
json
.
roomDatas
[
i
]);
FunDo
(
l
,
rd
.
png
,
rd
.
json
.
roomDatas
[
i
]);
...
@@ -79,7 +82,7 @@ public class GameEditor
...
@@ -79,7 +82,7 @@ public class GameEditor
Debug
.
Log
(
"成功:"
+
savePath
);
Debug
.
Log
(
"成功:"
+
savePath
);
}
}
public
static
void
FunDo
(
short
[]
l
,
Texture2D
png
,
RoomDatas
rd
)
public
static
void
FunDo
(
List
<
short
>
l
,
Texture2D
png
,
RoomDatas
rd
)
{
{
V2
v
=
new
V2
(
rd
.
px
,
rd
.
py
);
V2
v
=
new
V2
(
rd
.
px
,
rd
.
py
);
Stack
<
V2
>
stackVector2
=
new
Stack
<
V2
>();
Stack
<
V2
>
stackVector2
=
new
Stack
<
V2
>();
...
...
Assets/GameMgr/MainData.cs
View file @
0afe8bd5
...
@@ -89,7 +89,6 @@ public class MainData : MonoBehaviour
...
@@ -89,7 +89,6 @@ public class MainData : MonoBehaviour
if
(
rgd
.
id
==
curGroupId
||
b
)
if
(
rgd
.
id
==
curGroupId
||
b
)
{
{
ExRoomDatas
erd
=
new
ExRoomDatas
();
ExRoomDatas
erd
=
new
ExRoomDatas
();
rgd
.
roomIds
.
Remove
(
id
);
dynamic
.
AddData
(
rgd
.
id
,
id
);
dynamic
.
AddData
(
rgd
.
id
,
id
);
Color
[]
c_png
=
png
.
GetPixels
();
Color
[]
c_png
=
png
.
GetPixels
();
for
(
int
j
=
0
;
j
<
json
.
allPos
.
Count
;
j
++)
for
(
int
j
=
0
;
j
<
json
.
allPos
.
Count
;
j
++)
...
...
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