Exemple #1
0
        /// <summary>
        /// Set server's PlayerMissionsProgress dictionary for simple state sync.
        /// </summary>
        /// <param name="matchID"></param>
        public void ConfigureForServer(string matchID, string professorID)
        {
            MatchID = matchID;

            var allPlayers = GameManager.Instance.Players.Values;

            PlayerMissionsProgress.Clear();

            foreach (var player in allPlayers)
            {
                if (player.MatchID == matchID && player.PlayerId != professorID)
                {
                    PlayerMissionsProgress.Add(player.PlayerId, false);
                }
            }
        }