Skip to content

Commit 659bfde

Browse files
authored
Merge pull request #12 from auhsoj20/Score_not_under_zero
Score not under zero
2 parents 121c19f + cc0994c commit 659bfde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Assets/SafeZoneCollisionScript.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ void Update()
2323
else
2424
{
2525
StateManager.Instance.Score -= 1000;
26+
27+
if (StateManager.Instance.Score < 0)
28+
{
29+
30+
StateManager.Instance.Score = 0;
31+
32+
}
2633
}
2734

2835
Destroy(gameObject);

0 commit comments

Comments
 (0)