public void DoBack(AiryUIBackButton backButton) { if (ActiveButtons.Contains(backButton)) { int index = ActiveButtons.IndexOf(backButton); if (index == ActiveButtons.Count - 1) { backButton.GetComponentInParent <AiryUIAnimationManager>().HideMenu(); backButton.GetComponent <AiryUIAnimatedElement>().HideElement(); } } }
public void DoBackOnCurrentObject(AiryUIBackButton backButton) { backButton.GetComponentInParent <AiryUIAnimationManager>().HideMenu(); backButton.backButton.GetComponent <AiryUIAnimatedElement>().HideElement(); }