private void LoadViewControllers() { viewControllerLogin = new ViewControllerLogin(); viewControllerLogin.controllerDelegate = this; viewControllerLogin.visible = false; viewControllerCreateAccount = new ViewControllerCreateAccount(); viewControllerCreateAccount.controllerDelegate = this; viewControllerCreateAccount.visible = false; }
public void OnViewControllerLoginAction(ViewControllerLogin controller, string user, string password) { controller.visible = false; if (loginDelegate.isConnected) { return; } if (loginDelegate.status != LoginServerDelegate.Status.Diconnected) { return; } LoginServerInfo info = GetLoginServerConnectionInfo(); loginClient.Connect(info.ip, info.port); }
public void OnViewControllerLoginAction(ViewControllerLogin controller, string user, string password) { controller.visible = false; if (loginDelegate.isConnected) return; if (loginDelegate.status != LoginServerDelegate.Status.Diconnected) return; LoginServerInfo info = GetLoginServerConnectionInfo(); loginClient.Connect(info.ip, info.port); }