using HeavenStudio.Util;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace HeavenStudio.Games.Loaders
{
using static Minigames;
public static class RvlDoubleDateLoader
{
public static Minigame AddGame(EventCaller eventCaller) {
return new Minigame("doubleDate", "Double Date \n[INITIALIZATION ONLY]", "ef854a", false, false, new List()
{
new GameAction("soccerBall", "Soccer Ball")
{
function = delegate { var e = eventCaller.currentEntity; DoubleDate.instance.ball(e.beat, e["type"]); },
defaultLength = 2,
},
new GameAction("basketball", "Basketball")
{
function = delegate { var e = eventCaller.currentEntity; DoubleDate.instance.ball(e.beat, e["type"]); },
defaultLength = 2,
},
new GameAction("football", "Football")
{
function = delegate { var e = eventCaller.currentEntity; DoubleDate.instance.ball(e.beat, e["type"]); },
defaultLength = 2,
}
});
}
}
}
namespace HeavenStudio.Games
{
using Scripts_DoubleDate;
public class DoubleDate : Minigame
{
public static DoubleDate instance;
[Header("Objects")]
public Animator soccerBallAnim;
public Animator basketballAnim;
public Animator footballAnim;
private void Awake()
{
instance = this;
}
private void HitSound(bool applause)
{
Jukebox.PlayOneShotGame("doubleDate/kick");
if (applause) Jukebox.PlayOneShot("applause");
}
public void ball(float beat, int type)
{
Jukebox.PlayOneShotGame("doubleDate/soccerBall");
}
}
}