mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-27 12:03:00 +00:00
Added Change Lion Count event to Clappy Trio
1-8 lions thats crazy
This commit is contained in:
parent
48b83faa68
commit
5d99596c67
2 changed files with 17 additions and 0 deletions
|
@ -150,6 +150,19 @@ namespace RhythmHeavenMania.Games.ClappyTrio
|
|||
PlayAnimationAll("Bop");
|
||||
}
|
||||
|
||||
public void ChangeLionCount(int lions)
|
||||
{
|
||||
for(int i=1; i<lionCount; i++)
|
||||
{
|
||||
Destroy(Lion[i]);
|
||||
}
|
||||
Lion.RemoveRange(1, lionCount - 1);
|
||||
lionCount = lions;
|
||||
SetFace(0, 0);
|
||||
Start();
|
||||
PlayAnimationAll("Idle");
|
||||
}
|
||||
|
||||
private void PlayAnimationAll(string anim)
|
||||
{
|
||||
for (int i = 0; i < Lion.Count; i++)
|
||||
|
|
|
@ -211,6 +211,10 @@ namespace RhythmHeavenMania
|
|||
new GameAction("bop", delegate { ClappyTrio.instance.Bop(eventCaller.currentEntity.beat); } ),
|
||||
new GameAction("prepare", delegate { ClappyTrio.instance.Prepare(0); } ),
|
||||
new GameAction("prepare_alt", delegate { ClappyTrio.instance.Prepare(3); } ),
|
||||
new GameAction("change lion count", delegate { ClappyTrio.instance.ChangeLionCount((int)eventCaller.currentEntity.valA); }, 0.5f, false, new List<Param>()
|
||||
{
|
||||
new Param("valA", new EntityTypes.Integer(1, 8, 3), "Lion Count")
|
||||
}),
|
||||
}),
|
||||
new Minigame("spaceball", "Spaceball", "00A518", false, false, new List<GameAction>()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue