HeavenStudio/Assets/Scripts/PlayerInput.cs

40 lines
1.2 KiB
C#
Raw Normal View History

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;
}
public static bool PressedUp()
{
2022-01-23 03:40:53 +00:00
return Input.GetKeyUp(KeyCode.Z) && !GameManager.instance.autoplay && Conductor.instance.isPlaying;
}
public static bool Pressing()
{
2022-01-23 03:40:53 +00:00
return Input.GetKey(KeyCode.Z) && !GameManager.instance.autoplay && Conductor.instance.isPlaying;
}
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
}
}
}