Example #1
0
    public void OnEndDrag(PointerEventData eventData)
    {
        if (eventData.button == PointerEventData.InputButton.Right)
        {
            //_trigger = false;
            if (eventData.button == PointerEventData.InputButton.Right)
            {
                if (Chanz != null || Chanz.Count > 0)
                {
                    for (int x = 0; x < Chanz.Count; x++)
                    {
                        var foo = Chanz[x] as IUIARootPositionInterface;
                        if (foo == null)
                        {
                            Debug.Log("does not follow interface");
                            continue;
                        }
                        if (foo.IsActive())
                        {
                            // if (fb == null)
                            // {
                            fb = foo.GetMyWindow(this.gameObject);
                            fb.CheckIfExisting(GlobalObjectGet());
                            //  }
                            UpdateWindow(fb);
                            break;
                        }
                    }
                }
            }

            MenuPositionUpdate(infi);
        }
    }
Example #2
0
    public void UpdateWindow(IUIAFeedBackInterface newFeedBackContent)
    {
        if (currentFeedBackContent != null)
        {
            //get objects  from closing object
            var fd = currentFeedBackContent.GetOpeningInstructions();
            currentFeedBackContent.WindowCloseCB();
            newFeedBackContent.OpeningCB(fd);
        }
        else
        {
            newFeedBackContent.OpeningCB();
        }

        currentFeedBackContent = newFeedBackContent;
    }