示例#1
0
    void Start()
    {
        leaderboard = new MyLeaderBoard();
        rect        = GetComponent <RectTransform>();
        r           = item.GetComponent <RectTransform>();

        width = r.offsetMax.x - r.offsetMin.x;
        heigh = r.offsetMax.y - r.offsetMin.y;

        username.text = PlayerController.Instance.UserName;
        score.text    = PlayerController.Instance.HightScore.ToString();

        leaderboard.GetLeaderBoard(count, new GetLeaderboardCallback(this));
    }