예제 #1
0
 private void Update()
 {
     if (this.shouldShowConnectingPanel && StaticDB.StringsAvailable())
     {
         this.ShowConnectingPanel();
     }
 }
예제 #2
0
 private void LoadStringFromDB()
 {
     if (StaticDB.StringsAvailable() && !string.IsNullOrEmpty(this.baseTag))
     {
         this.text         = StaticDB.GetString(this.baseTag, this.fallbackString);
         this.waitingForDB = false;
     }
 }
 private void Update()
 {
     if (this.shouldShowConnectingPanel && StaticDB.StringsAvailable())
     {
         this.ShowConnectingPanel();
     }
     this.SetConnectingPanelCancelButtonEnabled(Singleton <Login> .Instance.CanCancelNow());
 }
예제 #4
0
 protected override void Awake()
 {
     if (!this.overrideFont)
     {
         base.font = FontLoader.LoadFont(this.fontType);
     }
     this.waitingForDB = !StaticDB.StringsAvailable();
     this.LoadStringFromDB();
 }
예제 #5
0
 public void ShowConnectingPanel()
 {
     if (this.m_connectingPanel.gameObject.activeSelf)
     {
         return;
     }
     this.HideAllPanels(true);
     this.ShowLegionBackground();
     if (!StaticDB.StringsAvailable())
     {
         this.shouldShowConnectingPanel = true;
         return;
     }
     this.m_connectingPanel.gameObject.SetActive(true);
     this.shouldShowConnectingPanel = false;
 }