void Start() { GM = FindObjectOfType<GameManager>(); if ( Gamepad == null ) { Gamepad = transform.GetComponentInChildren<Xbox360Gamepad>(); } // Player controls. Gamepad.LeftTriggerButton.Pressed.AddListener( PreviousNode ); Gamepad.RightTriggerButton.Pressed.AddListener( NextNode ); // Debug controls. Gamepad.LeftBumperButton.Pressed.AddListener( CreateNode ); Gamepad.RightBumperButton.Pressed.AddListener( SkipTurn ); }