HeavenStudioPlus/Assets/Scripts/PlayerInput.cs

40 lines
791 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RhythmHeavenMania
{
public class PlayerInput
{
public static bool Pressed()
{
return Input.GetKeyDown(KeyCode.Z);
}
public static bool PressedUp()
{
return Input.GetKeyUp(KeyCode.Z);
}
public static bool Pressing()
{
return Input.GetKey(KeyCode.Z);
}
2022-01-20 01:48:52 +00:00
public static bool AltPressed()
{
return Input.GetKeyDown(KeyCode.X);
}
public static bool AltPressedUp()
{
return Input.GetKeyUp(KeyCode.X);
}
public static bool AltPressing()
{
return Input.GetKey(KeyCode.X);
}
}
}