Beispiel #1
0
    public void HideFinish()
    {
        instantiatedObject.SetActive(false);

        isActive = false;

        OnHideEvent?.Invoke();
        HideFinishEvent?.Invoke();
    }
Beispiel #2
0
 public void Dismiss()
 {
     Visibility = Visibility.Collapsed;
     if (m_passwordBox != null)
     {
         m_passwordBox.Password = String.Empty;
     }
     OnHide?.Invoke();
 }
Beispiel #3
0
    public void Hide()
    {
        CacheTransition.Hide();
        OnHideEvent.Invoke();
        // check to deactive gameobject
        if (CacheTransition.IsEmptyHideTransition())
        {
            gameObject.SetActive(false);
        }
        // invoke finished event
        var hideDuration = CacheTransition.GetHideDuration();

        if (hideDuration > 0f)
        {
            LeanTween.delayedCall(hideDuration, _ => OnHideFinishedEvent.Invoke());
        }
        else
        {
            OnHideFinishedEvent.Invoke();
        }
    }
Beispiel #4
0
 public void TriggerOnHideEvent()
 {
     OnHideEvent?.Invoke(this);
 }
Beispiel #5
0
 public virtual void Hide()
 {
     IsShown = false;
     OnHideEvent.Invoke();
     component.SetTrigger(AnimationHashes.ShowOut);
 }