14 lines
501 B
C#
14 lines
501 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class UtilitiesInput{
|
|
public static float Horizontal { get { return Input.GetAxis("Horizontal"); } }
|
|
public static float Vertical { get { return Input.GetAxis("Vertical"); } }
|
|
|
|
public static bool Down { get { return Input.GetKey(KeyCode.Z); } }
|
|
public static bool Up { get { return Input.GetKey(KeyCode.X); } }
|
|
|
|
public static bool Sprint { get { return Input.GetKey(KeyCode.LeftShift);} }
|
|
}
|