Skip to content

Commit

Permalink
Update star power haptics in UpdateBaseVisuals instead of OnStarPower…
Browse files Browse the repository at this point in the history
…PhraseHit (YARC-Official#687)
  • Loading branch information
sanjay900 authored Feb 16, 2024
1 parent 4d9b2b7 commit 3e11252
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Assets/Script/Gameplay/Player/BasePlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,6 @@ protected virtual void OnStarPowerPhraseHit()
{
GlobalVariables.AudioManager.PlaySoundEffect(SfxSample.StarPowerAward);
}

foreach (var haptics in SantrollerHaptics)
{
haptics.SetStarPowerFill((float) BaseStats.StarPowerAmount);
}
}

protected virtual void OnStarPowerStatus(bool active)
Expand Down
5 changes: 5 additions & 0 deletions Assets/Script/Gameplay/Player/TrackPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ protected void UpdateBaseVisuals(BaseStats stats, BaseEngineParameters enginePar
SunburstEffects.SetSunburstEffects(groove, stats.IsStarPowerActive);

TrackView.UpdateNoteStreak(stats.Combo);

foreach (var haptics in SantrollerHaptics)
{
haptics.SetStarPowerFill((float) BaseStats.StarPowerAmount);
}
}

protected override void UpdateNotes(double songTime)
Expand Down

0 comments on commit 3e11252

Please sign in to comment.