private void GetContestInfo()
    {
        System.Action populateContestSlots = delegate
        {
            if (CurrentContests != null)
            {
                int i = 0;
                foreach (var contest in CurrentContests)
                {
                    ContestSlots[i].ConfigureSlot(true, contest.Value);
                    i++;
                }

                if (i < ContestSlots.Count)
                {
                    for (; i < ContestSlots.Count; i++)
                    {
                        ContestSlots[i].ConfigureSlot(false, null);
                    }
                }
            }

            ContestsGridParent.SetPositionAndRotation(Vector2.zero, Quaternion.identity);
        };

        FantasyUtility.GetContestInfoFromGameSparks(populateContestSlots);
    }
Exemple #2
0
    IEnumerator Start()
    {
        yield return(Backend.Utility.WaitForFrame);

        System.Action getFantasyTeams = delegate
        {
            FantasyUtility.GetFantasyTeamList(null);
        };
        // Get the FantasyTeams from the GameSparks cloud
        LoadFantasyPlayersFromGameSparks(getFantasyTeams);
    }