mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-24 02:25:18 +00:00
40 lines
No EOL
791 B
C#
40 lines
No EOL
791 B
C#
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);
|
|
}
|
|
|
|
|
|
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);
|
|
}
|
|
}
|
|
} |