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
2e941414
Commit
2e941414
authored
Feb 14, 2019
by
gstuitje
Browse files
Now Ahava levels slower than the other characters.
parent
c3ad29e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
RingMaster/RingMaster/Assets/Scripts/DaytimeScripts/DaytimeManager.cs
View file @
2e941414
...
@@ -17,9 +17,9 @@ public class DaytimeManager : MonoBehaviour {
...
@@ -17,9 +17,9 @@ public class DaytimeManager : MonoBehaviour {
if
(
Ahava
!=
null
&&
Ahava
.
activeSelf
)
if
(
Ahava
!=
null
&&
Ahava
.
activeSelf
)
{
{
float
newLevel
=
1
float
newLevel
=
1
+
GameManager
.
JohnLevel
-
1
+
GameManager
.
JohnLevel
*
0.5f
-
1
+
GameManager
.
SilasLevel
-
1
+
GameManager
.
SilasLevel
*
0.5f
-
1
+
GameManager
.
SimonLevel
-
1
;
+
GameManager
.
SimonLevel
*
0.5f
-
1
;
float
diffinLevels
=
newLevel
-
GameManager
.
AhavaLevel
;
float
diffinLevels
=
newLevel
-
GameManager
.
AhavaLevel
;
print
(
"diff"
+
diffinLevels
);
print
(
"diff"
+
diffinLevels
);
print
(
"start"
+
GameManager
.
AhavaLevel
%
1
);
print
(
"start"
+
GameManager
.
AhavaLevel
%
1
);
...
...
RingMaster/RingMaster/Assets/Scripts/GameManager.cs
View file @
2e941414
...
@@ -5,14 +5,10 @@ using UnityEngine;
...
@@ -5,14 +5,10 @@ using UnityEngine;
public
class
GameManager
:
MonoBehaviour
{
public
class
GameManager
:
MonoBehaviour
{
public
static
float
AhavaLevel
;
public
static
float
AhavaLevel
;
public
static
float
SilasLevel
=
1
.8
f
;
public
static
float
SilasLevel
=
1f
;
public
static
float
SimonLevel
=
1f
;
public
static
float
SimonLevel
=
1f
;
public
static
float
JohnLevel
=
1f
;
public
static
float
JohnLevel
=
1f
;
public
static
float
SilasLevelStored
=
1.8f
;
public
static
float
SimonLevelStored
=
1f
;
public
static
float
JohnLevelStored
=
1f
;
public
static
bool
AhavaLevelUp
;
public
static
bool
AhavaLevelUp
;
private
static
bool
SilasLevelUp
=
true
;
private
static
bool
SilasLevelUp
=
true
;
...
@@ -122,7 +118,7 @@ public class GameManager : MonoBehaviour {
...
@@ -122,7 +118,7 @@ public class GameManager : MonoBehaviour {
}
}
public
static
void
reset
(){
public
static
void
reset
(){
SilasLevel
=
1.
1f
;
SilasLevel
=
1f
;
SimonLevel
=
1f
;
SimonLevel
=
1f
;
JohnLevel
=
1f
;
JohnLevel
=
1f
;
...
...
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