Пример #1
0
        private void CheckForErrors()
        {
            SAMIUserException exp = ErrorManager.GetInstance().GetNextError();

            if (exp != null)
            {
                _conversationQueue.Enqueue(new ErrorConversation(ConfigManager, exp));
            }
        }
Пример #2
0
    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();
    }
Пример #3
0
    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);
    }
Пример #4
0
    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);
    }
Пример #5
0
 public void Init()
 {
     errorManager = ErrorManager.GetInstance();
     uiMgr        = UIMgr.Instance();
 }