public void SetFadeAwayRelation(NodeCircleController previous) { if (previous) { if (previous != this) { _fadingIntoParent = (CurrentNode?.Contains(previous.myLastLinkedNode) ?? false) && myLastLinkedNode.parentNode == previous.myLastLinkedNode; if (_fadingIntoParent) { // _latestParent = previous; _fadingRelation = previous; } else { _fadingRelation = CurrentNode?.visualRepresentation as NodeCircleController; } } else { _fadingIntoParent = false; _fadingRelation = CurrentNode?.visualRepresentation as NodeCircleController; } } else { _fadingRelation = null; } SetDirty(); }