fix berry times
This commit is contained in:
1 parent
115c4a34a7
commit
aa14a677dc
1 file changed
+5
@@ -513,6 +513,7 @@ public class GamePlayer : MonoBehaviour
|
|||||||
Destroy(ultraBerry);
|
Destroy(ultraBerry);
|
||||||
totalUltraBerries++;
|
totalUltraBerries++;
|
||||||
timeslowLeft = 0f;
|
timeslowLeft = 0f;
|
||||||
|
timefreezeLeft = 0f;
|
||||||
speedyLeft = 0f;
|
speedyLeft = 0f;
|
||||||
if (slownessLeft > 0f)
|
if (slownessLeft > 0f)
|
||||||
{
|
{
|
||||||
@@ -557,6 +558,7 @@ public class GamePlayer : MonoBehaviour
|
|||||||
boostLeft = 0f;
|
boostLeft = 0f;
|
||||||
slownessLeft = 0f;
|
slownessLeft = 0f;
|
||||||
timeslowLeft = 0f;
|
timeslowLeft = 0f;
|
||||||
|
timefreezeLeft = 0f;
|
||||||
speedyLeft = 10f;
|
speedyLeft = 10f;
|
||||||
totalSpeedyBerries++;
|
totalSpeedyBerries++;
|
||||||
UpdateStats(10, 0);
|
UpdateStats(10, 0);
|
||||||
@@ -591,6 +593,8 @@ public class GamePlayer : MonoBehaviour
|
|||||||
AudioSource.PlayClipAtPoint(Resources.Load<AudioClip>("Sounds/SlowMotion"), Camera.main.transform.position, 1.2f * BazookaManager.Instance.GetSettingSFXVolume());
|
AudioSource.PlayClipAtPoint(Resources.Load<AudioClip>("Sounds/SlowMotion"), Camera.main.transform.position, 1.2f * BazookaManager.Instance.GetSettingSFXVolume());
|
||||||
Destroy(timeslowBerry);
|
Destroy(timeslowBerry);
|
||||||
boostLeft = 0f;
|
boostLeft = 0f;
|
||||||
|
timeslowLeft = 0f;
|
||||||
|
timefreezeLeft = 0f;
|
||||||
speedyLeft = 0f;
|
speedyLeft = 0f;
|
||||||
timeslowLeft = 10f;
|
timeslowLeft = 10f;
|
||||||
totalTimeSlowBerries++;
|
totalTimeSlowBerries++;
|
||||||
@@ -659,6 +663,7 @@ public class GamePlayer : MonoBehaviour
|
|||||||
Destroy(timefreezeBerry);
|
Destroy(timefreezeBerry);
|
||||||
boostLeft = 0f;
|
boostLeft = 0f;
|
||||||
speedyLeft = 0f;
|
speedyLeft = 0f;
|
||||||
|
slownessLeft = 0f;
|
||||||
timeslowLeft = 0f;
|
timeslowLeft = 0f;
|
||||||
timefreezeLeft = 5f;
|
timefreezeLeft = 5f;
|
||||||
totalTimeFreezeBerries++;
|
totalTimeFreezeBerries++;
|
||||||
|
|||||||
Reference in new issue
Block a user