/// <summary> /// Handle the player actions (commands to the character). /// </summary> void HandleMovement() { // Horizontal movement. if (movementCtrl.LeftPressed()) { Debug.Log("Move to the left."); } else if (movementCtrl.RightPressed()) { Debug.Log("Move to the right."); } // Vertical movement. if (movementCtrl.TopPressed()) { Debug.Log("Move to the top."); } else if (movementCtrl.DownPressed()) { Debug.Log("Move to the bottom."); } }