Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
ButtonPusher
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Button Pusher
ButtonPusher
Commits
e2d48911
Commit
e2d48911
authored
Aug 24, 2017
by
Chae Ho Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Result UI
parent
e284086c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
387 additions
and
432 deletions
+387
-432
Result.unity
Assets/Scene/Result.unity
+367
-431
GameManager.cs
Assets/Script/GameManager.cs
+19
-1
JudgeManager.cs
Assets/Script/JudgeManager.cs
+1
-0
No files found.
Assets/Scene/Result.unity
View file @
e2d48911
This diff is collapsed.
Click to expand it.
Assets/Script/GameManager.cs
View file @
e2d48911
...
@@ -24,8 +24,26 @@ public class GameManager : MonoBehaviour {
...
@@ -24,8 +24,26 @@ public class GameManager : MonoBehaviour {
public
TrackInfo
CurrentTrack
{
get
;
set
;
}
public
TrackInfo
CurrentTrack
{
get
;
set
;
}
public
int
Combo
{
get
;
set
;
}
private
int
combo
=
0
;
public
int
Combo
{
get
{
return
combo
;
}
set
{
if
(
value
>
LongestCombo
)
LongestCombo
=
value
;
combo
=
value
;
}
}
public
int
LongestCombo
{
get
;
private
set
;
}
public
int
Score
{
get
;
set
;
}
public
int
Score
{
get
;
set
;
}
public
Dictionary
<
Judge
,
int
>
JudgeCount
=
new
Dictionary
<
Judge
,
int
>
{
{
Judge
.
JudgeList
[
0
],
0
},
{
Judge
.
JudgeList
[
1
],
0
},
{
Judge
.
JudgeList
[
2
],
0
},
{
Judge
.
JudgeList
[
3
],
0
},
};
// Use this for initialization
// Use this for initialization
void
Start
()
void
Start
()
...
...
Assets/Script/JudgeManager.cs
View file @
e2d48911
...
@@ -146,6 +146,7 @@ public class JudgeManager : MonoBehaviour
...
@@ -146,6 +146,7 @@ public class JudgeManager : MonoBehaviour
if
(!
judge
.
IsBreak
)
if
(!
judge
.
IsBreak
)
GameManager
.
Instance
.
Combo
++;
GameManager
.
Instance
.
Combo
++;
GameManager
.
Instance
.
Score
+=
judge
.
Score
;
GameManager
.
Instance
.
Score
+=
judge
.
Score
;
GameManager
.
Instance
.
JudgeCount
[
judge
]++;
Debug
.
Log
(
judge
.
Name
);
Debug
.
Log
(
judge
.
Name
);
...
...
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