void tokenExchange() { // Si le joueur a appuyé sur le bouton pour ouvrir le panneau d'échange if (gManager.forceExchangeUI) { manualTokenExchange(); } else { bool automaticPick = associatedCharacter.tryAutomaticPick(); // try to autopick a token on the current cell if (!automaticPick && associatedCharacter.getPickableTokens().Count > 0) // if autopick failed and there are pickable tokens, open the exchange ui { manualTokenExchange(); } } }