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
7 years ago
by
16이상민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified judging machanism
parent
fca95994
Changes
2
Hide 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
private
string
[]
notenames
=
new
string
[]
{
"SBT"
,
"LBT"
,
"SMO"
,
"LMO"
};
public
Note
Current
public
Note
Current
BT
{
get
{
float
timing
=
0
;
string
type
=
null
;
foreach
(
var
x
in
n
otenames
)
foreach
(
var
x
in
n
ew
string
[]
{
"SBT"
,
"LBT"
}
)
{
if
(
enables
[
x
].
Count
==
0
)
continue
;
...
...
@@ -46,13 +46,27 @@ namespace JudgeModule
timing
=
enables
[
x
][
0
].
Instance
.
StartTiming
;
}
}
return
type
==
null
?
null
:
enables
[
type
][
0
].
Instance
;
}
}
if
(
type
==
null
)
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
;
}
}
private
float
MsPerBeat
{
get
...
...
This diff is collapsed.
Click to expand it.
Assets/Script/InGameManager.cs
View file @
5d59739a
...
...
@@ -143,7 +143,13 @@ public class InGameManager : MonoBehaviour
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
)
judgemanager
.
JudgeNote
(
note
,
timing
);
}
...
...
This diff is collapsed.
Click to expand it.
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