示例#1
0
        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);
        }
示例#2
0
 private void UpdateLastClicked(ISelectable[] newSelection)
 {
     _lastClicked = new LastClicked {
         Selectable = newSelection.Length == 1 ? newSelection.First() : null, Time = Time.time
     };
 }