Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Commit

Permalink
Final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kassout committed Apr 10, 2023
1 parent 91bd95a commit c9eac31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 0 additions & 2 deletions SOLID/SOLID/Assets/Scripts/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ public void ReceiveDamaged()
{
_playerRenderer.FlashRed();
}


}
11 changes: 3 additions & 8 deletions SOLID/SOLID/Assets/Scripts/PlayerAnimations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ public class PlayerAnimations : MonoBehaviour
[SerializeField]
private Animator playerAnimator;

private static readonly int Walk = Animator.StringToHash("Walk");

public void SetupAnimations(Vector2 movement)
{
if (movement.magnitude > 0)
{
playerAnimator.SetBool("Walk", true);
}
else
{
playerAnimator.SetBool("Walk", false);
}
playerAnimator.SetBool(Walk, movement.magnitude > 0);
}
}
4 changes: 1 addition & 3 deletions SOLID/SOLID/Assets/Scripts/PlayerSounds.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;

public class PlayerSounds : MonoBehaviour
{
Expand Down

0 comments on commit c9eac31

Please sign in to comment.