/// <summary> /// Убрать выделение объекта. /// </summary> public void ClearSelection() { selectedObjectPulseAnimation?.OnDelete(); selectedObjectPulseAnimation = null; SelectedObject = null; }
/// <summary> /// Выбор объекта. /// </summary> public void SelectObject(GameBoardObject gameBoardObject) { SelectedObject = gameBoardObject; selectedObjectPulseAnimation = new PulseAnimation(SelectedObject); activeAnimations.Add(selectedObjectPulseAnimation); }