added spins that don't work i mean forgge
This commit is contained in:
parent
f712d1bd89
commit
b0a9dbfca7
|
@ -83,6 +83,20 @@ namespace HeavenStudio.Games.Loaders
|
|||
},
|
||||
defaultLength = 4.0f,
|
||||
},
|
||||
new GameAction("spin", "Spin it Boys!")
|
||||
{
|
||||
function = delegate {
|
||||
var e = eventCaller.currentEntity;
|
||||
if (eventCaller.gameManager.minigameObj.TryGetComponent(out FrogHop instance)) {
|
||||
instance.SpinItBoys(e.beat, e["spotlights"]);
|
||||
}
|
||||
},
|
||||
parameters = new List<Param>()
|
||||
{
|
||||
new Param("spotlights", true, "Automatic Spotlights", "Handles spotlight switching automatically."),
|
||||
},
|
||||
defaultLength = 4.0f,
|
||||
},
|
||||
new GameAction("spotlights", "Spotlights")
|
||||
{
|
||||
function = delegate {
|
||||
|
@ -367,6 +381,17 @@ namespace HeavenStudio.Games
|
|||
MultiSound.Play(sounds.ToArray());
|
||||
}
|
||||
|
||||
public void SpinItBoys (double beat, bool spotlights)
|
||||
{
|
||||
CueCommon(beat, spotlights);
|
||||
|
||||
var actions = new List<BeatAction.Action>();
|
||||
var sounds = new List<MultiSound.Sound>();
|
||||
|
||||
BeatAction.New(this, actions);
|
||||
MultiSound.Play(sounds.ToArray());
|
||||
}
|
||||
|
||||
public void CueCommon(double beat, bool spotlights = true)
|
||||
{
|
||||
startBackHop = beat;
|
||||
|
|
Loading…
Reference in a new issue