Пример #1
0
 void Update()
 {
     if (_AcceptReady && _DBSupport.GetCanConnect())
     {
         //succese
         _LoadingTable.SetActive(false);
         _AcceptReady = false;
         _LoginMng.Init();
         _DBSupport.SetCanConnectFalse();
         _DBSupport.SetConnectFailFalse();
     }
     if (_AcceptReady && _DBSupport.GetConnectFail())
     {
         //Fail
         _AcceptReady = false;
         _LoadingTable.SetActive(false);
         ExportError("서버와의 접속이\r\n원활하지 않습니다");
         _DBSupport.SetConnectFailFalse();
     }
     if (_AcceptReady && _DBSupport.GetNotCurrentVersion())
     {
         _LoadingTable.SetActive(false);
         ExportError_HyperLink("최신버전이 아닙니다\r\n업데이트하여 주십시오");
         _DBSupport.SetFalse();
     }
     if (_AcceptReady && _DBSupport.GetServerClose())
     {
         _LoadingTable.SetActive(false);
         ExportError("서버 점검중입니다");
         _DBSupport.SetFalse();
     }
 }
Пример #2
0
    void Update()
    {
        _MyScore.text = StaticMng.Instance._InfinityGameScore.ToString();
        if (_AcceptReady && _DBSupport.GetConnectFail())
        {
            _AcceptReady = false;
            if (_WantSave)
            {
                _WantSave = false;
                ExportError("데이터를 저장하는데\r\n실패했습니다");
            }
            else
            {
                _LoadingTable.SetActive(false);
                _ErrorTable.SetActive(true);
            }
            _DBSupport.SetConnectFailFalse();
        }

        if (_AcceptReady && _DBSupport.GetCanConnect())
        {
            _AcceptReady = false;
            if (_WantSave)
            {
                _WantSave = false;
                SaveRank();
            }
            else
            {
                _LoadingTable.SetActive(false);
                GetData();
            }

            _DBSupport.SetFalse();
        }
        if (_AcceptReady && _DBSupport.GetNotCurrentVersion())
        {
            _AcceptReady = false;
            _LoadingTable.SetActive(false);
            ExportError_Quit("최신버전으로 게임을\r\n업데이트해 주십시오");
            _DBSupport.SetFalse();
        }
        if (_AcceptReady && _DBSupport.GetServerClose())
        {
            _AcceptReady = false;
            _LoadingTable.SetActive(false);
            ExportError_Quit("서버가 점검중입니다");
            _DBSupport.SetFalse();
        }
        if (StaticMng.Instance._StagePeakCount[3, 9] >= 1)
        {
            _GameStartButtonGray.SetActive(false);
        }
        else
        {
            _GameStartButtonGray.SetActive(true);
        }
    }