Beispiel #1
0
        /// <summary>
        /// 焦点进入时的处理
        /// </summary>
        /// <param name="eventData"></param>
        public void OnGazeEnterObject()
        {
            if (!currentPanel.GetHasShow())
            {
                return;
            }

            // 播放动画
            tweenScaleForPointEnter.PlayForward();

            // 准备打开子面板
            if (nextPanel != null)
            {
                if (pointEnterTimerKey <= 0)
                {
                    pointEnterTimerKey = TimerManager.Instance.RegisterTimer(TimerShowNextPanel, 0.2f, 1);
                }
            }

            // 检查同级其他按钮,如果有面板,则关闭
            BlockPanel p = this.currentPanel;

            p.HideOthersSubPanel(this.Quadrant);

            if (nextPanel != null)
            {
                nextPanel.SetKeepShow(true);
            }

            currentPanel.SetKeepShow(true);

            if (canClick)
            {
                menu.uiCanBeClick = true;
            }

            // 这里屏蔽GazeGestureManager
            //GazeGestureManager.Instance.StopCapture();
        }
Beispiel #2
0
 public bool HasShow()
 {
     return(rootPanel.GetHasShow());
 }