# InputDevice device = InputDevice.Get.... change that to public InputDevice device; void Awake(){ device = InputDevice.Get.... }```