public override void OnRegister() { base.OnRegister(); this.loginProxy = Facade.RetrieveProxy(Proxys.LOGIN_PROXY) as LoginProxy; if (Application.platform == RuntimePlatform.WindowsPlayer) { string[] commandLineArgs = Environment.GetCommandLineArgs(); //Debug.Log(commandLineArgs); for (int i = 0; i < commandLineArgs.Length; i++) { Debug.Log(commandLineArgs[i]); } if (commandLineArgs.Length > 1) { GlobalData.LoginServer = commandLineArgs[1]; GlobalData.LoginPort = int.Parse(commandLineArgs[2]); GlobalData.UserName = commandLineArgs[3]; GlobalData.UserMac = commandLineArgs[4]; loginProxy.autoLogin = true; CheckUserAgreement(); return; } } if (loginProxy.autoLogin) { CheckUserAgreement(); } else { loginView = (LoginView)UIManager.Instance.ShowUI(UIViewID.LOGIN_VIEW); loginView.ButtonAddListening(loginView.loginBtn, CheckUserAgreement); AudioSystem.Instance.PlayBgm("Voices/Bgm/91bgmusic"); } //GameMgr.Instance.StartCoroutine(DownloadAssetBundle()); }