private void OnRightMouseButtonClicked(Vector2 screenPosition) { var clickedOn = GetClickedUnit(screenPosition); if (clickedOn != null) { ActionOnUnit?.Invoke(clickedOn); } }
public void TriggerActionOnUnit(Unit unit) { ActionOnUnit?.Invoke(unit); }