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