public void OnRecognize(RecognitionResult result) { score = Mathf.RoundToInt(result.score.score * 100); textResult.text = result != RecognitionResult.Empty ? gesturePatternChoose.ChosenPattern.name + "\n" + score + "%" : "?"; scoreDive.SavingScores(); onGamePlay.CloseUIPanel(); scoreHandler.AfterHighScore(); }