This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%YAML 1.1 | |
%TAG !u! tag:unity3d.com,2011: | |
--- !u!13 &1 | |
InputManager: | |
m_ObjectHideFlags: 0 | |
serializedVersion: 2 | |
m_Axes: | |
- serializedVersion: 3 | |
m_Name: Horizontal | |
descriptiveName: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public static class InputManager { | |
public static float GetAxis(InputDevice device, InputAxis axis) { | |
return axis.GetValue(device); | |
} | |
public static bool GetButton(InputDevice device, InputButton button, params InputButton[] inputButtons) { |