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
5d59739a
Commit
5d59739a
authored
Feb 27, 2018
by
16이상민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified judging machanism
parent
fca95994
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
7 deletions
+27
-7
NoteManager.cs
Assets/JudgeModule/NoteManager.cs
+20
-6
InGameManager.cs
Assets/Script/InGameManager.cs
+7
-1
No files found.
Assets/JudgeModule/NoteManager.cs
View file @
5d59739a
...
@@ -29,13 +29,13 @@ namespace JudgeModule
...
@@ -29,13 +29,13 @@ namespace JudgeModule
private
string
[]
notenames
private
string
[]
notenames
=
new
string
[]
{
"SBT"
,
"LBT"
,
"SMO"
,
"LMO"
};
=
new
string
[]
{
"SBT"
,
"LBT"
,
"SMO"
,
"LMO"
};
public
Note
Current
public
Note
Current
BT
{
{
get
get
{
{
float
timing
=
0
;
float
timing
=
0
;
string
type
=
null
;
string
type
=
null
;
foreach
(
var
x
in
n
otenames
)
foreach
(
var
x
in
n
ew
string
[]
{
"SBT"
,
"LBT"
}
)
{
{
if
(
enables
[
x
].
Count
==
0
)
if
(
enables
[
x
].
Count
==
0
)
continue
;
continue
;
...
@@ -47,9 +47,23 @@ namespace JudgeModule
...
@@ -47,9 +47,23 @@ namespace JudgeModule
}
}
}
}
if
(
type
==
null
)
return
type
==
null
?
null
:
enables
[
type
][
0
].
Instance
;
return
null
;
}
return
enables
[
type
][
0
].
Instance
;
}
public
Note
CurrentSMO
{
get
{
return
enables
[
"SMO"
].
Count
==
0
?
null
:
enables
[
"SMO"
][
0
].
Instance
;
}
}
public
Note
CurrentLMO
{
get
{
return
enables
[
"LMO"
].
Count
==
0
?
null
:
enables
[
"LMO"
][
0
].
Instance
;
}
}
}
}
...
...
Assets/Script/InGameManager.cs
View file @
5d59739a
...
@@ -143,7 +143,13 @@ public class InGameManager : MonoBehaviour
...
@@ -143,7 +143,13 @@ public class InGameManager : MonoBehaviour
return
;
return
;
}
}
Note
note
=
notemanager
.
Current
;
JudgeNote
(
notemanager
.
CurrentBT
,
timing
);
JudgeNote
(
notemanager
.
CurrentSMO
,
timing
);
JudgeNote
(
notemanager
.
CurrentLMO
,
timing
);
}
private
void
JudgeNote
(
Note
note
,
float
timing
)
{
if
(
note
!=
null
)
if
(
note
!=
null
)
judgemanager
.
JudgeNote
(
note
,
timing
);
judgemanager
.
JudgeNote
(
note
,
timing
);
}
}
...
...
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