Skip to content

Commit

Permalink
Fix vulture score points
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetrergeru committed May 2, 2023
1 parent fdfdbb5 commit 238de73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/VultureScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ void FixedUpdate()
_fleingTime -= Time.deltaTime;
if (_fleingTime < 0)
{
_player.GetComponent<PlayerTipScript>().AddScore(100);
Destroy(this.gameObject);
}
Sound.pitch += 0.003f;
Expand Down Expand Up @@ -138,6 +137,7 @@ private void StartCombat(PlayerController player)
public void StartFleing(PlayerController player)
{
_player = player;
_player.GetComponent<PlayerTipScript>().AddScore(100);
Sound.loop = true;
Sound.pitch = 1.5f;
Sound.Play();
Expand Down

0 comments on commit 238de73

Please sign in to comment.