Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gstuitje
RingMaster
Commits
0bf5fc3c
Commit
0bf5fc3c
authored
Jan 22, 2019
by
astatham
Browse files
Implemented pie limit
parent
76355526
Changes
4
Show whitespace changes
Inline
Side-by-side
RingMaster/RingMaster/.vs/RingMaster/xs/sqlite3/storage.ide-wal
View file @
0bf5fc3c
No preview for this file type
RingMaster/RingMaster/Assets/Scripts/PieScripts/Needle.cs
View file @
0bf5fc3c
...
...
@@ -12,16 +12,20 @@ public class Needle : MonoBehaviour {
void
Update
()
{
if
(
PieManager
.
pieCount
>
0
)
{
if
(
Input
.
GetKeyDown
(
"space"
))
{
finalAngle
=
currentAngle
;
angleChangeSpeed
=
0
;
PowerBar
.
previousPos
=
-
9f
;
}
else
if
(!
Input
.
GetKey
(
"space"
)){
}
else
if
(!
Input
.
GetKey
(
"space"
))
{
MoveNeedle
();
}
}
}
public
void
MoveNeedle
()
{
...
...
RingMaster/RingMaster/Assets/Scripts/PieScripts/PieManager.cs
View file @
0bf5fc3c
...
...
@@ -10,8 +10,8 @@ public class PieManager : MonoBehaviour {
private
void
Update
()
{
/*
if
(pieCount
> 0 && !pieInScene && !start
){
Needle.ResetAngles()
;
}
*/
if
(
pieCount
==
0
){
return
;
}
}
}
RingMaster/RingMaster/Assets/Scripts/PieScripts/PowerBar.cs
View file @
0bf5fc3c
...
...
@@ -39,7 +39,7 @@ public class PowerBar : MonoBehaviour {
currentPos
+=
(
posChangeSpeed
*
Time
.
deltaTime
);
}
if
(
Input
.
GetKeyUp
(
"space"
))
if
(
Input
.
GetKeyUp
(
"space"
)
&&
PieManager
.
pieCount
>
0
)
{
finalPos
=
currentPos
;
previousPos
=
currentPos
;
...
...
Write
Preview
Supports
Markdown
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