float GetStatisticsFloat() { DataPercentage player = statistics.CreatePlayerPercentageData(); float achieverScore = statistics.GetAchieverScore(player); float explorerScore = statistics.GetExplorerScore(player); float killerScore = statistics.GetKillerScore(player); float socializerScore = statistics.GetSocializerScore(player); return(Mathf.Max(statistics.GetAchieverScore(player), statistics.GetExplorerScore(player), statistics.GetKillerScore(player), statistics.GetSocializerScore(player))); }
void fillProfileScores() { profileScores.Add(new PlayerProfileScore(PLAYERPROFILE.ACHIEVER, statistics.GetAchieverScore(player))); profileScores.Add(new PlayerProfileScore(PLAYERPROFILE.EXPLORER, statistics.GetExplorerScore(player))); profileScores.Add(new PlayerProfileScore(PLAYERPROFILE.KILLER, statistics.GetKillerScore(player))); profileScores.Add(new PlayerProfileScore(PLAYERPROFILE.SOCIALIZER, statistics.GetSocializerScore(player))); }
string setPlayerProfile() { string errorMessage = "Not Enough Data"; DataPercentage player = statistics.CreatePlayerPercentageData(); float highestProfile = Mathf.Max(statistics.GetAchieverScore(player), statistics.GetExplorerScore(player), statistics.GetKillerScore(player), statistics.GetSocializerScore(player)); if (highestProfile == statistics.GetAchieverScore(player)) { return("Achiever"); } else if (highestProfile == statistics.GetExplorerScore(player)) { return("Explorer"); } else if (highestProfile == statistics.GetKillerScore(player)) { return("Killer"); } else if (highestProfile == statistics.GetSocializerScore(player)) { return("Socializer"); } return(errorMessage); }