Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FastMail
Project
Project
Details
Activity
Releases
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
wanqing
FastMail
Commits
0dc1cde5
Commit
0dc1cde5
authored
Jan 07, 2021
by
wanqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试模式去掉continue和成绩显示,点击画面进入下一关
parent
3ec4f836
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5100 additions
and
4715 deletions
+5100
-4715
DemoScenes.unity
FastMail/Assets/0A1_Scenes/DemoScenes.unity
+20
-20
BattleUI.cs
FastMail/Assets/0A2_Scripts/Battle/UI/BattleUI.cs
+19
-2
BattleUI.prefab
FastMail/Assets/0A3_Prefabs/BattleUI.prefab
+5061
-4693
No files found.
FastMail/Assets/0A1_Scenes/DemoScenes.unity
View file @
0dc1cde5
...
...
@@ -217,7 +217,7 @@ MonoBehaviour:
m_Script
:
{
fileID
:
11500000
,
guid
:
eac3ab1cd8d56dc4fb10ca3966649e25
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
battleUI
:
{
fileID
:
9106672011051914353
}
battleUI
:
{
fileID
:
6020807041659695165
}
m_levelManager
:
{
fileID
:
186647396
}
---
!u!1
&1872965180
GameObject
:
...
...
@@ -263,8 +263,8 @@ MonoBehaviour:
m_Script
:
{
fileID
:
11500000
,
guid
:
65d718b4fac224944ad7728793e3fdc7
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
pad
:
{
fileID
:
9106672010263290414
}
joyStick
:
{
fileID
:
3046733044930327579
}
pad
:
{
fileID
:
6020807040300631650
}
joyStick
:
{
fileID
:
551544052906070103
}
---
!u!114
&1872965183
MonoBehaviour
:
m_ObjectHideFlags
:
0
...
...
@@ -277,7 +277,19 @@ MonoBehaviour:
m_Script
:
{
fileID
:
11500000
,
guid
:
ff376a18ea419e546ba78667f1b5c6b3
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
---
!u!1001
&551544051915097355
---
!u!114
&551544052906070103
stripped
MonoBehaviour
:
m_CorrespondingSourceObject
:
{
fileID
:
1259541852
,
guid
:
919382978f5e2684ba83e6daf6491458
,
type
:
3
}
m_PrefabInstance
:
{
fileID
:
1132880418365267536
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
0
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
c26c7a0dcd8138d4194e0a4435a4740c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
---
!u!1001
&1132880418365267536
PrefabInstance
:
m_ObjectHideFlags
:
0
serializedVersion
:
2
...
...
@@ -396,23 +408,11 @@ PrefabInstance:
objectReference
:
{
fileID
:
0
}
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
100100000
,
guid
:
919382978f5e2684ba83e6daf6491458
,
type
:
3
}
---
!u!114
&3046733044930327579
stripped
MonoBehaviour
:
m_CorrespondingSourceObject
:
{
fileID
:
1259541852
,
guid
:
919382978f5e2684ba83e6daf6491458
,
type
:
3
}
m_PrefabInstance
:
{
fileID
:
551544051915097355
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
0
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
c26c7a0dcd8138d4194e0a4435a4740c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
---
!u!114
&9106672010263290414
stripped
---
!u!114
&6020807040300631650
stripped
MonoBehaviour
:
m_CorrespondingSourceObject
:
{
fileID
:
6064464676810081129
,
guid
:
919382978f5e2684ba83e6daf6491458
,
type
:
3
}
m_PrefabInstance
:
{
fileID
:
551544051915097355
}
m_PrefabInstance
:
{
fileID
:
1132880418365267536
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
0
}
m_Enabled
:
1
...
...
@@ -420,11 +420,11 @@ MonoBehaviour:
m_Script
:
{
fileID
:
11500000
,
guid
:
4e3ca8d9f66bfdf4da1bfb54682c658b
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
---
!u!114
&
9106672011051914353
stripped
---
!u!114
&
6020807041659695165
stripped
MonoBehaviour
:
m_CorrespondingSourceObject
:
{
fileID
:
6064464677632144694
,
guid
:
919382978f5e2684ba83e6daf6491458
,
type
:
3
}
m_PrefabInstance
:
{
fileID
:
551544051915097355
}
m_PrefabInstance
:
{
fileID
:
1132880418365267536
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
0
}
m_Enabled
:
1
...
...
FastMail/Assets/0A2_Scripts/Battle/UI/BattleUI.cs
View file @
0dc1cde5
...
...
@@ -31,6 +31,9 @@ public class BattleUI : MonoBehaviour
public
Text
m_clawMoveSpeed
;
//爪子移动速度
public
Button
m_settingBtn
;
//设置按钮
public
GameObject
m_settingPanel
;
//设置界面
public
GameObject
m_successResultObj
;
//胜利结算obj
public
GameObject
m_successResultMaskObj
;
//胜利结算maskobj
public
GameObject
m_ShowOrHideMouseObj
;
//显示或隐藏手指图标obj
public
Action
onStartBtn
;
public
Action
onPosUpBtn
;
public
Action
onPosDownBtn
;
...
...
@@ -38,6 +41,9 @@ public class BattleUI : MonoBehaviour
public
Action
onFieldNearBtn
;
public
Action
onClawMoveSpeedAddBtn
;
public
Action
onClawMoveSpeedDownBtn
;
private
Text
m_ShowOrHideMouseText
;
//显示或隐藏手指text
private
int
m_mouseIndex
=
0
;
void
Awake
()
{
m_dragBtn
.
onClick
.
AddListener
(
SetDragMode
);
...
...
@@ -52,6 +58,7 @@ public class BattleUI : MonoBehaviour
//m_posDownBtn.onClick.AddListener(PosDownBtn);
//m_fieldFarBtn.onClick.AddListener(FieldFarBtn);
//m_fieldNearBtn.onClick.AddListener(FieldNearBtn);
m_ShowOrHideMouseText
=
m_ShowOrHideMouseObj
.
GetComponentInChildren
<
Text
>();
GameServices
.
audioServices
.
PlayBgm
(
GameServices
.
configService
.
audioConfig
.
GameBgm
);
GameServices
.
configService
.
playerConfig
.
ClawMoveSpeed
=
0.4f
;
//开始默认值
}
...
...
@@ -77,7 +84,7 @@ public class BattleUI : MonoBehaviour
BattleCtrl
.
instance
.
levelManager
.
LoadCurLevel
();
}
// 进入下一关卡
void
NextLevel
()
public
void
NextLevel
()
{
m_successObj
.
SetActive
(
false
);
BattleCtrl
.
instance
.
levelManager
.
LoadNextLevel
();
...
...
@@ -231,14 +238,24 @@ public class BattleUI : MonoBehaviour
public
void
SetBattleObjState
(
bool
bool_
)
{
m_battleObj
.
SetActive
(
bool_
);
m_successResultObj
.
SetActive
(
bool_
);
m_successResultMaskObj
.
SetActive
(!
bool_
);
//m_ShowOrHideMouseObj.SetActive(!bool_);
}
//设置手势位置
public
void
SetMousePos
(
float
x
,
float
y
)
{
m_mouseObj
.
SetActive
((
x
!=
0
||
y
!=
0
)
&&
!
m_battleObj
.
activeSelf
);
m_mouseObj
.
SetActive
((
x
!=
0
||
y
!=
0
)
&&
!
m_battleObj
.
activeSelf
&&
m_mouseIndex
%
2
==
0
);
Vector2
varVec2
=
m_mouseObj
.
transform
.
localPosition
;
varVec2
.
x
=
x
;
varVec2
.
y
=
y
;
m_mouseObj
.
transform
.
localPosition
=
varVec2
;
}
//显示或者隐藏手指图标
public
void
ShowOrHideMouseBtn
()
{
m_ShowOrHideMouseObj
.
SetActive
(
false
);
m_mouseIndex
++;
m_ShowOrHideMouseText
.
text
=
m_mouseIndex
%
2
!=
0
?
"show"
:
"hide"
;
}
}
FastMail/Assets/0A3_Prefabs/BattleUI.prefab
View file @
0dc1cde5
This diff is collapsed.
Click to expand it.
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