public override ISelectable[] Apply(SelectionInfo info) { StartVariables(); var doubleClicked = GetDoubleClicked(info.NewSelection); UpdateLastClicked(info.NewSelection); if (doubleClicked != null) { _lastClicked = null; return(this._modifier.Apply(info.OldSelection, info.ActualSelection, doubleClicked)); } return(info.ActualSelection); }
private void UpdateLastClicked(ISelectable[] newSelection) { _lastClicked = new LastClicked { Selectable = newSelection.Length == 1 ? newSelection.First() : null, Time = Time.time }; }