Exemple #1
0
            public bool IsWithinSelectionBounds(GameObject inputGameobject)
            {
                if (!selectionBox.isSelecting)
                {
                    return(false);
                }

                var viewportBounds = CameraUtilities.GetViewportBounds(cursorManager.CameraReference.Camera, selectionBox.mousePosition1, Input.mousePosition);

                return(viewportBounds.Contains(cursorManager.CameraReference.Camera.WorldToViewportPoint(inputGameobject.transform.position)));
            }