// Selects new anchor of current target objectinfo // Sets to null if no anchors available or no target object private void SelectNewTargetAnchor() { // If target has objInfo and objInfo has anchors, use one of the anchors as target pos if (targetObjectInfo) { Anchor[] anchors = targetObjectInfo.GetAnchors(true); if (anchors.Length > 0) { //print(anchors[0]); targetAnchor = anchors[0]; } // No valid anchors else { // Clear all targets -- change to selecting another object once method takes into account fullness targetObject = null; targetObjectInfo = null; targetAnchor = null; } } else { targetAnchor = null; } }