using UnityEngine; using System.Collections; using System.Collections.Generic; using System; namespace InputHandler { // Specific to the game public class MappedInput { // We use hashets for the actions and the states because we just need to check if they are in the collection, and not retrieve them public HashSet Actions = new HashSet(); public HashSet States = new HashSet(); public Dictionary Ranges = new Dictionary(); private int _playerIndex; public int PlayerIndex { get { return _playerIndex; } } public MappedInput(int playerIndex) { _playerIndex = playerIndex; } public void Clear() { Actions.Clear(); States.Clear(); Ranges.Clear(); } } }