Ejemplo n.º 1
0
        public void Update()
        {
            if (needsCameraUpdate)
            {
                needsCameraUpdate = false;
                UpdateCameraOffset();
            }

            runButton.Update();
            menuButton.Update();
            addStatButton.Update();
            addSkillButton.Update();

            if (IsLeftPanelVisible)
            {
                LeftPanel.Update();
                leftPanelFrame.Update();
            }

            if (IsRightPanelVisible)
            {
                RightPanel.Update();
                rightPanelFrame.Update();
            }

            if (!IsLeftPanelVisible || !IsRightPanelVisible)
            {
                minipanel.Update();
            }
        }
Ejemplo n.º 2
0
        public void Update()
        {
            runButton.Update();
            menuButton.Update();
            addStatButton.Update();
            addSkillButton.Update();

            if (IsLeftPanelVisible)
            {
                LeftPanel.Update();
                leftPanelFrame.Update();
            }

            if (IsRightPanelVisible)
            {
                RightPanel.Update();
                rightPanelFrame.Update();
            }

            if (!IsLeftPanelVisible || !IsRightPanelVisible)
            {
                minipanel.Update();
            }
        }