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
37fb4b2b
Commit
37fb4b2b
authored
5 years ago
by
15박보승
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
중간 저장
parent
41566948
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
705 additions
and
0 deletions
+705
-0
bs.unity
RhythmKata/Assets/Scenes/bs.unity
+578
-0
bs.unity.meta
RhythmKata/Assets/Scenes/bs.unity.meta
+7
-0
GameManager.cs
RhythmKata/Assets/Scripts/GameManager.cs
+34
-0
GameManager.cs.meta
RhythmKata/Assets/Scripts/GameManager.cs.meta
+11
-0
IngameUIManager.cs
RhythmKata/Assets/Scripts/IngameUIManager.cs
+15
-0
IngameUIManager.cs.meta
RhythmKata/Assets/Scripts/IngameUIManager.cs.meta
+11
-0
Note.cs
RhythmKata/Assets/Scripts/Note.cs
+38
-0
Note.cs.meta
RhythmKata/Assets/Scripts/Note.cs.meta
+11
-0
No files found.
RhythmKata/Assets/Scenes/bs.unity
0 → 100644
View file @
37fb4b2b
This diff is collapsed.
Click to expand it.
RhythmKata/Assets/Scenes/bs.unity.meta
0 → 100644
View file @
37fb4b2b
fileFormatVersion: 2
guid: 47d75e39fa55e84499abe3fb1f175136
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
Click to expand it.
RhythmKata/Assets/Scripts/GameManager.cs
0 → 100644
View file @
37fb4b2b
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
GameManager
:
MonoBehaviour
{
private
int
_score
;
public
int
Score
{
get
{
return
_score
;
}
set
{
_score
=
value
;
}
}
private
void
Start
()
{
Note
.
OnNoteHit
+=
UpdateScore
;
}
public
void
StartStage
()
{
}
public
void
EndStage
()
{
}
private
void
UpdateScore
(
NoteHitType
type
,
int
score
)
{
Score
+=
score
;
}
}
This diff is collapsed.
Click to expand it.
RhythmKata/Assets/Scripts/GameManager.cs.meta
0 → 100644
View file @
37fb4b2b
fileFormatVersion: 2
guid: 4057548dd43fd5a408e7173586a0c6bb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
Click to expand it.
RhythmKata/Assets/Scripts/IngameUIManager.cs
0 → 100644
View file @
37fb4b2b
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
IngameUIManager
:
MonoBehaviour
{
private
void
Start
()
{
Note
.
OnNoteHit
+=
OnNoteHit
;
}
public
void
OnNoteHit
(
NoteHitType
type
,
int
score
)
{
}
}
This diff is collapsed.
Click to expand it.
RhythmKata/Assets/Scripts/IngameUIManager.cs.meta
0 → 100644
View file @
37fb4b2b
fileFormatVersion: 2
guid: b26911b9b7f765148874d3cea86781fc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
Click to expand it.
RhythmKata/Assets/Scripts/Note.cs
0 → 100644
View file @
37fb4b2b
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.UI
;
public
enum
NoteHitType
{
PERFECT
,
GOOD
,
BAD
,
MISS
}
public
class
Note
:
MonoBehaviour
{
public
static
Action
<
NoteHitType
,
int
>
OnNoteHit
;
private
float
remainedTime
=
5
;
public
Vector3
startPoint
=
new
Vector3
(
0
,
0
,
50
);
public
float
maxRemainedTime
=
5
;
public
float
perfectZ
=
10
;
private
void
Start
()
{
transform
.
position
=
startPoint
;
}
public
void
NoteHit
()
{
OnNoteHit
(
NoteHitType
.
PERFECT
,
300
);
}
public
void
SetPosition
(
float
remainedTime
)
{
transform
.
position
=
Vector3
.
Lerp
(
startPoint
,
new
Vector3
(
startPoint
.
x
,
startPoint
.
y
,
perfectZ
),
remainedTime
/
maxRemainedTime
);
}
}
This diff is collapsed.
Click to expand it.
RhythmKata/Assets/Scripts/Note.cs.meta
0 → 100644
View file @
37fb4b2b
fileFormatVersion: 2
guid: 8f10999abdd62af4b823d8a3f9ced054
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
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