示例#1
0
    private void BeginSelection()
    {
        originalSelectedGameObjectLayer = selection.gameObject.layer;

        SetLayersRecursively(selection.gameObject, selectedGameObjectsLayer);

        selection.OnSelection(this);
    }
示例#2
0
    private void BeginSelection()
    {
        originalSelectedGameObjectLayer = selection.gameObject.layer;

        SetLayersRecursively(selection.gameObject, selectedGameObjectsLayer);

        selection.OnSelection(this);

        rayLengthAtSelection = Vector3.Magnitude(selectionRayEnd - selectionRay.origin);
    }