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
ebe9325d
Commit
ebe9325d
authored
Aug 03, 2017
by
16서원빈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround with Judge and Tracks
WIP
parent
23d5ec41
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
694 additions
and
164 deletions
+694
-164
Button Note.prefab
Assets/Prefab/Button Note.prefab
+2
-2
Long Button Note.prefab
Assets/Prefab/Long Button Note.prefab
+188
-16
Long Button Note.prefab.meta
Assets/Prefab/Long Button Note.prefab.meta
+1
-1
Long Motion Note.prefab
Assets/Prefab/Long Motion Note.prefab
+189
-17
Long Motion Note.prefab.meta
Assets/Prefab/Long Motion Note.prefab.meta
+1
-1
InGame.unity
Assets/Scene/InGame.unity
+99
-87
GameManager.cs
Assets/Script/GameManager.cs
+8
-6
InputManager.cs
Assets/Script/InputManager.cs
+39
-0
InputManager.cs.meta
Assets/Script/InputManager.cs.meta
+12
-0
Judge.cs
Assets/Script/Judge.cs
+3
-3
JudgeManager.cs
Assets/Script/JudgeManager.cs
+25
-16
TrackInfo.cs
Assets/Script/TrackInfo.cs
+77
-4
TrackInfoHolder.cs
Assets/Script/TrackInfoHolder.cs
+2
-2
TrackManager.cs
Assets/Script/TrackManager.cs
+12
-9
Tracks.meta
Assets/Tracks.meta
+9
-0
Tutorial.meta
Assets/Tracks/Tutorial.meta
+9
-0
tutorial1.bpe
Assets/Tracks/Tutorial/tutorial1.bpe
+10
-0
tutorial1.bpe.meta
Assets/Tracks/Tutorial/tutorial1.bpe.meta
+8
-0
No files found.
Assets/Prefab/Button Note.prefab
View file @
ebe9325d
...
...
@@ -74,8 +74,8 @@ RectTransform:
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
0
,
y
:
1
}
m_AnchorMin
:
{
x
:
0
.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0
.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
3
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
Assets/Prefab/Long Button Note.prefab
View file @
ebe9325d
...
...
@@ -9,18 +9,16 @@ Prefab:
m_Modifications
:
[]
m_RemovedComponents
:
[]
m_ParentPrefab
:
{
fileID
:
0
}
m_RootGameObject
:
{
fileID
:
10
83294082572158
}
m_RootGameObject
:
{
fileID
:
10
57440445156940
}
m_IsPrefabParent
:
1
---
!u!1
&10
83294082572158
---
!u!1
&10
57440445156940
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
224367149323377418
}
-
component
:
{
fileID
:
222961217073297688
}
-
component
:
{
fileID
:
114035300613019404
}
-
component
:
{
fileID
:
224168227853942078
}
m_Layer
:
5
m_Name
:
Long Button Note
m_TagString
:
Untagged
...
...
@@ -28,19 +26,97 @@ GameObject:
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!114
&114035300613019404
---
!u!1
&1282829114055104
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
224219039990227194
}
-
component
:
{
fileID
:
222255917144918570
}
-
component
:
{
fileID
:
114614331576255744
}
m_Layer
:
5
m_Name
:
Start
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1338190181668634
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
224045426401352174
}
-
component
:
{
fileID
:
222014898246691236
}
-
component
:
{
fileID
:
114305686529591796
}
m_Layer
:
5
m_Name
:
End
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1436647743284478
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
224030496306011432
}
-
component
:
{
fileID
:
222928888037685294
}
-
component
:
{
fileID
:
114889099781570108
}
m_Layer
:
5
m_Name
:
Hold
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!114
&114305686529591796
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1338190181668634
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0
,
g
:
1
,
b
:
0.2965517
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
0
}
m_Type
:
0
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!114
&114614331576255744
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
083294082572158
}
m_GameObject
:
{
fileID
:
1
282829114055104
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
0.791
,
b
:
0
,
a
:
1
}
m_Color
:
{
r
:
0
,
g
:
1
,
b
:
0.2965517
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
...
...
@@ -55,27 +131,123 @@ MonoBehaviour:
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!222
&222961217073297688
---
!u!114
&114889099781570108
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1436647743284478
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0
,
g
:
1
,
b
:
0.29803923
,
a
:
0.627451
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
0
}
m_Type
:
0
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!222
&222014898246691236
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1083294082572158
}
---
!u!224
&224367149323377418
m_GameObject
:
{
fileID
:
1338190181668634
}
---
!u!222
&222255917144918570
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1282829114055104
}
---
!u!222
&222928888037685294
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1436647743284478
}
---
!u!224
&224030496306011432
RectTransform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
08329408257215
8
}
m_GameObject
:
{
fileID
:
1
43664774328447
8
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0.99999994
,
y
:
0.99999994
,
z
:
0.99999994
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
224168227853942078
}
m_RootOrder
:
1
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
15
,
y
:
0
}
m_SizeDelta
:
{
x
:
30
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224045426401352174
RectTransform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1338190181668634
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
224168227853942078
}
m_RootOrder
:
2
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
30
,
y
:
0
}
m_SizeDelta
:
{
x
:
3
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224168227853942078
RectTransform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1057440445156940
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
-
{
fileID
:
224219039990227194
}
-
{
fileID
:
224030496306011432
}
-
{
fileID
:
224045426401352174
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
0
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0.0000076293945
,
y
:
0.000030517578
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224219039990227194
RectTransform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1282829114055104
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
224168227853942078
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
3
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
Assets/Prefab/Long Button Note.prefab.meta
View file @
ebe9325d
fileFormatVersion: 2
guid: bd944354f43f2b94c891d68fa0b70af3
timeCreated: 1
499951670
timeCreated: 1
501317145
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 100100000
...
...
Assets/Prefab/Long Motion Note.prefab
View file @
ebe9325d
...
...
@@ -9,18 +9,50 @@ Prefab:
m_Modifications
:
[]
m_RemovedComponents
:
[]
m_ParentPrefab
:
{
fileID
:
0
}
m_RootGameObject
:
{
fileID
:
186
2665525798696
}
m_RootGameObject
:
{
fileID
:
186
9947549572880
}
m_IsPrefabParent
:
1
---
!u!1
&1
862665525798696
---
!u!1
&1
422421716557948
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
224986493332288502
}
-
component
:
{
fileID
:
222333699240414066
}
-
component
:
{
fileID
:
114795387971948328
}
-
component
:
{
fileID
:
224834283073951364
}
-
component
:
{
fileID
:
222498736843119714
}
-
component
:
{
fileID
:
114404821063438270
}
m_Layer
:
5
m_Name
:
Start
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1514278235790232
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
224619449702362956
}
-
component
:
{
fileID
:
222375019058029532
}
-
component
:
{
fileID
:
114346303801026760
}
m_Layer
:
5
m_Name
:
Hold
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1869947549572880
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
224011200304410306
}
m_Layer
:
5
m_Name
:
Long Motion Note
m_TagString
:
Untagged
...
...
@@ -28,19 +60,63 @@ GameObject:
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!114
&114795387971948328
---
!u!1
&1887610743965204
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
224106473661142190
}
-
component
:
{
fileID
:
222950832735418152
}
-
component
:
{
fileID
:
114708382482408562
}
m_Layer
:
5
m_Name
:
End
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!114
&114346303801026760
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1514278235790232
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0
,
g
:
0.91764706
,
b
:
1
,
a
:
0.627451
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
0
}
m_Type
:
0
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!114
&114404821063438270
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
862665525798696
}
m_GameObject
:
{
fileID
:
1
422421716557948
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0
,
g
:
0.917
24133
,
b
:
1
,
a
:
1
}
m_Color
:
{
r
:
0
,
g
:
0.917
64706
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
...
...
@@ -55,27 +131,123 @@ MonoBehaviour:
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!222
&222333699240414066
---
!u!114
&114708382482408562
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1887610743965204
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0
,
g
:
0.91764706
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
0
}
m_Type
:
0
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!222
&222375019058029532
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1514278235790232
}
---
!u!222
&222498736843119714
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1422421716557948
}
---
!u!222
&222950832735418152
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
18
62665525798696
}
---
!u!224
&224
986493332288502
m_GameObject
:
{
fileID
:
18
87610743965204
}
---
!u!224
&224
011200304410306
RectTransform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1862665525798696
}
m_GameObject
:
{
fileID
:
1869947549572880
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
-
{
fileID
:
224834283073951364
}
-
{
fileID
:
224619449702362956
}
-
{
fileID
:
224106473661142190
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224106473661142190
RectTransform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1887610743965204
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0.99999994
,
y
:
0.99999994
,
z
:
0.99999994
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_Father
:
{
fileID
:
224011200304410306
}
m_RootOrder
:
2
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
30
,
y
:
0
}
m_SizeDelta
:
{
x
:
3
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224619449702362956
RectTransform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1514278235790232
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
224011200304410306
}
m_RootOrder
:
1
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
15
,
y
:
0
}
m_SizeDelta
:
{
x
:
30
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224834283073951364
RectTransform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1422421716557948
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
224011200304410306
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
0
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
.0000076293945
,
y
:
0.000030517578
}
m_AnchorMin
:
{
x
:
0
.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0
.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
3
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
Assets/Prefab/Long Motion Note.prefab.meta
View file @
ebe9325d
fileFormatVersion: 2
guid: 14ea2ad59362f814f80d47a3c46cb770
timeCreated: 1
499951672
timeCreated: 1
501317236
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 100100000
...
...
Assets/Scene/InGame.unity
View file @
ebe9325d
...
...
@@ -42,7 +42,7 @@ RenderSettings:
---
!u!157
&3
LightmapSettings
:
m_ObjectHideFlags
:
0
serializedVersion
:
9
serializedVersion
:
11
m_GIWorkflowMode
:
0
m_GISettings
:
serializedVersion
:
2
...
...
@@ -54,7 +54,7 @@ LightmapSettings:
m_EnableBakedLightmaps
:
1
m_EnableRealtimeLightmaps
:
1
m_LightmapEditorSettings
:
serializedVersion
:
8
serializedVersion
:
9
m_Resolution
:
2
m_BakeResolution
:
40
m_TextureWidth
:
1024
...
...
@@ -71,7 +71,7 @@ LightmapSettings:
m_FinalGatherFiltering
:
1
m_FinalGatherRayCount
:
256
m_ReflectionCompression
:
2
m_MixedBakeMode
:
3
m_MixedBakeMode
:
2
m_BakeBackend
:
0
m_PVRSampling
:
1
m_PVRDirectSampleCount
:
32
...
...
@@ -87,7 +87,7 @@ LightmapSettings:
m_PVRFilteringAtrousNormalSigma
:
1
m_PVRFilteringAtrousPositionSigma
:
1
m_LightingDataAsset
:
{
fileID
:
0
}
m_
ShadowMaskMode
:
2
m_
UseShadowmask
:
1
---
!u!196
&4
NavMeshSettings
:
serializedVersion
:
2
...
...
@@ -116,8 +116,10 @@ GameObject:
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
295245170
}
-
component
:
{
fileID
:
295245172
}
-
component
:
{
fileID
:
295245171
}
m_Layer
:
5
m_Name
:
Offset
m_Name
:
Judge Line
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
...
...
@@ -134,15 +136,47 @@ RectTransform:
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
-
{
fileID
:
1152155867
}
-
{
fileID
:
1832442432
}
-
{
fileID
:
2001722607
}
m_Father
:
{
fileID
:
1073141667
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
0
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
10
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_AnchorMin
:
{
x
:
0
.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0
.5
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
3
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&295245171
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
295245169
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-98529514
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
0
,
b
:
0
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Texture
:
{
fileID
:
0
}
m_UVRect
:
serializedVersion
:
2
x
:
0
y
:
0
width
:
1
height
:
1
---
!u!222
&295245172
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
295245169
}
---
!u!1
&554916356
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -191,6 +225,20 @@ Light:
m_Lightmapping
:
4
m_AreaSize
:
{
x
:
1
,
y
:
1
}
m_BounceIntensity
:
1
m_FalloffTable
:
m_Table[0]
:
0
m_Table[1]
:
0
m_Table[2]
:
0
m_Table[3]
:
0
m_Table[4]
:
0
m_Table[5]
:
0
m_Table[6]
:
0
m_Table[7]
:
0
m_Table[8]
:
0
m_Table[9]
:
0
m_Table[10]
:
0
m_Table[11]
:
0
m_Table[12]
:
0
m_ColorTemperature
:
6570
m_UseColorTemperature
:
0
m_ShadowRadius
:
0
...
...
@@ -217,6 +265,8 @@ GameObject:
m_Component
:
-
component
:
{
fileID
:
750753103
}
-
component
:
{
fileID
:
750753104
}
-
component
:
{
fileID
:
750753105
}
-
component
:
{
fileID
:
750753106
}
m_Layer
:
5
m_Name
:
Managers
m_TagString
:
Untagged
...
...
@@ -254,6 +304,29 @@ MonoBehaviour:
m_Name
:
m_EditorClassIdentifier
:
latency
:
225
offset
:
{
fileID
:
2001722606
}
---
!u!114
&750753105
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
750753102
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
6e697643158480b4ba850d906eac1bc2
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
---
!u!114
&750753106
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
750753102
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
a9d22e7eb4921ca47b18c68e43c0eb6e
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
---
!u!1
&765048384
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -299,7 +372,7 @@ MonoBehaviour:
m_Script
:
{
fileID
:
1980459831
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_UiScaleMode
:
1
m_UiScaleMode
:
0
m_ReferencePixelsPerUnit
:
100
m_ScaleFactor
:
1
m_ReferenceResolution
:
{
x
:
800
,
y
:
600
}
...
...
@@ -448,9 +521,9 @@ RectTransform:
m_Father
:
{
fileID
:
295245170
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0
.5
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
0
.5
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
-1
3
5
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
0
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
-15
}
m_SizeDelta
:
{
x
:
160
,
y
:
30
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&1152155868
...
...
@@ -502,9 +575,8 @@ GameObject:
-
component
:
{
fileID
:
1173591428
}
-
component
:
{
fileID
:
1173591431
}
-
component
:
{
fileID
:
1173591430
}
-
component
:
{
fileID
:
1173591429
}
m_Layer
:
5
m_Name
:
Guage Holder
m_Name
:
Motion
Guage Holder
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
...
...
@@ -529,18 +601,6 @@ RectTransform:
m_AnchoredPosition
:
{
x
:
0
,
y
:
80
}
m_SizeDelta
:
{
x
:
120
,
y
:
120
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&1173591429
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1173591427
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-1200242548
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_ShowMaskGraphic
:
1
---
!u!114
&1173591430
MonoBehaviour
:
m_ObjectHideFlags
:
0
...
...
@@ -735,7 +795,6 @@ GameObject:
-
component
:
{
fileID
:
1665813939
}
-
component
:
{
fileID
:
1665813942
}
-
component
:
{
fileID
:
1665813941
}
-
component
:
{
fileID
:
1665813940
}
m_Layer
:
5
m_Name
:
Guage
m_TagString
:
Untagged
...
...
@@ -756,23 +815,11 @@ RectTransform:
m_Father
:
{
fileID
:
1173591428
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
.5
,
y
:
0
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
0
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
6
0
}
m_SizeDelta
:
{
x
:
120
,
y
:
12
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
1
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&1665813940
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1665813938
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-1200242548
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_ShowMaskGraphic
:
1
---
!u!114
&1665813941
MonoBehaviour
:
m_ObjectHideFlags
:
0
...
...
@@ -806,29 +853,27 @@ CanvasRenderer:
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1665813938
}
---
!u!1
&
1832442431
---
!u!1
&
2001722606
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
1832442432
}
-
component
:
{
fileID
:
1832442434
}
-
component
:
{
fileID
:
1832442433
}
-
component
:
{
fileID
:
2001722607
}
m_Layer
:
5
m_Name
:
Judge Line
m_Name
:
Offset
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&
1832442432
---
!u!224
&
2001722607
RectTransform
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1832442431
}
m_GameObject
:
{
fileID
:
2001722606
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
...
...
@@ -837,40 +882,7 @@ RectTransform:
m_RootOrder
:
1
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
1
,
y
:
1
}
m_AnchorMax
:
{
x
:
0
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
3
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&1832442433
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1832442431
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
0.088
,
b
:
0
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
0
}
m_Type
:
0
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!222
&1832442434
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1832442431
}
Assets/Script/GameManager.cs
View file @
ebe9325d
...
...
@@ -12,6 +12,7 @@ public class GameManager : MonoBehaviour {
if
(
instance
==
null
)
{
instance
=
FindObjectOfType
(
typeof
(
GameManager
))
as
GameManager
;
instance
.
CurrentTrack
=
new
TrackInfo
(
"Assets/Tracks/Tutorial/tutorial1.bpe"
);
}
return
instance
;
...
...
@@ -21,14 +22,15 @@ public class GameManager : MonoBehaviour {
public
TrackInfo
CurrentTrack
{
get
;
set
;
}
// Use this for initialization
void
Start
()
{
void
Start
()
{
DontDestroyOnLoad
(
Instance
);
}
}
// Update is called once per frame
void
Update
()
{
}
// Update is called once per frame
void
Update
()
{
}
public
void
SceneTransition
(
string
sceneName
)
{
...
...
Assets/Script/InputManager.cs
0 → 100644
View file @
ebe9325d
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
InputManager
:
MonoBehaviour
{
private
static
InputManager
instance
;
public
static
InputManager
Instance
{
get
{
if
(
instance
==
null
)
{
instance
=
FindObjectOfType
(
typeof
(
InputManager
))
as
InputManager
;
}
return
instance
;
}
}
public
bool
IsButtonDown
{
get
;
private
set
;
}
// Use this for initialization
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
if
(
Input
.
anyKey
)
{
IsButtonDown
=
true
;
}
else
{
IsButtonDown
=
false
;
}
}
}
\ No newline at end of file
Assets/Script/InputManager.cs.meta
0 → 100644
View file @
ebe9325d
fileFormatVersion: 2
guid: 6e697643158480b4ba850d906eac1bc2
timeCreated: 1501325370
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Script/Judge.cs
View file @
ebe9325d
...
...
@@ -38,11 +38,11 @@ public class Judge
public
static
Judge
TestJudge
(
float
elapsedTime
)
{
foreach
(
Judge
testingJ
udge
in
JudgeList
)
foreach
(
Judge
j
udge
in
JudgeList
)
{
if
(
Mathf
.
Abs
(
elapsedTime
)
<
testingJ
udge
.
ButtonTimingRange
)
if
(
Mathf
.
Abs
(
elapsedTime
)
<
j
udge
.
ButtonTimingRange
)
{
return
testingJ
udge
;
return
j
udge
;
}
}
...
...
Assets/Script/JudgeManager.cs
View file @
ebe9325d
...
...
@@ -3,15 +3,35 @@ using System.Collections;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
JudgeManager
:
MonoBehaviour
{
public
class
JudgeManager
:
MonoBehaviour
{
private
static
JudgeManager
instance
;
public
static
JudgeManager
Instance
{
get
{
if
(
instance
==
null
)
{
instance
=
FindObjectOfType
(
typeof
(
JudgeManager
))
as
JudgeManager
;
}
return
instance
;
}
}
[
SerializeField
]
float
latency
=
225f
;
[
SerializeField
]
GameObject
offset
;
private
float
elapsedTime
=
0
;
private
float
MsPerBeat
{
get
{
return
60
*
1000f
/
GameManager
.
Instance
.
CurrentTrack
.
BPM
;
}
get
{
return
60
*
1000f
/
GameManager
.
Instance
.
CurrentTrack
.
BPM
;
}
}
// Use this for initialization
...
...
@@ -23,22 +43,11 @@ public class JudgeManager : MonoBehaviour {
void
Update
()
{
elapsedTime
+=
Time
.
deltaTime
*
1000
;
offset
.
transform
.
Translate
(-
Time
.
deltaTime
*
MsPerBeat
,
0
,
0
);
Judge
judge
=
Judge
.
TestJudge
(
elapsedTime
);
if
(
judge
.
IsNonEmptyMiss
(
elapsedTime
))
if
(
InputManager
.
Instance
.
IsButtonDown
)
{
elapsedTime
-=
2
*
MsPerBeat
;
}
bool
isJumpButtonPressed
=
true
;
if
(
isJumpButtonPressed
)
{
if
(
judge
!=
Judge
.
MISS
)
{
elapsedTime
-=
2
*
MsPerBeat
;
}
Judge
judge
=
Judge
.
TestJudge
(
elapsedTime
+
latency
);
if
(!
judge
.
IsBreak
)
{
...
...
Assets/Script/TrackInfo.cs
View file @
ebe9325d
using
UnityEngine
;
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
UnityEngine
;
public
class
TrackInfo
{
public
string
Name
{
get
;
private
set
;
}
public
string
Title
{
get
;
private
set
;
}
public
string
Artist
{
get
;
private
set
;
}
public
string
Genre
{
get
;
private
set
;
}
public
float
BPM
{
get
;
private
set
;
}
public
int
Level
{
get
;
private
set
;
}
public
TrackInfo
(
string
path
)
public
TrackInfo
(
string
path
)
:
this
(
new
FileInfo
(
path
))
{
}
public
TrackInfo
(
FileInfo
file
)
{
Name
=
path
;
ParseBPE
(
file
);
}
private
void
ParseBPE
(
FileInfo
file
)
{
using
(
StreamReader
reader
=
new
StreamReader
(
new
BufferedStream
(
file
.
OpenRead
())))
{
string
line
;
while
((
line
=
reader
.
ReadLine
())
!=
null
)
{
if
(
line
==
""
||
line
[
0
]
!=
'#'
)
continue
;
string
[]
token
=
line
.
Split
(
new
char
[]
{
' '
},
2
);
string
field
=
token
[
0
];
string
value
=
token
[
1
].
Trim
();
switch
(
field
)
{
case
"#TITLE"
:
Title
=
value
;
break
;
case
"#ARTIST"
:
Artist
=
value
;
break
;
case
"#GENRE"
:
Genre
=
value
;
break
;
case
"#BPM"
:
float
outBPM
;
if
(
float
.
TryParse
(
value
,
out
outBPM
))
BPM
=
outBPM
;
else
BPM
=
0
;
break
;
case
"#PLAYLEVEL"
:
int
outLevel
;
if
(
int
.
TryParse
(
value
,
out
outLevel
))
Level
=
outLevel
;
else
Level
=
0
;
break
;
default
:
ParseNote
(
field
,
value
);
break
;
}
}
}
}
private
void
ParseNote
(
string
field
,
string
value
)
{
if
(
field
.
Length
!=
7
)
return
;
string
[]
CHANNELS
=
{
"SBT"
,
"LBT"
,
"SMN"
,
"LMN"
};
int
measure
;
string
channel
=
field
.
Substring
(
4
,
3
);
if
(!
int
.
TryParse
(
field
.
Substring
(
1
,
3
),
out
measure
))
return
;
if
(
Array
.
FindIndex
(
CHANNELS
,
x
=>
x
==
value
)
==
-
1
)
return
;
}
}
\ No newline at end of file
Assets/Script/TrackInfoHolder.cs
View file @
ebe9325d
...
...
@@ -8,8 +8,8 @@ public class TrackInfoHolder : MonoBehaviour {
// Use this for initialization
void
Start
()
{
gameObject
.
name
=
trackInfo
.
Nam
e
;
gameObject
.
GetComponentInChildren
<
Text
>().
text
=
trackInfo
.
Nam
e
;
gameObject
.
name
=
trackInfo
.
Titl
e
;
gameObject
.
GetComponentInChildren
<
Text
>().
text
=
trackInfo
.
Titl
e
;
}
// Update is called once per frame
...
...
Assets/Script/TrackManager.cs
View file @
ebe9325d
using
System.Collections
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
using
UnityEngine
;
using
UnityEngine.EventSystems
;
...
...
@@ -14,20 +15,22 @@ public class TrackManager : MonoBehaviour {
private
GameObject
selectedTrackItem
=
null
;
// Use this for initialization
void
Start
()
{
// Use this for initialization
void
Start
()
{
LoadTracks
();
}
}
// Update is called once per frame
void
Update
()
{
}
// Update is called once per frame
void
Update
()
{
}
void
LoadTracks
()
{
string
[]
testTracks
=
{
"Track1"
,
"Track2"
,
"Some Other Track"
,
"Foo"
,
"Bar"
};
TrackInfo
[]
tracks
=
testTracks
.
Select
(
s
=>
new
TrackInfo
(
s
)).
ToArray
();
var
files
=
new
DirectoryInfo
(
"Assets/Tracks"
).
GetFiles
(
"*.bpe"
,
SearchOption
.
AllDirectories
);
TrackInfo
[]
tracks
=
files
.
Select
(
s
=>
new
TrackInfo
(
s
)).
ToArray
();
foreach
(
TrackInfo
track
in
tracks
)
{
...
...
Assets/Tracks.meta
0 → 100644
View file @
ebe9325d
fileFormatVersion: 2
guid: b6e56e309725cb345a3cf17a292a47c6
folderAsset: yes
timeCreated: 1501323034
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Assets/Tracks/Tutorial.meta
0 → 100644
View file @
ebe9325d
fileFormatVersion: 2
guid: 7c71eb6382b65024390d02b33054ad2d
folderAsset: yes
timeCreated: 1501323034
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Assets/Tracks/Tutorial/tutorial1.bpe
0 → 100644
View file @
ebe9325d
#TITLE Tutorial
#ARTIST Various Artists
#GENRE TUTORIAL CORE
#BPM 440
#PLAYLEVEL 0
#001SBT 00AA00BB00AA00BB
#002SBT AABBCCDD000000000000000000000000
#002LBT 00000000000000AA000000BB
\ No newline at end of file
Assets/Tracks/Tutorial/tutorial1.bpe.meta
0 → 100644
View file @
ebe9325d
fileFormatVersion: 2
guid: 3460e0f5820b5e84b85eed642afe9c38
timeCreated: 1501736693
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
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