mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 20:37:39 +02:00
Added generic Applause sound
Cleaned up Mr. Upbeat and Drumming Practice sounds as a result
This commit is contained in:
@ -9,6 +9,7 @@ namespace RhythmHeavenMania.Games.DrummingPractice
|
||||
public class DrummerHit : PlayerActionObject
|
||||
{
|
||||
public float startBeat;
|
||||
public bool applause = true;
|
||||
private bool hit = false;
|
||||
private bool hasHit = false;
|
||||
|
||||
@ -35,8 +36,8 @@ namespace RhythmHeavenMania.Games.DrummingPractice
|
||||
if (!hit && Conductor.instance.GetPositionFromBeat(startBeat, 1) >= 1)
|
||||
{
|
||||
Jukebox.PlayOneShotGame("drummingPractice/drum");
|
||||
DrummingPractice.instance.leftDrummer.Hit(true);
|
||||
DrummingPractice.instance.rightDrummer.Hit(true);
|
||||
DrummingPractice.instance.leftDrummer.Hit(true, false);
|
||||
DrummingPractice.instance.rightDrummer.Hit(true, false);
|
||||
hit = true;
|
||||
if (hasHit) CleanUp();
|
||||
}
|
||||
@ -60,7 +61,7 @@ namespace RhythmHeavenMania.Games.DrummingPractice
|
||||
{
|
||||
if (!hasHit)
|
||||
{
|
||||
DrummingPractice.instance.player.Hit(_hit);
|
||||
DrummingPractice.instance.player.Hit(_hit, applause, true);
|
||||
DrummingPractice.instance.SetFaces(_hit ? 1 : 2);
|
||||
|
||||
hasHit = true;
|
||||
|
Reference in New Issue
Block a user