Fixing Mytiaoga's mistakes (save Tap Trial for later)

i've noticed the games created by the owner doesn't use type2, thus the said games are glitching out in terms of
right click options

i don't know multiple toggles it just breaks the editor??
This commit is contained in:
KrispyDotlessI 2022-08-24 20:47:41 +08:00
parent 263aaa797d
commit d7f52cb13b
3 changed files with 18 additions and 5 deletions

View file

@ -33,7 +33,7 @@ namespace HeavenStudio.Games.Loaders
new GameAction("forthington voice lines", delegate { AirRally.instance.ForthVoice(e.currentEntity.type, e.currentEntity.type2); }, 1f, false, new List<Param>()
{
new Param("type", AirRally.CountSound.one, "Type", "The number Forthington will say"),
new Param("type", AirRally.DistanceSound.close, "Type", "How far is Forthington?")
new Param("type2", AirRally.DistanceSound.close, "Type", "How far is Forthington?")
}),
});

View file

@ -25,7 +25,7 @@ namespace HeavenStudio.Games.Loaders
new GameAction("look at", delegate { FirstContact.instance.lookAtDirection(eventCaller.currentEntity.type, eventCaller.currentEntity.type); }, .5f, false, new List<Param>()
{
new Param("type", FirstContact.alienLookAt.lookAtTranslator, "alien look at what", "[Alien] will look at what"),
new Param("type", FirstContact.translatorLookAt.lookAtAlien, "translator look at what", "[Translator] will look at what"),
new Param("type2", FirstContact.translatorLookAt.lookAtAlien, "translator look at what", "[Translator] will look at what"),
}),
new GameAction("live bar beat", delegate { FirstContact.instance.liveBarBeat(eventCaller.currentEntity.toggle); }, .5f, false, new List<Param>()
{

View file

@ -9,7 +9,7 @@ namespace HeavenStudio.Games.Loaders
public static class AbgMarcherLoader
{
public static Minigame AddGame(EventCaller eventCaller) {
return new Minigame("marchingOrders", "Marching Orders \n<color=#eb5454>[WIP]</color>", "000000", false, false, new List<GameAction>()
return new Minigame("marchingOrders", "Marching Orders \n<color=#eb5454>[WIP]</color>", "00A43B", false, false, new List<GameAction>()
{
//from krispy:
//i'm not that good at coding but i'll try my best to make a minigame
@ -25,7 +25,11 @@ namespace HeavenStudio.Games.Loaders
//new GameAction("attention", delegate {}, 2f, false),
//new GameAction("march", delegate {}, 2f, false),
//new GameAction("halt", delegate {}, 2f, false),
//new GameAction("face, turn", delegate {}, 4f, false),
//new GameAction("face turn", delegate {}, 4f, false, parameters: new List<Param>()
//{
// new Param("type", MarchingOrders.DirectionFaceTurn.Right, "Direction", "The direction sarge wants the cadets to face"),
// new Param("type2", MarchingOrders.FaceTurnLength.Normal, "Length", "How fast or slow the event lasts"),
//}),
});
}
}
@ -36,6 +40,15 @@ namespace HeavenStudio.Games
//using Scripts_MarchingOrders;
public class MarchingOrders : Minigame
{
public enum DirectionFaceTurn {
Right,
Left,
}
public enum FaceTurnLength {
Normal,
Fast,
}
// Start is called before the first frame update
void Awake()
{