Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RhythmKata
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
13정준영
RhythmKata
Commits
7bf7751a
Commit
7bf7751a
authored
Nov 06, 2019
by
catdog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
점수, 콤보 관련 함수
parent
e478b624
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
IngameUIManager.cs
RhythmKata/Assets/Scripts/IngameUIManager.cs
+15
-0
No files found.
RhythmKata/Assets/Scripts/IngameUIManager.cs
View file @
7bf7751a
...
@@ -7,6 +7,9 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
...
@@ -7,6 +7,9 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
{
{
public
GameObject
ringUIPrefab
;
public
GameObject
ringUIPrefab
;
public
Text
scoreText
;
public
Text
comboText
;
private
void
Start
()
private
void
Start
()
{
{
NoteObject
.
OnNoteHit
+=
OnNoteHit
;
NoteObject
.
OnNoteHit
+=
OnNoteHit
;
...
@@ -20,4 +23,16 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
...
@@ -20,4 +23,16 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
{
{
return
Instantiate
(
ringUIPrefab
,
transform
).
GetComponent
<
RectTransform
>();
return
Instantiate
(
ringUIPrefab
,
transform
).
GetComponent
<
RectTransform
>();
}
}
public
void
UpdateScoreUI
(
int
score
)
{
scoreText
.
text
=
score
.
ToString
();
}
public
void
UpdateComboUI
(
int
combo
)
{
if
(
combo
<
1
)
comboText
.
text
=
""
;
else
comboText
.
text
=
combo
.
ToString
()
+
" Combo!"
;
}
}
}
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