Skip to content

Instantly share code, notes, and snippets.

View Tiny-Spider's full-sized avatar
🕷️

Tiny_Spider Tiny-Spider

🕷️
View GitHub Profile
%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:
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) {