示例#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
 public void RankingLoading()
 {
     _BlockGrid.transform.DestroyChildren();
     _ScrollView.ResetPosition();
     _LoadingTable.SetActive(true);
     _ErrorTable.SetActive(false);
     _DBSupport.SetCanConnectFalse();
     _DBSupport.SetConnectFailFalse();
     _DBSupport.Start();
     _AcceptReady = true;
 }