Skip to content

Commit

Permalink
Fixed: Game Over screen does not show up when time is running out
Browse files Browse the repository at this point in the history
  • Loading branch information
markellus committed Jan 28, 2019
1 parent 3a484aa commit 1f1d233
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 33 deletions.
18 changes: 0 additions & 18 deletions Unity/Assets/NewBehaviourScript.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Unity/Assets/NewBehaviourScript.cs.meta

This file was deleted.

8 changes: 4 additions & 4 deletions Unity/Assets/Scripts/Enemies/PlayerBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ void OnTriggerEnter2D(Collider2D col)

void SetAnimation()
{
if(spawn)
if (GameState.isDead)
{
RendererRun.sprite = AnimationIdle.GetNext();
RendererRun.sprite = AnimationDead.GetNext();
RendererDust.sprite = null;
}
else if (GameState.isDead)
else if (spawn)
{
RendererRun.sprite = AnimationDead.GetNext();
RendererRun.sprite = AnimationIdle.GetNext();
RendererDust.sprite = null;
}
else
Expand Down

0 comments on commit 1f1d233

Please sign in to comment.