예제 #1
0
 public void AddButtonToList(AiryUIBackButton backButton)
 {
     if (!ActiveButtons.Contains(backButton))
     {
         ActiveButtons.Add(backButton);
     }
 }
예제 #2
0
 public void RemoveButtonFromList(AiryUIBackButton backButton)
 {
     if (ActiveButtons.Contains(backButton))
     {
         ActiveButtons.Remove(backButton);
     }
 }
예제 #3
0
    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();
            }
        }
    }
예제 #4
0
    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");
    }
예제 #5
0
 public void DoBackOnCurrentObject(AiryUIBackButton backButton)
 {
     backButton.GetComponentInParent <AiryUIAnimationManager>().HideMenu();
     backButton.backButton.GetComponent <AiryUIAnimatedElement>().HideElement();
 }