public void Login() { if (Application.platform == RuntimePlatform.IPhonePlayer) { if (Bonjour.IsLogined()) { Bonjour.LoginOut(); } Bonjour.Login(); this.m_LoginState = LoginState.Logining; } }