public static bool Save(Highscore score)
        {
            List <Highscore> scores = FindBest10();

            if (scores.Count < 10 ||
                scores[9].Score < score.Score)
            {
                bool result = Facade <Highscore> .Save(score);

                //Debug.Log(result.ToString());
                if (result)
                {
                    DeleteOverBest10();
                }

                return(result);
            }
            return(true);
        }
Example #2
0
 public static bool Save(Option option)
 {
     return(Facade <Option> .Save(option));
 }