public void AddButtonToList(AiryUIBackButton backButton) { if (!ActiveButtons.Contains(backButton)) { ActiveButtons.Add(backButton); } }
public void RemoveButtonFromList(AiryUIBackButton backButton) { if (ActiveButtons.Contains(backButton)) { ActiveButtons.Remove(backButton); } }
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(); } } }
private void OnEnable() { backButtonP = (AiryUIBackButton)target; _withGraphic = serializedObject.FindProperty("withGraphic"); _showDelay = serializedObject.FindProperty("showDelay"); _position = serializedObject.FindProperty("position"); _graphicType = serializedObject.FindProperty("graphicType"); _imageColor = serializedObject.FindProperty("imageColor"); _textColor = serializedObject.FindProperty("textColor"); _font = serializedObject.FindProperty("font"); _buttonText = serializedObject.FindProperty("buttonText"); _graphicSprite = serializedObject.FindProperty("graphicSprite"); _scale = serializedObject.FindProperty("scale"); _offsetX = serializedObject.FindProperty("offsetX"); _offsetY = serializedObject.FindProperty("offsetY"); }
public void DoBackOnCurrentObject(AiryUIBackButton backButton) { backButton.GetComponentInParent <AiryUIAnimationManager>().HideMenu(); backButton.backButton.GetComponent <AiryUIAnimatedElement>().HideElement(); }