private void BeginSelection() { originalSelectedGameObjectLayer = selection.gameObject.layer; SetLayersRecursively(selection.gameObject, selectedGameObjectsLayer); selection.OnSelection(this); }
private void BeginSelection() { originalSelectedGameObjectLayer = selection.gameObject.layer; SetLayersRecursively(selection.gameObject, selectedGameObjectsLayer); selection.OnSelection(this); rayLengthAtSelection = Vector3.Magnitude(selectionRayEnd - selectionRay.origin); }