示例#1
0
 public void ClearIncommings()
 {
     foreach (BaseProjectile p in TargetedBy)
     {
         p.TargetLost();
     }
     TargetedBy.Clear();
 }
示例#2
0
        public virtual void Clicked(GameObject sender)
        {
            if (!TargetedBy.Contains(sender))
            {
                return;
            }

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

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

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

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

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

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