mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 19:55:09 +00:00
24 lines
No EOL
658 B
C#
24 lines
No EOL
658 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) || Input.GetKeyDown(KeyCode.Space) || Input.GetMouseButtonDown(0));
|
|
}
|
|
|
|
public static bool PressedUp()
|
|
{
|
|
return (Input.GetKeyUp(KeyCode.Z) || Input.GetKeyUp(KeyCode.Space) || Input.GetMouseButtonUp(0));
|
|
}
|
|
|
|
public static bool Pressing()
|
|
{
|
|
return (Input.GetKey(KeyCode.Z) || Input.GetKey(KeyCode.Space) || Input.GetMouseButton(0));
|
|
}
|
|
}
|
|
} |