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); } }
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); }