private void CheckForErrors() { SAMIUserException exp = ErrorManager.GetInstance().GetNextError(); if (exp != null) { _conversationQueue.Enqueue(new ErrorConversation(ConfigManager, exp)); } }
public void Init() { errorManager = ErrorManager.GetInstance(); appplyButton = transform.FindChild("applyButton").GetComponent <Button>(); closeButton = transform.FindChild("closeButton").GetComponent <Button>(); userInputField = transform.FindChild("userInputField").GetComponent <InputField>(); // passwordInputField = transform.FindChild("passwordInputField").GetComponent<InputField>(); appplyButton.onClick.AddListener(OnAppplyButton); closeButton.onClick.AddListener(OnCloseButton); loginUI = LoginUI.GetInstance(); Hide(); }
void Awake() { eventSys = DuelEventSys.GetInstance; gameHallHandler = GameHallHandler.GetInstance(); loginHandler = LoginHandler.GetInstance(); errorManager = ErrorManager.GetInstance(); duelHandler = DuelHandler.GetInstance(); errorManager.Init(); loginHandler.Init(); gameHallHandler.Init(); //AccountInfoDTO dto = new AccountInfoDTO(); //dto.account = "2"; //dto.password = "******"; //NetWorkScript.Instance.write(LoginProtool.LOGIN_CREQ, 1, 2, dto); }
void Awake() { loginButton = transform.GetChild <Button>("loginButton"); editDeckButton = transform.GetChild <Button>("EditCardBtn"); watchPlayBackButton = transform.GetChild <Button>("WatchPlayBackBtn"); loginButton.onClick.AddListener(OnLoginButton); editDeckButton.onClick.AddListener(OnEditButton); watchPlayBackButton.onClick.AddListener(OnWatchPlayBackButton); loginBoxUI = LoginBoxUI.GetInstance(); errorManager = ErrorManager.GetInstance(); loginBoxUI.Init(); AddHandler(DuelEvent.gameEvent_CloseChoosePlayBackPlane, ShowButton); AddHandler(DuelEvent.gameEvent_OpenChoosePlayBackPlane, HideButton); }
public void Init() { errorManager = ErrorManager.GetInstance(); uiMgr = UIMgr.Instance(); }