Exemple #1
0
        public virtual void Clicked(GameObject sender)
        {
            if (!TargetedBy.Contains(sender))
            {
                return;
            }

            OnClick?.Invoke(sender);
        }
Exemple #2
0
        public virtual void Fire2UpReceived(GameObject sender)
        {
            if (!TargetedBy.Contains(sender))
            {
                return;
            }

            OnFire2Up?.Invoke(sender);
        }
Exemple #3
0
        public virtual void TargetExit(GameObject sender)
        {
            if (!TargetedBy.Contains(sender))
            {
                return;
            }

            TargetedBy.Remove(sender);
            OnTargetExit?.Invoke(sender);
        }
Exemple #4
0
        public virtual void TargetEnter(GameObject sender)
        {
            if (TargetedBy.Contains(sender))
            {
                return;
            }

            TargetedBy.Add(sender);
            OnTargetEnter?.Invoke(sender);
        }
Exemple #5
0
        public virtual void DragBegin(GameObject sender)
        {
            if (!TargetedBy.Contains(sender))
            {
                return;
            }

            if (DraggedBy.Contains(sender))
            {
                return;
            }

            DraggedBy.Add(sender);
            OnDragBegin?.Invoke(sender);
        }