Example #1
0
        private void OnLeftMouseButtonClicked(Vector2 screenPosition)
        {
            var clickedOn = GetClickedUnit(screenPosition);

            if (clickedOn != null)
            {
                SelectOnUnit?.Invoke(clickedOn);
            }
        }
Example #2
0
 public void TriggerSelectOnUnit(Unit unit)
 {
     SelectOnUnit?.Invoke(unit);
 }