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
57d048ed
Commit
57d048ed
authored
Aug 24, 2017
by
16도재형
Committed by
Chae Ho Shin
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SetSelect scene almost done
parent
38fb1af7
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
74 additions
and
23 deletions
+74
-23
SetSelect.unity
Assets/Scene/SetSelect.unity
+12
-0
InputManager.cs
Assets/Script/InputManager.cs
+11
-5
MotionNote.cs
Assets/Script/MotionNote.cs
+2
-0
TrackManager.cs
Assets/Script/TrackManager.cs
+12
-3
Test.meta
Assets/Tracks/Test.meta
+2
-2
Test.bpe
Assets/Tracks/Test/Test.bpe
+10
-0
Test.bpe.meta
Assets/Tracks/Test/Test.bpe.meta
+2
-2
Test.wav
Assets/Tracks/Test/Test.wav
+0
-0
Test.wav.meta
Assets/Tracks/Test/Test.wav.meta
+23
-0
tutorial1.bpe
Assets/Tracks/Tutorial/tutorial1.bpe
+0
-11
No files found.
Assets/Scene/SetSelect.unity
View file @
57d048ed
...
...
@@ -391,6 +391,7 @@ GameObject:
-
component
:
{
fileID
:
609057691
}
-
component
:
{
fileID
:
609057690
}
-
component
:
{
fileID
:
609057689
}
-
component
:
{
fileID
:
609057692
}
m_Layer
:
0
m_Name
:
Managers
m_TagString
:
Untagged
...
...
@@ -439,6 +440,17 @@ Transform:
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!114
&609057692
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
609057688
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
6e697643158480b4ba850d906eac1bc2
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
---
!u!1
&634338382
GameObject
:
m_ObjectHideFlags
:
0
...
...
Assets/Script/InputManager.cs
View file @
57d048ed
...
...
@@ -22,7 +22,13 @@ public class InputManager : MonoBehaviour {
}
}
private
bool
IsButtonDown
{
get
;
set
;
}
private
KeyCode
theButton
=
KeyCode
.
Space
|
KeyCode
.
Joystick1Button0
;
private
bool
IsButtonDownPrev
{
get
;
set
;
}
private
bool
IsButtonDown
{
get
{
return
Input
.
GetKey
(
theButton
);
}
}
public
MotionState
CurrentMotionState
{
get
;
set
;
}
...
...
@@ -30,7 +36,7 @@ public class InputManager : MonoBehaviour {
{
get
{
return
!
IsButtonDown
&&
Input
.
anyKey
;
return
!
IsButtonDown
Prev
&&
IsButtonDown
;
}
}
...
...
@@ -38,7 +44,7 @@ public class InputManager : MonoBehaviour {
{
get
{
return
IsButtonDown
&&
!
Input
.
anyKey
;
return
IsButtonDown
Prev
&&
!
IsButtonDown
;
}
}
...
...
@@ -46,7 +52,7 @@ public class InputManager : MonoBehaviour {
{
get
{
return
IsButtonDown
&&
Input
.
anyKey
;
return
IsButtonDown
Prev
&&
IsButtonDown
;
}
}
...
...
@@ -58,6 +64,6 @@ public class InputManager : MonoBehaviour {
// Update is called once per frame
void
Update
()
{
IsButtonDown
=
Input
.
anyKey
;
IsButtonDown
Prev
=
IsButtonDown
;
}
}
\ No newline at end of file
Assets/Script/MotionNote.cs
View file @
57d048ed
...
...
@@ -32,6 +32,8 @@ public abstract class MotionNote : Note
protected
static
Sprite
LoadNewSprite
(
string
FilePath
,
float
PixelsPerUnit
=
100.0f
)
{
return
null
;
Sprite
NewSprite
=
new
Sprite
();
Texture2D
SpriteTexture
=
LoadTexture
(
FilePath
);
NewSprite
=
Sprite
.
Create
(
SpriteTexture
,
...
...
Assets/Script/TrackManager.cs
View file @
57d048ed
...
...
@@ -24,14 +24,17 @@ public class TrackManager : MonoBehaviour {
currentBackgroundIndex
=
(
currentBackgroundIndex
+
1
)
%
2
;
trackList
.
GetComponent
<
RawImage
>().
texture
=
backgrounds
[
currentBackgroundIndex
];
GameManager
.
Instance
.
CurrentTrack
=
trackList
.
transform
.
GetChild
(
2
).
GetComponent
<
TrackInfoHolder
>().
trackInfo
;
Debug
.
Log
(
GameManager
.
Instance
.
CurrentTrack
.
Title
);
if
(
selectedTrackItem
!=
null
)
selectedTrackItem
.
GetComponentInChildren
<
Text
>().
color
=
Color
.
white
;
selectedTrackItem
=
trackList
.
transform
.
GetChild
(
2
).
gameObject
;
selectedTrackItem
.
GetComponentInChildren
<
Text
>().
color
=
Color
.
black
;
}
// Use this for initialization
void
Start
()
{
LoadTracks
();
TrackBrowse
();
}
// Update is called once per frame
...
...
@@ -47,6 +50,8 @@ public class TrackManager : MonoBehaviour {
trackList
.
transform
.
GetChild
(
trackList
.
transform
.
childCount
-
1
).
SetAsFirstSibling
();
TrackBrowse
();
}
if
(
InputManager
.
Instance
.
IsButtonPressed
)
StartTrack
();
}
void
LoadTracks
()
...
...
@@ -54,7 +59,9 @@ public class TrackManager : MonoBehaviour {
var
files
=
new
DirectoryInfo
(
"Assets/Tracks"
)
.
GetFiles
(
"*.bpe"
,
SearchOption
.
AllDirectories
);
TrackInfo
[]
tracks
=
files
.
Select
(
s
=>
new
TrackInfo
(
s
)).
ToArray
();
List
<
TrackInfo
>
tracks
=
files
.
Select
(
s
=>
new
TrackInfo
(
s
)).
ToList
();
while
(
tracks
.
Count
()
<
5
)
tracks
.
AddRange
(
tracks
);
foreach
(
TrackInfo
track
in
tracks
)
{
...
...
@@ -73,6 +80,8 @@ public class TrackManager : MonoBehaviour {
GameManager
.
Instance
.
CurrentTrack
=
holder
.
trackInfo
;
Destroy
(
this
);
GameManager
.
Instance
.
SceneTransition
(
"InGame"
);
}
}
\ No newline at end of file
Assets/Tracks/T
utorial
.meta
→
Assets/Tracks/T
est
.meta
View file @
57d048ed
fileFormatVersion: 2
guid:
7c71eb6382b65024390d02b33054ad2d
guid:
a3a5d9cfc7425bc4e8020ffd9fa7cea5
folderAsset: yes
timeCreated: 150
1323034
timeCreated: 150
3582657
licenseType: Free
DefaultImporter:
userData:
...
...
Assets/Tracks/Test/Test.bpe
0 → 100644
View file @
57d048ed
#TITLE PARANOiA -Test-
#ARTIST 128
#GENRE None
#BPM 128
#PLAYLEVEL
#001SBT AAAAAAAA
#002SMO CPCPCPCP
#003LMO BH00
#004LMO BH00
Assets/Tracks/T
utorial/tutorial1
.bpe.meta
→
Assets/Tracks/T
est/Test
.bpe.meta
View file @
57d048ed
fileFormatVersion: 2
guid:
3460e0f5820b5e84b85eed642afe9c38
timeCreated: 150
1736693
guid:
5ed10dbe99e5df949a1647e3e633e6cb
timeCreated: 150
3582657
licenseType: Free
DefaultImporter:
userData:
...
...
Assets/Tracks/Test/Test.wav
0 → 100644
View file @
57d048ed
File added
Assets/Tracks/Test/Test.wav.meta
0 → 100644
View file @
57d048ed
fileFormatVersion: 2
guid: 39b6be399847d4b4e8a2341a88a21454
timeCreated: 1503582660
licenseType: Free
AudioImporter:
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
Assets/Tracks/Tutorial/tutorial1.bpe
deleted
100644 → 0
View file @
38fb1af7
#TITLE Tutorial
#ARTIST Various Artists
#GENRE TUTORIAL CORE
#BPM 120
#PLAYLEVEL 0
#002SBT AA000000000000000000000000AA
#003LBT AA00000000000000AA00BB00BB000000
#004LBT AA00
#008LBT 00AA
\ No newline at end of file
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