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-07 23:51:08 +00:00
|
|
|
return Input.GetKeyDown(KeyCode.Z);
|
2021-12-24 00:58:48 +00:00
|
|
|
}
|
|
|
|
|
2021-12-24 23:41:35 +00:00
|
|
|
public static bool PressedUp()
|
|
|
|
{
|
2022-01-07 23:51:08 +00:00
|
|
|
return Input.GetKeyUp(KeyCode.Z);
|
2021-12-24 23:41:35 +00:00
|
|
|
}
|
|
|
|
|
2021-12-24 00:58:48 +00:00
|
|
|
public static bool Pressing()
|
|
|
|
{
|
2022-01-07 23:51:08 +00:00
|
|
|
return Input.GetKey(KeyCode.Z);
|
2021-12-24 00:58:48 +00:00
|
|
|
}
|
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);
|
|
|
|
}
|
2021-12-24 00:58:48 +00:00
|
|
|
}
|
|
|
|
}
|