private IEnumerator UpdateHighScoreGameplay() { bool hasHighScore = false; yield return(GAMEManager.Instance.IsHighScore(stateMachine.GetHighScoreMax(), stateMachine.playerScore, value => { hasHighScore = value; })); stateMachine.achievedHighScore = hasHighScore; }