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
f880f694
Commit
f880f694
authored
Jul 27, 2023
by
shujianhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dcf1d525
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
gameScene.unity
Assets/Scenes/gameScene.unity
+12
-0
gameSceneLogic.cs
Assets/scripts/Views/gameScene/gameSceneLogic.cs
+5
-2
No files found.
Assets/Scenes/gameScene.unity
View file @
f880f694
...
@@ -1046,6 +1046,18 @@ PrefabInstance:
...
@@ -1046,6 +1046,18 @@ PrefabInstance:
propertyPath
:
m_AnchoredPosition.y
propertyPath
:
m_AnchoredPosition.y
value
:
281
value
:
281
objectReference
:
{
fileID
:
0
}
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
8118021438581421258
,
guid
:
e2f00cfdb21d04b46adf17805f74f20c
,
type
:
3
}
propertyPath
:
m_Color.b
value
:
0.9490196
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
8118021438581421258
,
guid
:
e2f00cfdb21d04b46adf17805f74f20c
,
type
:
3
}
propertyPath
:
m_Color.g
value
:
0.9490196
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
8118021438581421258
,
guid
:
e2f00cfdb21d04b46adf17805f74f20c
,
type
:
3
}
propertyPath
:
m_Color.r
value
:
0.9490196
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
8235616612504007133
,
guid
:
e2f00cfdb21d04b46adf17805f74f20c
,
type
:
3
}
-
target
:
{
fileID
:
8235616612504007133
,
guid
:
e2f00cfdb21d04b46adf17805f74f20c
,
type
:
3
}
propertyPath
:
m_AnchorMax.x
propertyPath
:
m_AnchorMax.x
value
:
0
value
:
0
...
...
Assets/scripts/Views/gameScene/gameSceneLogic.cs
View file @
f880f694
...
@@ -66,6 +66,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
...
@@ -66,6 +66,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
//gameScenUser
//gameScenUser
var
gridViewList
=
areaGroupList
.
GetComponent
<
gameSceneAreaGroupHandler
>();
var
gridViewList
=
areaGroupList
.
GetComponent
<
gameSceneAreaGroupHandler
>();
gridViewList
.
gameObject
.
SetActive
(
false
);
gridViewList
.
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"groupListBg"
).
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"gameProgressText"
).
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"gameProgressText"
).
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"gameProgress"
).
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"gameProgress"
).
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"gameEndOperBase"
).
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"gameEndOperBase"
).
gameObject
.
SetActive
(
false
);
...
@@ -211,6 +212,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
...
@@ -211,6 +212,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
return
;
return
;
}
}
areaGroupList
.
SetActive
(
true
);
areaGroupList
.
SetActive
(
true
);
transform
.
Find
(
"groupListBg"
).
gameObject
.
SetActive
(
true
);
if
(
autoSwitchGroup
==
false
)
nowidx
=
-
1
;
if
(
autoSwitchGroup
==
false
)
nowidx
=
-
1
;
var
cellSize
=
gridViewList
.
getCellSize
();
var
cellSize
=
gridViewList
.
getCellSize
();
gradViewBack
gradView
=
(
GameObject
gobject
,
int
idx
,
ListViewBackTypeEnum
lvbType
)
=>
{
gradViewBack
gradView
=
(
GameObject
gobject
,
int
idx
,
ListViewBackTypeEnum
lvbType
)
=>
{
...
@@ -426,7 +428,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
...
@@ -426,7 +428,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
{
{
if
(
isOk
)
if
(
isOk
)
{
{
image
.
color
=
Color
.
white
;
image
.
color
=
new
Color
(
1
,
1
,
1
,
1
)
;
handlerLoadingPosition
(
image
);
handlerLoadingPosition
(
image
);
}
}
});
});
...
@@ -501,7 +503,8 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
...
@@ -501,7 +503,8 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
Debug
.
Log
(
"游戏完成,播放结束动画"
);
Debug
.
Log
(
"游戏完成,播放结束动画"
);
transform
.
Find
(
"gameProgressText"
).
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"gameProgressText"
).
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"gameProgress"
).
gameObject
.
SetActive
(
false
);
transform
.
Find
(
"gameProgress"
).
gameObject
.
SetActive
(
false
);
this
.
areaGroupList
.
SetActive
(
false
);
areaGroupList
.
SetActive
(
false
);
transform
.
Find
(
"groupListBg"
).
gameObject
.
SetActive
(
false
);
gameEndLogic
gameEndlogic
=
transform
.
Find
(
"gameEndOperBase"
).
GetComponent
<
gameEndLogic
>();
gameEndLogic
gameEndlogic
=
transform
.
Find
(
"gameEndOperBase"
).
GetComponent
<
gameEndLogic
>();
gameEndlogic
.
initView
();
gameEndlogic
.
initView
();
}
}
...
...
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