private void HandleGetScore(Notification notify)
    {
        List <object> playerScores = (List <object>)notify.Object;

//		foreach(PlayerScore playerScore in playerScores)
//        {
//			Debug.Log("Player socre:" + playerScore.score);
//        }

        loopScrollView.SetData(playerScores);
    }
Exemple #2
0
    public static void SetScrollViewData(GameObject go, LuaTable data)
    {
        if (go == null)
        {
            return;
        }

        UILoopScrollView loopScrollView = go.GetComponent <UILoopScrollView>();

        if (loopScrollView == null)
        {
            return;
        }

        loopScrollView.SetData(data);
    }