Fix gameover, finetune fun values, remove debug

This commit is contained in:
Sofia 2019-08-04 21:29:45 +03:00
parent fdf9b32978
commit 9d039e8750
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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() {