Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
3
3D Fruit
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
3D Fruit
Commits
b4bc4615
Commit
b4bc4615
authored
Jun 16, 2021
by
wanqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
9284d0cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
BattleUI.cs
3D Fruit/Assets/#A2_Scripts/Battle/UI/BattleUI.cs
+12
-8
No files found.
3D Fruit/Assets/#A2_Scripts/Battle/UI/BattleUI.cs
View file @
b4bc4615
...
...
@@ -109,6 +109,7 @@ public class BattleUI : MonoBehaviour
public
bool
bfadeState
=>
m_bfadeState
;
private
bool
m_bLoadSceneFinish
=
false
;
//场景是否加载完成
private
int
m_startIndex
=
0
;
//点击开始次数
private
int
m_startClickNum
=
0
;
private
GameObject
m_cameraRenderObj
;
private
float
m_resultStartPosY
;
public
bool
bBackWaterEffect
{
get
;
private
set
;
}
//回收水特效
...
...
@@ -223,6 +224,8 @@ public class BattleUI : MonoBehaviour
m_bfadeState
=
false
;
m_startIndex
%=
5
;
m_startIndex
++;
m_startClickNum
%=
999
;
m_startClickNum
++;
}
//设置
void
SettingBtn
()
...
...
@@ -358,29 +361,30 @@ public class BattleUI : MonoBehaviour
m_selectLevelObj
.
SetActive
(
false
);
if
(
BattleCtrl
.
instance
.
levelManager
.
CurLevelIndex
==
LevelEnum
.
levelOneIndex
)
{
m_starLevel
.
text
=
"LEVEL 1"
;
//
m_starLevel.text = "LEVEL 1";
m_fruitNeedDesText
.
text
=
string
.
Format
(
"Fruit x {0:d}"
,
GlobalConfig
.
ProgressFruitNumNeed
);
}
else
if
(
BattleCtrl
.
instance
.
levelManager
.
CurLevelIndex
==
LevelEnum
.
levelTwoIndex
)
{
m_starLevel
.
text
=
"LEVEL 2"
;
m_fruitNeedDesText
.
text
=
string
.
Format
(
"Veg
itable
x {0:d}"
,
GlobalConfig
.
ProgressFruitNumNeed
);
//
m_starLevel.text = "LEVEL 2";
m_fruitNeedDesText
.
text
=
string
.
Format
(
"Veg
etables
x {0:d}"
,
GlobalConfig
.
ProgressFruitNumNeed
);
}
else
if
(
BattleCtrl
.
instance
.
levelManager
.
CurLevelIndex
==
LevelEnum
.
levelThreeIndex
)
{
m_starLevel
.
text
=
"LEVEL 3"
;
//
m_starLevel.text = "LEVEL 3";
m_fruitNeedDesText
.
text
=
string
.
Format
(
"Ball x {0:d}"
,
GlobalConfig
.
ProgressFruitNumNeed
);
}
else
if
(
BattleCtrl
.
instance
.
levelManager
.
CurLevelIndex
==
LevelEnum
.
levelFourIndex
)
{
m_starLevel
.
text
=
"LEVEL 4"
;
//
m_starLevel.text = "LEVEL 4";
m_fruitNeedDesText
.
text
=
string
.
Format
(
"JunkFood x {0:d}"
,
GlobalConfig
.
ProgressFruitNumNeed
);
}
else
if
(
BattleCtrl
.
instance
.
levelManager
.
CurLevelIndex
==
LevelEnum
.
levelFiveIndex
)
{
m_starLevel
.
text
=
"LEVEL 5"
;
//
m_starLevel.text = "LEVEL 5";
m_fruitNeedDesText
.
text
=
string
.
Format
(
"Cube x {0:d}"
,
GlobalConfig
.
ProgressFruitNumNeed
);
}
m_starLevel
.
text
=
string
.
Format
(
"LEVEL {0:d}"
,
m_startClickNum
);
int
varComboPro
=
BattleCtrl
.
instance
.
levelManager
.
curLevel
.
progressCombo
;
int
varFruitNumPro
=
BattleCtrl
.
instance
.
levelManager
.
curLevel
.
progressFruitNum
;
int
varNoOtherPro
=
BattleCtrl
.
instance
.
levelManager
.
curLevel
.
progressNoOther
;
...
...
@@ -498,7 +502,7 @@ public class BattleUI : MonoBehaviour
}
m_boomBtn
.
interactable
=
false
;
m_levelText
.
text
=
string
.
Format
(
"Level {0:D}"
,
BattleCtrl
.
instance
.
levelManager
.
CurLevelIndex
+
1
);
m_levelText
.
text
=
string
.
Format
(
"Level {0:D}"
,
m_startClickNum
/*BattleCtrl.instance.levelManager.CurLevelIndex + 1*/
);
//Camera varCam = BattleCtrl.instance.levelManager.curLevel.cam;
//if (varCam)
...
...
@@ -529,7 +533,7 @@ public class BattleUI : MonoBehaviour
//varPos.y = -286.0f;
m_fruitSecondLineObj
.
SetActive
(
true
);
m_sportIconObj
.
SetActive
(
true
);
m_needIconNum
.
text
=
"Veg
itable
"
;
m_needIconNum
.
text
=
"Veg
etables
"
;
}
else
if
(
BattleCtrl
.
instance
.
levelManager
.
CurLevelIndex
==
LevelEnum
.
levelThreeIndex
)
{
...
...
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