Пример #1
0
        private void OnLeftMouseButtonClicked(Vector2 screenPosition)
        {
            var clickedOn = GetClickedUnit(screenPosition);

            if (clickedOn != null)
            {
                SelectOnUnit?.Invoke(clickedOn);
            }
        }
Пример #2
0
 public void TriggerSelectOnUnit(Unit unit)
 {
     SelectOnUnit?.Invoke(unit);
 }