Example #1
0
        public void OpenPanel()
        {
            panel.SetActive(true);

            Focus = gameObject.GetComponent <UIFocus>();
            Focus.onPanelEnter();

            lerpPos      = transform.position;
            open         = true;
            close        = false;
            openProgress = 0f;
        }
        public void OpenPanel()
        {
            panel.SetActive(true);

            if (Dependencies != null)
            {
                foreach (GameObject go in Dependencies)
                {
                    go.SetActive(true);
                }
            }

            focus = GetComponent <UIFocus>();
            focus.OnPanelEnter();

            lerpPos      = tf.position;
            open         = true;
            close        = false;
            openProgress = 0f;
        }