HeavenStudioPlus/Assets/Scripts/Games/Tram&Pauline/TramAndPauline.cs

84 lines
2.4 KiB
C#
Raw Normal View History

2022-04-11 08:59:36 +00:00
using HeavenStudio.Util;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace HeavenStudio.Games.Loaders
2022-04-11 08:59:36 +00:00
{
using static Minigames;
public static class AgbTramLoader
2022-04-11 08:59:36 +00:00
{
public static Minigame AddGame(EventCaller eventCaller)
{
return new Minigame("tram&Pauline", "Tram & Pauline \n<color=#eb5454>[INITIALIZATION ONLY]</color>", "E7A59C", false, false, new List<GameAction>()
{
2022-08-21 03:13:52 +00:00
new GameAction("curtains", "Curtains")
{
2022-08-21 03:13:52 +00:00
function = delegate { TramAndPauline.instance.Curtains(eventCaller.currentEntity.beat); },
defaultLength = 0.5f
},
new GameAction("SFX", "SFX")
{
function = delegate { var e = eventCaller.currentEntity; TramAndPauline.instance.SFX(e.beat, e["toggle"]); },
2022-08-21 03:13:52 +00:00
defaultLength = 2.5f,
parameters = new List<Param>()
{
new Param("type", TramAndPauline.SoundEffects.Henge, "calls", "the sound effects to choose from"),
}
},
2022-04-11 08:59:36 +00:00
});
}
2022-04-11 08:59:36 +00:00
}
}
namespace HeavenStudio.Games
{
using Scripts_TramAndPauline;
2022-04-11 08:59:36 +00:00
public class TramAndPauline : Minigame
2022-04-11 08:59:36 +00:00
{
public enum CurtainState
{
Raised,
Lower
}
public enum SoundEffects
{
Henge, //Shapeshift
Henshin, //Transform
Jump,
Seino //One Two Three Go
2022-04-11 08:59:36 +00:00
}
public static TramAndPauline instance;
[Header("Animators")]
public Animator RaiseCurtains;
public Animator LowerCurtains;
private void Awake()
{
instance = this;
}
public void Curtains(float beat)
{
}
public void SFX(float beat, bool playSound)
{
playSound = false;
var sound = new[]
{
new MultiSound.Sound("tram&Pauline/trampoline_unused_henge", beat),
new MultiSound.Sound("tram&Pauline/trampoline_unused_henshin", beat + 1f),
new MultiSound.Sound("tram&Pauline/trampoline_unused_jump", beat + 2f),
new MultiSound.Sound("tram&Pauline/trampoline_unused_senio", beat + 3f)
};
}
2022-04-11 08:59:36 +00:00
}
}