//public Dictionary<Control, float> ControlState = new Dictionary<Control, float>(); public new void Start() { //We need to check that the controller is in a valid range. We cant listen to a controller below 0. if (ControllerID < 0) { Debug.LogError("ControllerID is too small, setting to 0"); ControllerID = 0; } //We initialise the output dictionary, with each key being every item in the Control enum (Initialized to 0). foreach (Control control in Enum.GetValues(typeof(Control))) { ControlState.Add(control, 0); } }