Beispiel #1
0
        void OnSelectionClicked(MouseTargeter.TargetingArguments args)
        {
            var target = args.Collider.GetComponentInOwner <ISelectable>();

            controller.TrySelect(target);
        }
Beispiel #2
0
        void OnSelectionHover(MouseTargeter.TargetingArguments args)
        {
            var target = args.Collider.GetComponentInOwner <IHighlightable>();

            controller.TryHighlight(target);
        }
Beispiel #3
0
        private void OnTargetClicked(MouseTargeter.TargetingArguments args)
        {
            ITargetable target = args.Collider.GetComponentInOwner <ITargetable>();

            controller.TryTarget(target, args.Position);
        }