mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 03:35:10 +00:00
Simple tap
This commit is contained in:
parent
34d8d9fc8d
commit
c5a9c70e0e
1 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
|
using RhythmHeavenMania.Util;
|
||||||
|
|
||||||
namespace RhythmHeavenMania.Games.TapTrial
|
namespace RhythmHeavenMania.Games.TapTrial
|
||||||
{
|
{
|
||||||
public class TapTrialPlayer : MonoBehaviour
|
public class TapTrialPlayer : MonoBehaviour
|
||||||
|
@ -11,5 +13,19 @@ namespace RhythmHeavenMania.Games.TapTrial
|
||||||
{
|
{
|
||||||
anim = GetComponent<Animator>();
|
anim = GetComponent<Animator>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
if (PlayerInput.Pressed())
|
||||||
|
{
|
||||||
|
Tap(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Tap(bool hit)
|
||||||
|
{
|
||||||
|
Jukebox.PlayOneShotGame("tapTrial/tap");
|
||||||
|
anim.Play("Tap", 0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue