示例#1
0
        private void OnRightMouseButtonClicked(Vector2 screenPosition)
        {
            var clickedOn = GetClickedUnit(screenPosition);

            if (clickedOn != null)
            {
                ActionOnUnit?.Invoke(clickedOn);
            }
        }
示例#2
0
 public void TriggerActionOnUnit(Unit unit)
 {
     ActionOnUnit?.Invoke(unit);
 }