Ejemplo n.º 1
0
        public override void Refresh()
        {
            base.Refresh();

            _mouseRay.Refresh();
            switch (TheControlMode)
            {
            case ControlMode.FreeControl:
                if (FreeControlUpdateEvent != null)
                {
                    FreeControlUpdateEvent();
                }

                _mousePosition.Refresh();
                _mouseRotation.Refresh();
                break;

            case ControlMode.FirstPerson:
                if (FirstPersonUpdateEvent != null)
                {
                    FirstPersonUpdateEvent();
                }
                break;

            case ControlMode.ThirdPerson:
                if (ThirdPersonUpdateEvent != null)
                {
                    ThirdPersonUpdateEvent();
                }
                break;
            }
        }
Ejemplo n.º 2
0
        public override void Refresh()
        {
            base.Refresh();

            _mouseRay.Refresh();
            switch (TheControlMode)
            {
            case ControlMode.FreeControl:
                FreeControlUpdateEvent?.Invoke();

                _mousePosition.Refresh();
                _mouseRotation.Refresh();
                break;

            case ControlMode.FirstPerson:
                FirstPersonUpdateEvent?.Invoke();
                break;

            case ControlMode.ThirdPerson:
                ThirdPersonUpdateEvent?.Invoke();
                break;
            }
        }