Fix gameover, finetune fun values, remove debug
This commit is contained in:
parent
fdf9b32978
commit
9d039e8750
@ -494,7 +494,7 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Player: {fileID: 8489029732530782806}
|
Player: {fileID: 8489029732530782806}
|
||||||
MaxFun: 100
|
MaxFun: 100
|
||||||
FunDegradeSpeed: 3
|
FunDegradeSpeed: 4
|
||||||
StandingStillMultiplier: 1.5
|
StandingStillMultiplier: 1.5
|
||||||
WeaponFun: 20
|
WeaponFun: 20
|
||||||
EnemyExplosionFun: 6
|
EnemyExplosionFun: 6
|
||||||
|
@ -44,14 +44,13 @@ namespace Saltosion.OneWeapon {
|
|||||||
CurrentDamageBoost = Mathf.Floor((CurrentFun / 100) * 12) / 12;
|
CurrentDamageBoost = Mathf.Floor((CurrentFun / 100) * 12) / 12;
|
||||||
|
|
||||||
if (CurrentFun <= 0) {
|
if (CurrentFun <= 0) {
|
||||||
SceneManager.LoadScene(2);
|
SceneManager.LoadScene(3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AddFun(float fun) {
|
private void AddFun(float fun) {
|
||||||
float NewFun = CurrentFun + fun;
|
float NewFun = CurrentFun + fun;
|
||||||
CurrentFun = Mathf.Min(MaxFun, NewFun);
|
CurrentFun = Mathf.Min(MaxFun, NewFun);
|
||||||
Debug.Log("Added " + fun + " fun, " + CurrentFun);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ReceiveNewWeapon() {
|
public void ReceiveNewWeapon() {
|
||||||
|
Loading…
Reference in New Issue
Block a user