ConnectUser() приватный Метод

private ConnectUser ( User user ) : void
user User
Результат void
Пример #1
0
        public void SetPlayer(Player player)
        {
            trace.TraceInformation("{0} takes control of {1}", this, player);
            this.Player = player;
            player.ConnectUser(this);

            if (m_ipStartTask != null)
            {
                m_ipStartTask.Wait();
            }

            if (m_ipRunner != null)
            {
                m_ipRunner.SetPlayer(player);
            }
        }
Пример #2
0
        public void SetPlayer(Player player)
        {
            trace.TraceInformation("{0} takes control of {1}", this, player);
            this.Player = player;
            player.ConnectUser(this);

            if (m_ipStartTask != null)
                m_ipStartTask.Wait();

            if (m_ipRunner != null)
                m_ipRunner.SetPlayer(player);
        }