void Update() { aButton = cController.ReturnJumpButton(); timer += Time.deltaTime; if (Input.GetKey("joystick 1 button " + aButton) || Input.GetKey(KeyCode.A)) { Application.LoadLevel(nextLevel); } }
// Use this for initialization void Start() { jumpButton = controllerSettings.ReturnJumpButton(); }