public virtual void Show() { if (showTweensDestination != null) { showTweensDestination.Play(); } else { owner.Show(); } dfProgressBar bar = GetComponent <dfProgressBar>(); if (bar == null) { bar = GetComponentInChildren <dfProgressBar>(); } if (bar == null) { return; } bar.Hide(); bar.Value = 0; }
protected virtual void Start() { if (loadingBar != null) { loadingBar.Hide(); } switchPanelBehaviour = new Switchable(ToHidePanel, ToShowPanel); }