Skip to content

Commit 1f645a3

Browse files
committed
Add support for held notes
1 parent 039efad commit 1f645a3

5 files changed

Lines changed: 351 additions & 69 deletions

File tree

Assets/Unity/Scenes/Test Rhythm Game.unity

Lines changed: 199 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,81 @@ MonoBehaviour:
217217
OscillationScale: 0.025
218218
XAxis: 1
219219
YAxis: 1
220+
--- !u!1 &80893927
221+
GameObject:
222+
m_ObjectHideFlags: 0
223+
m_CorrespondingSourceObject: {fileID: 0}
224+
m_PrefabInstance: {fileID: 0}
225+
m_PrefabAsset: {fileID: 0}
226+
serializedVersion: 6
227+
m_Component:
228+
- component: {fileID: 80893928}
229+
- component: {fileID: 80893930}
230+
- component: {fileID: 80893929}
231+
m_Layer: 5
232+
m_Name: Trail
233+
m_TagString: Untagged
234+
m_Icon: {fileID: 0}
235+
m_NavMeshLayer: 0
236+
m_StaticEditorFlags: 0
237+
m_IsActive: 1
238+
--- !u!224 &80893928
239+
RectTransform:
240+
m_ObjectHideFlags: 0
241+
m_CorrespondingSourceObject: {fileID: 0}
242+
m_PrefabInstance: {fileID: 0}
243+
m_PrefabAsset: {fileID: 0}
244+
m_GameObject: {fileID: 80893927}
245+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
246+
m_LocalPosition: {x: 0, y: 0, z: 0}
247+
m_LocalScale: {x: 1, y: 1, z: 1}
248+
m_ConstrainProportionsScale: 0
249+
m_Children: []
250+
m_Father: {fileID: 959757542}
251+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
252+
m_AnchorMin: {x: 0.5, y: 0.5}
253+
m_AnchorMax: {x: 0.5, y: 0.5}
254+
m_AnchoredPosition: {x: 0, y: 0}
255+
m_SizeDelta: {x: 30, y: 100}
256+
m_Pivot: {x: 0.5, y: 1}
257+
--- !u!114 &80893929
258+
MonoBehaviour:
259+
m_ObjectHideFlags: 0
260+
m_CorrespondingSourceObject: {fileID: 0}
261+
m_PrefabInstance: {fileID: 0}
262+
m_PrefabAsset: {fileID: 0}
263+
m_GameObject: {fileID: 80893927}
264+
m_Enabled: 1
265+
m_EditorHideFlags: 0
266+
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
267+
m_Name:
268+
m_EditorClassIdentifier:
269+
m_Material: {fileID: 0}
270+
m_Color: {r: 1, g: 1, b: 1, a: 1}
271+
m_RaycastTarget: 1
272+
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
273+
m_Maskable: 1
274+
m_OnCullStateChanged:
275+
m_PersistentCalls:
276+
m_Calls: []
277+
m_Sprite: {fileID: 21300000, guid: 1b5f5f98320794ffcaab523e6b6d47fd, type: 3}
278+
m_Type: 3
279+
m_PreserveAspect: 0
280+
m_FillCenter: 1
281+
m_FillMethod: 1
282+
m_FillAmount: 1
283+
m_FillClockwise: 1
284+
m_FillOrigin: 0
285+
m_UseSpriteMesh: 0
286+
m_PixelsPerUnitMultiplier: 1
287+
--- !u!222 &80893930
288+
CanvasRenderer:
289+
m_ObjectHideFlags: 0
290+
m_CorrespondingSourceObject: {fileID: 0}
291+
m_PrefabInstance: {fileID: 0}
292+
m_PrefabAsset: {fileID: 0}
293+
m_GameObject: {fileID: 80893927}
294+
m_CullTransparentMesh: 1
220295
--- !u!1 &250930356
221296
GameObject:
222297
m_ObjectHideFlags: 0
@@ -429,11 +504,11 @@ RectTransform:
429504
- {fileID: 327090775}
430505
m_Father: {fileID: 1489695913}
431506
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
432-
m_AnchorMin: {x: 0.5, y: 1}
433-
m_AnchorMax: {x: 0.5, y: 1}
434-
m_AnchoredPosition: {x: 0, y: -40}
507+
m_AnchorMin: {x: 0.5, y: 0.5}
508+
m_AnchorMax: {x: 0.5, y: 0.5}
509+
m_AnchoredPosition: {x: 0, y: 460}
435510
m_SizeDelta: {x: 0, y: 0}
436-
m_Pivot: {x: 0.5, y: 1}
511+
m_Pivot: {x: 0.5, y: 0.5}
437512
--- !u!114 &452012668
438513
MonoBehaviour:
439514
m_ObjectHideFlags: 0
@@ -581,6 +656,81 @@ MonoBehaviour:
581656
m_EditorClassIdentifier:
582657
m_AspectMode: 3
583658
m_AspectRatio: 1.7777778
659+
--- !u!1 &596422148
660+
GameObject:
661+
m_ObjectHideFlags: 0
662+
m_CorrespondingSourceObject: {fileID: 0}
663+
m_PrefabInstance: {fileID: 0}
664+
m_PrefabAsset: {fileID: 0}
665+
serializedVersion: 6
666+
m_Component:
667+
- component: {fileID: 596422149}
668+
- component: {fileID: 596422151}
669+
- component: {fileID: 596422150}
670+
m_Layer: 5
671+
m_Name: Arrow
672+
m_TagString: Untagged
673+
m_Icon: {fileID: 0}
674+
m_NavMeshLayer: 0
675+
m_StaticEditorFlags: 0
676+
m_IsActive: 1
677+
--- !u!224 &596422149
678+
RectTransform:
679+
m_ObjectHideFlags: 0
680+
m_CorrespondingSourceObject: {fileID: 0}
681+
m_PrefabInstance: {fileID: 0}
682+
m_PrefabAsset: {fileID: 0}
683+
m_GameObject: {fileID: 596422148}
684+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
685+
m_LocalPosition: {x: 0, y: 0, z: 0}
686+
m_LocalScale: {x: 1, y: 1, z: 1}
687+
m_ConstrainProportionsScale: 0
688+
m_Children: []
689+
m_Father: {fileID: 959757542}
690+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
691+
m_AnchorMin: {x: 0.5, y: 0.5}
692+
m_AnchorMax: {x: 0.5, y: 0.5}
693+
m_AnchoredPosition: {x: 0, y: 0}
694+
m_SizeDelta: {x: 120, y: 80}
695+
m_Pivot: {x: 0.5, y: 0.5}
696+
--- !u!114 &596422150
697+
MonoBehaviour:
698+
m_ObjectHideFlags: 0
699+
m_CorrespondingSourceObject: {fileID: 0}
700+
m_PrefabInstance: {fileID: 0}
701+
m_PrefabAsset: {fileID: 0}
702+
m_GameObject: {fileID: 596422148}
703+
m_Enabled: 1
704+
m_EditorHideFlags: 0
705+
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
706+
m_Name:
707+
m_EditorClassIdentifier:
708+
m_Material: {fileID: 0}
709+
m_Color: {r: 1, g: 1, b: 1, a: 1}
710+
m_RaycastTarget: 1
711+
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
712+
m_Maskable: 1
713+
m_OnCullStateChanged:
714+
m_PersistentCalls:
715+
m_Calls: []
716+
m_Sprite: {fileID: 21300000, guid: bfb48dca50c3049d4af953850214ffd9, type: 3}
717+
m_Type: 0
718+
m_PreserveAspect: 1
719+
m_FillCenter: 1
720+
m_FillMethod: 4
721+
m_FillAmount: 1
722+
m_FillClockwise: 1
723+
m_FillOrigin: 0
724+
m_UseSpriteMesh: 0
725+
m_PixelsPerUnitMultiplier: 1
726+
--- !u!222 &596422151
727+
CanvasRenderer:
728+
m_ObjectHideFlags: 0
729+
m_CorrespondingSourceObject: {fileID: 0}
730+
m_PrefabInstance: {fileID: 0}
731+
m_PrefabAsset: {fileID: 0}
732+
m_GameObject: {fileID: 596422148}
733+
m_CullTransparentMesh: 1
584734
--- !u!1 &740930167
585735
GameObject:
586736
m_ObjectHideFlags: 0
@@ -855,34 +1005,31 @@ GameObject:
8551005
serializedVersion: 6
8561006
m_Component:
8571007
- component: {fileID: 959757542}
858-
- component: {fileID: 959757544}
8591008
- component: {fileID: 959757543}
8601009
m_Layer: 5
861-
m_Name: Model Note
1010+
m_Name: Note Sprite Template
8621011
m_TagString: Untagged
8631012
m_Icon: {fileID: 0}
8641013
m_NavMeshLayer: 0
8651014
m_StaticEditorFlags: 0
8661015
m_IsActive: 0
867-
--- !u!224 &959757542
868-
RectTransform:
1016+
--- !u!4 &959757542
1017+
Transform:
8691018
m_ObjectHideFlags: 0
8701019
m_CorrespondingSourceObject: {fileID: 0}
8711020
m_PrefabInstance: {fileID: 0}
8721021
m_PrefabAsset: {fileID: 0}
8731022
m_GameObject: {fileID: 959757541}
1023+
serializedVersion: 2
8741024
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
8751025
m_LocalPosition: {x: 0, y: 0, z: 0}
8761026
m_LocalScale: {x: 1, y: 1, z: 1}
8771027
m_ConstrainProportionsScale: 0
878-
m_Children: []
1028+
m_Children:
1029+
- {fileID: 80893928}
1030+
- {fileID: 596422149}
8791031
m_Father: {fileID: 1489695913}
8801032
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
881-
m_AnchorMin: {x: 0.5, y: 0.5}
882-
m_AnchorMax: {x: 0.5, y: 0.5}
883-
m_AnchoredPosition: {x: 0, y: 0}
884-
m_SizeDelta: {x: 120, y: 80}
885-
m_Pivot: {x: 0.5, y: 0.5}
8861033
--- !u!114 &959757543
8871034
MonoBehaviour:
8881035
m_ObjectHideFlags: 0
@@ -892,35 +1039,13 @@ MonoBehaviour:
8921039
m_GameObject: {fileID: 959757541}
8931040
m_Enabled: 1
8941041
m_EditorHideFlags: 0
895-
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
1042+
m_Script: {fileID: 11500000, guid: 1a2ee74cef1fa490f899eb840223a9ef, type: 3}
8961043
m_Name:
8971044
m_EditorClassIdentifier:
898-
m_Material: {fileID: 0}
899-
m_Color: {r: 1, g: 1, b: 1, a: 1}
900-
m_RaycastTarget: 1
901-
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
902-
m_Maskable: 1
903-
m_OnCullStateChanged:
904-
m_PersistentCalls:
905-
m_Calls: []
906-
m_Sprite: {fileID: 21300000, guid: bfb48dca50c3049d4af953850214ffd9, type: 3}
907-
m_Type: 0
908-
m_PreserveAspect: 1
909-
m_FillCenter: 1
910-
m_FillMethod: 4
911-
m_FillAmount: 1
912-
m_FillClockwise: 1
913-
m_FillOrigin: 0
914-
m_UseSpriteMesh: 0
915-
m_PixelsPerUnitMultiplier: 1
916-
--- !u!222 &959757544
917-
CanvasRenderer:
918-
m_ObjectHideFlags: 0
919-
m_CorrespondingSourceObject: {fileID: 0}
920-
m_PrefabInstance: {fileID: 0}
921-
m_PrefabAsset: {fileID: 0}
922-
m_GameObject: {fileID: 959757541}
923-
m_CullTransparentMesh: 1
1045+
Arrow: {fileID: 596422150}
1046+
Trail: {fileID: 80893929}
1047+
ArrowTransform: {fileID: 596422149}
1048+
TrailTransform: {fileID: 80893928}
9241049
--- !u!1 &1090514945
9251050
GameObject:
9261051
m_ObjectHideFlags: 0
@@ -956,68 +1081,100 @@ MonoBehaviour:
9561081
Notes:
9571082
- Type: 2
9581083
Time: 2
1084+
Duration: 0
9591085
- Type: 2
9601086
Time: 2.5
1087+
Duration: 0
9611088
- Type: 1
9621089
Time: 3
1090+
Duration: 0
9631091
- Type: 1
9641092
Time: 3.5
1093+
Duration: 0
9651094
- Type: 0
9661095
Time: 4
1096+
Duration: 0.5
9671097
- Type: 3
9681098
Time: 4.5
1099+
Duration: 0.5
9691100
- Type: 0
9701101
Time: 5
1102+
Duration: 0.5
9711103
- Type: 3
9721104
Time: 5.5
1105+
Duration: 0.5
9731106
- Type: 2
9741107
Time: 6
1108+
Duration: 0
9751109
- Type: 2
9761110
Time: 6.5
1111+
Duration: 0
9771112
- Type: 1
9781113
Time: 7
1114+
Duration: 0
9791115
- Type: 1
9801116
Time: 7.5
1117+
Duration: 0
9811118
- Type: 0
9821119
Time: 8
1120+
Duration: 0.5
9831121
- Type: 3
9841122
Time: 8.5
1123+
Duration: 0.5
9851124
- Type: 0
9861125
Time: 9
1126+
Duration: 0.5
9871127
- Type: 3
9881128
Time: 9.5
1129+
Duration: 0.5
9891130
- Type: 2
9901131
Time: 10
1132+
Duration: 0
9911133
- Type: 2
9921134
Time: 10.5
1135+
Duration: 0
9931136
- Type: 1
9941137
Time: 11
1138+
Duration: 0
9951139
- Type: 1
9961140
Time: 11.5
1141+
Duration: 0
9971142
- Type: 0
9981143
Time: 12
1144+
Duration: 0.5
9991145
- Type: 3
10001146
Time: 12.5
1147+
Duration: 0.5
10011148
- Type: 0
10021149
Time: 13
1150+
Duration: 0.5
10031151
- Type: 3
10041152
Time: 13.5
1153+
Duration: 0.5
10051154
- Type: 2
10061155
Time: 14
1156+
Duration: 0
10071157
- Type: 2
10081158
Time: 14.5
1159+
Duration: 0
10091160
- Type: 1
10101161
Time: 15
1162+
Duration: 0
10111163
- Type: 1
10121164
Time: 15.5
1165+
Duration: 0
10131166
- Type: 0
10141167
Time: 16
1168+
Duration: 0.5
10151169
- Type: 3
10161170
Time: 16.5
1171+
Duration: 0.5
10171172
- Type: 0
10181173
Time: 17
1174+
Duration: 0.5
10191175
- Type: 3
10201176
Time: 17.5
1177+
Duration: 0.5
10211178
MissThreshold: 0.16
10221179
--- !u!4 &1090514947
10231180
Transform:
@@ -1093,7 +1250,7 @@ MonoBehaviour:
10931250
DownTarget: {fileID: 250930357}
10941251
UpTarget: {fileID: 2014153219}
10951252
RightTarget: {fileID: 327090775}
1096-
ModelNote: {fileID: 959757541}
1253+
NoteSpriteTemplate: {fileID: 959757543}
10971254
--- !u!114 &1489695915
10981255
MonoBehaviour:
10991256
m_ObjectHideFlags: 0

0 commit comments

Comments
 (0)