Exemplo n.º 1
0
        // Token: 0x060020F4 RID: 8436 RVA: 0x0009AE1C File Offset: 0x0009901C
        public bool IsClientReady()
        {
            int num = 0;

            if (!PreGameController.instance)
            {
                return(false);
            }
            VoteController component = PreGameController.instance.GetComponent <VoteController>();

            if (!component)
            {
                return(false);
            }
            int i         = 0;
            int voteCount = component.GetVoteCount();

            while (i < voteCount)
            {
                VoteController.UserVote vote = component.GetVote(i);
                if (vote.networkUserObject && vote.receivedVote)
                {
                    NetworkUser component2 = vote.networkUserObject.GetComponent <NetworkUser>();
                    if (component2 && component2.isLocalPlayer)
                    {
                        num++;
                    }
                }
                i++;
            }
            return(num == NetworkUser.readOnlyLocalPlayersList.Count);
        }