示例#1
0
        public void ObjectInteractionUpdate(Component_GameMode.ObjectInteractionContextClass context)
        {
            if (createdViewport != null)
            {
                var cameraSettings = context.Viewport.CameraSettings;
                var ray            = new Ray(cameraSettings.Position, cameraSettings.Rotation.GetForward() * cameraSettings.FarClipDistance);

                //update mouse position
                if (GetScreenPositionByRay(ray, out var screenPosition))
                {
                    createdViewport.UIContainer.PerformMouseMove(screenPosition);
                }
            }
        }
示例#2
0
 public void ObjectInteractionUpdate(Component_GameMode.ObjectInteractionContextClass context)
 {
 }
示例#3
0
 public void ObjectInteractionExit(Component_GameMode.ObjectInteractionContextClass context)
 {
     ChangingEnd();
 }