private void Update() { if (this.shouldShowConnectingPanel && StaticDB.StringsAvailable()) { this.ShowConnectingPanel(); } }
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()); }
protected override void Awake() { if (!this.overrideFont) { base.font = FontLoader.LoadFont(this.fontType); } this.waitingForDB = !StaticDB.StringsAvailable(); this.LoadStringFromDB(); }
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; }