HeavenStudioPlus/Assets/Scripts/Games/Tambourine/Tambourine.cs

49 lines
1.3 KiB
C#
Raw Normal View History

using HeavenStudio.Util;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace HeavenStudio.Games.Loaders
{
using static Minigames;
public static class RvlTambourineLoader
{
public static Minigame AddGame(EventCaller eventCaller)
{
return new Minigame("tambourine", "Tambourine \n<color=#eb5454>[INITIALIZATION ONLY]</color>", "812021", false, false, new List<GameAction>()
{
});
}
}
}
namespace HeavenStudio.Games
{
//using Scripts_Tambourine;
public class Tambourine : Minigame
{
[Header("Components")]
[SerializeField] Animator handsAnimator;
public static Tambourine instance;
void Awake()
{
instance = this;
}
void Update()
{
if (PlayerInput.Pressed() && !IsExpectingInputNow(InputType.STANDARD_DOWN))
{
handsAnimator.Play("Shake", 0, 0);
//Jukebox.PlayOneShotGame("workingDough/PlayerSmallJump");
}
else if (PlayerInput.AltPressed() && !IsExpectingInputNow(InputType.STANDARD_ALT_DOWN))
{
handsAnimator.Play("Smack", 0, 0);
//Jukebox.PlayOneShotGame("workingDough/PlayerBigJump");
}
}
}
}