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()
|
|
|
|
{
|
|
|
|
return (Input.GetKeyDown(KeyCode.Z) || Input.GetKeyDown(KeyCode.Space) || Input.GetMouseButtonDown(0));
|
|
|
|
}
|
|
|
|
|
2021-12-24 23:41:35 +00:00
|
|
|
public static bool PressedUp()
|
|
|
|
{
|
|
|
|
return (Input.GetKeyUp(KeyCode.Z) || Input.GetKeyUp(KeyCode.Space) || Input.GetMouseButtonUp(0));
|
|
|
|
}
|
|
|
|
|
2021-12-24 00:58:48 +00:00
|
|
|
public static bool Pressing()
|
|
|
|
{
|
|
|
|
return (Input.GetKey(KeyCode.Z) || Input.GetKey(KeyCode.Space) || Input.GetMouseButton(0));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|