public void HideFinish() { instantiatedObject.SetActive(false); isActive = false; OnHideEvent?.Invoke(); HideFinishEvent?.Invoke(); }
public void Dismiss() { Visibility = Visibility.Collapsed; if (m_passwordBox != null) { m_passwordBox.Password = String.Empty; } OnHide?.Invoke(); }
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(); } }
public void TriggerOnHideEvent() { OnHideEvent?.Invoke(this); }
public virtual void Hide() { IsShown = false; OnHideEvent.Invoke(); component.SetTrigger(AnimationHashes.ShowOut); }