string GetStatisticsText(PLAYERPROFILE playerProfile) { DataPercentage player = statistics.CreatePlayerPercentageData(); float achieverScore = statistics.GetAchieverScore(player); float explorerScore = statistics.GetExplorerScore(player); float killerScore = statistics.GetKillerScore(player); float socializerScore = statistics.GetSocializerScore(player); float highestScore = Mathf.Max(statistics.GetAchieverScore(player), statistics.GetExplorerScore(player), statistics.GetKillerScore(player), statistics.GetSocializerScore(player)); if (highestScore == achieverScore) { return(string.Format("{0}%", (int)(achieverScore * 100))); } else if (highestScore == explorerScore) { return(string.Format("0%", (int)(explorerScore * 100))); } else if (highestScore == killerScore) { return(string.Format("0%", (int)(killerScore * 100))); } else if (highestScore == socializerScore) { return(string.Format("0%", (int)(socializerScore * 100))); } else { return(string.Format("Not enough data")); } }
public PlayerProfileScore(PLAYERPROFILE playerProfile, float score) { this.playerProfile = playerProfile; this.score = score; }
public void SetPlayerProfile(PLAYERPROFILE playerProfile) { profile.text = "" + playerProfile; }