Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1e5bc6d

Browse files
fixed issue with kills
kills did not reset when you died but this is know fixed
1 parent 42e3d01 commit 1e5bc6d

File tree

9 files changed

+497
-10
lines changed

9 files changed

+497
-10
lines changed

‎Native/Assets/Enemy/Prefabs/Fist_E.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ MonoBehaviour:
202202
firstAttack: 1
203203
attackWait: 0.5
204204
melee: 1
205-
meleeAttackDistance: 0
205+
meleeAttackDistance: 2
206206
minAngle: 25
207207
meleeStoppingDistance: 1.5
208208
auto: 0

‎Native/Assets/Menus/EndScreen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void OnEnable()
9797
bestTime.text = savedFastestTime.ToString();
9898

9999

100-
if (gameManager.deaths < savedLowestDeaths || gameManager.deaths < 0)
100+
if (gameManager.deaths < savedLowestDeaths || savedLowestDeaths < 0)
101101
{
102102
PlayerPrefs.SetInt("LowestDeaths" + gameManager.currentSceneIndex, gameManager.deaths);
103103
deathsNewBest.SetActive(true);

‎Native/Assets/Menus/PowerupMenu.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public void OnEnable()
2323
// need to change the active map to the menus map and then also make the gamplay stop
2424
playerInput.SwitchCurrentActionMap("Menus_Map"); // default = Player_Map
2525
Time.timeScale = 0f;
26-
Gamepad.current.ResetHaptics();
26+
try { Gamepad.current.ResetHaptics(); }
27+
catch { /* No Controller Connected Yet */ }
28+
2729
}
2830

2931
public void Update()

‎Native/Assets/Player/Scripts/Health.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public void changeHealth(float ammount)
3737
else
3838
{
3939
gameManager.deaths++;
40+
gameManager.resetKills();
4041
Gamepad.current.ResetHaptics();
4142
SceneManager.LoadSceneAsync(currentScene);
4243
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /