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
15aad9fe
Commit
15aad9fe
authored
Nov 20, 2019
by
15박보승
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hit 시 배경효과 구현중 중간저장
parent
e3fb8199
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
12 deletions
+76
-12
mergescene.unity
RhythmKata/Assets/Scenes/mergescene.unity
+46
-12
PlayEngine.cs
RhythmKata/Assets/Scripts/PlayEngine.cs
+30
-0
No files found.
RhythmKata/Assets/Scenes/mergescene.unity
View file @
15aad9fe
...
...
@@ -294,12 +294,12 @@ Transform:
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
67959459
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
5
,
y
:
0
,
z
:
250
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
5
.710324
,
y
:
-0.2416302
,
z
:
249.96468
}
m_LocalScale
:
{
x
:
0.5
,
y
:
0.5
,
z
:
500
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
8
m_Father
:
{
fileID
:
2128700929
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&85913485
GameObject
:
...
...
@@ -993,6 +993,7 @@ MonoBehaviour:
leftHand
:
1
rightHand
:
2
player
:
{
fileID
:
857018376
}
HitEffectObjects
:
{
fileID
:
2128700929
}
---
!u!4
&1011486260
Transform
:
m_ObjectHideFlags
:
0
...
...
@@ -1188,12 +1189,12 @@ Transform:
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1021587280
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
-
5
,
y
:
0
,
z
:
250
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
-
4.289676
,
y
:
-0.2416302
,
z
:
249.96468
}
m_LocalScale
:
{
x
:
0.5
,
y
:
0.5
,
z
:
500
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
9
m_Father
:
{
fileID
:
2128700929
}
m_RootOrder
:
1
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&1081480032
GameObject
:
...
...
@@ -1517,12 +1518,12 @@ Transform:
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1816956810
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
250
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
.71032363
,
y
:
-0.2416302
,
z
:
249.96468
}
m_LocalScale
:
{
x
:
5
,
y
:
0.1
,
z
:
500
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
10
m_Father
:
{
fileID
:
2128700929
}
m_RootOrder
:
2
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&2112533737
GameObject
:
...
...
@@ -1569,6 +1570,39 @@ Transform:
m_Father
:
{
fileID
:
664074203
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&2128700928
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
2128700929
}
m_Layer
:
0
m_Name
:
GameObject (1)
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!4
&2128700929
Transform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
2128700928
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
-0.71032363
,
y
:
0.2416302
,
z
:
0.03533125
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
-
{
fileID
:
67959463
}
-
{
fileID
:
1021587284
}
-
{
fileID
:
1816956814
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
8
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&25199980223062918
GameObject
:
m_ObjectHideFlags
:
0
...
...
RhythmKata/Assets/Scripts/PlayEngine.cs
View file @
15aad9fe
...
...
@@ -37,6 +37,9 @@ public class PlayEngine : SingletonBehaviour<PlayEngine>
private
int
combo
;
private
int
score
;
[
SerializeField
]
private
Transform
HitEffectObjects
;
public
void
Start
()
{
audioSource
=
GetComponent
<
AudioSource
>();
...
...
@@ -178,8 +181,35 @@ public class PlayEngine : SingletonBehaviour<PlayEngine>
IngameUIManager
.
inst
.
UpdateComboUI
(
combo
);
IngameUIManager
.
inst
.
UpdateScoreUI
(
score
);
foreach
(
var
renderer
in
HitEffectObjects
.
GetComponentsInChildren
<
MeshRenderer
>())
{
Color
col
=
Color
.
white
;
switch
(
type
)
{
case
JudgeType
.
Miss
:
col
=
Color
.
red
;
break
;
case
JudgeType
.
Hit
:
col
=
Color
.
green
;
break
;
case
JudgeType
.
Perfect
:
col
=
Color
.
blue
;
break
;
}
StartCoroutine
(
HitEffectRoutine
(
renderer
,
col
));
}
}
//
private
IEnumerator
HitEffectRoutine
(
MeshRenderer
renderer
,
Color
color
)
{
for
(
float
t
=
0
;
t
<
0.25f
;
t
+=
Time
.
deltaTime
)
{
renderer
.
material
.
color
=
Color
.
Lerp
(
color
,
new
Color
(
color
.
r
,
color
.
g
,
color
.
b
,
0.05f
),
t
*
4
);
yield
return
null
;
}
}
}
public
class
PlayerInput
...
...
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