Exemple #1
0
    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;
    }
Exemple #2
0
 protected virtual void Start()
 {
     if (loadingBar != null)
     {
         loadingBar.Hide();
     }
     switchPanelBehaviour = new Switchable(ToHidePanel, ToShowPanel);
 }