mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
Trick on the Class: refactor object sound
This commit is contained in:
parent
995d20d522
commit
1775923118
1 changed files with 4 additions and 5 deletions
|
@ -98,7 +98,7 @@ namespace HeavenStudio.Games.Scripts_TrickClass
|
||||||
// no input?
|
// no input?
|
||||||
if (Conductor.instance.GetPositionFromBeat(startBeat, dodgeBeats) >= Minigame.EndTime())
|
if (Conductor.instance.GetPositionFromBeat(startBeat, dodgeBeats) >= Minigame.EndTime())
|
||||||
{
|
{
|
||||||
PlayDodgeSound();
|
Jukebox.PlayOneShotGame(GetDodgeSound());
|
||||||
miss = true;
|
miss = true;
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
@ -122,17 +122,16 @@ namespace HeavenStudio.Games.Scripts_TrickClass
|
||||||
TrickClass.instance.PlayerDodge();
|
TrickClass.instance.PlayerDodge();
|
||||||
dodged = true;
|
dodged = true;
|
||||||
MultiSound.Play(new MultiSound.Sound[] {
|
MultiSound.Play(new MultiSound.Sound[] {
|
||||||
new MultiSound.Sound("trickClass/ball_impact", startBeat + flyBeats, volume: 0.5f),
|
new MultiSound.Sound(GetDodgeSound(), startBeat + flyBeats, volume: 0.5f),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PlayDodgeSound()
|
public string GetDodgeSound()
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
Jukebox.PlayOneShotGame("trickClass/ball_impact");
|
return "trickClass/ball_impact";
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue