2021-12-24 00:58:48 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace RhythmHeavenMania
|
|
|
|
{
|
|
|
|
public class PlayerInput
|
|
|
|
{
|
|
|
|
public static bool Pressed()
|
|
|
|
{
|
2022-01-23 03:40:53 +00:00
|
|
|
return Input.GetKeyDown(KeyCode.Z) && !GameManager.instance.autoplay && Conductor.instance.isPlaying;
|
2021-12-24 00:58:48 +00:00
|
|
|
}
|
|
|
|
|
2021-12-24 23:41:35 +00:00
|
|
|
public static bool PressedUp()
|
|
|
|
{
|
2022-01-23 03:40:53 +00:00
|
|
|
return Input.GetKeyUp(KeyCode.Z) && !GameManager.instance.autoplay && Conductor.instance.isPlaying;
|
2021-12-24 23:41:35 +00:00
|
|
|
}
|
|
|
|
|
2021-12-24 00:58:48 +00:00
|
|
|
public static bool Pressing()
|
|
|
|
{
|
2022-01-23 03:40:53 +00:00
|
|
|
return Input.GetKey(KeyCode.Z) && !GameManager.instance.autoplay && Conductor.instance.isPlaying;
|
2021-12-24 00:58:48 +00:00
|
|
|
}
|
2022-01-20 01:48:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
public static bool AltPressed()
|
|
|
|
{
|
2022-01-23 03:40:53 +00:00
|
|
|
return Input.GetKeyDown(KeyCode.X) && !GameManager.instance.autoplay && Conductor.instance.isPlaying;
|
2022-01-20 01:48:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static bool AltPressedUp()
|
|
|
|
{
|
2022-01-23 03:40:53 +00:00
|
|
|
return Input.GetKeyUp(KeyCode.X) && !GameManager.instance.autoplay && Conductor.instance.isPlaying;
|
2022-01-20 01:48:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static bool AltPressing()
|
|
|
|
{
|
2022-01-23 03:40:53 +00:00
|
|
|
return Input.GetKey(KeyCode.X) && !GameManager.instance.autoplay && Conductor.instance.isPlaying;
|
2022-01-20 01:48:52 +00:00
|
|
|
}
|
2021-12-24 00:58:48 +00:00
|
|
|
}
|
|
|
|
}
|