void OnSelectionClicked(MouseTargeter.TargetingArguments args) { var target = args.Collider.GetComponentInOwner <ISelectable>(); controller.TrySelect(target); }
void OnSelectionHover(MouseTargeter.TargetingArguments args) { var target = args.Collider.GetComponentInOwner <IHighlightable>(); controller.TryHighlight(target); }
private void OnTargetClicked(MouseTargeter.TargetingArguments args) { ITargetable target = args.Collider.GetComponentInOwner <ITargetable>(); controller.TryTarget(target, args.Position); }