public void ChangeState(ConnectionsState state) { if (m_DisconnectButton != null && m_ConnectButton != null) { switch (state) { case ConnectionsState.Connected: m_DisconnectButton.gameObject.SetActive(true); m_ConnectButton.gameObject.SetActive(false); break; case ConnectionsState.NotConnected: m_DisconnectButton.gameObject.SetActive(false); m_ConnectButton.gameObject.SetActive(true); break; default: break; } } }
public Group() { this.Members = new HashSet <ApplicationUser>(); this.Invitations = new HashSet <Invitation>(); this.State = ConnectionsState.NotConnected; }