public virtual void Clicked(GameObject sender) { if (!TargetedBy.Contains(sender)) { return; } OnClick?.Invoke(sender); }
public virtual void Fire2UpReceived(GameObject sender) { if (!TargetedBy.Contains(sender)) { return; } OnFire2Up?.Invoke(sender); }
public virtual void TargetExit(GameObject sender) { if (!TargetedBy.Contains(sender)) { return; } TargetedBy.Remove(sender); OnTargetExit?.Invoke(sender); }
public virtual void TargetEnter(GameObject sender) { if (TargetedBy.Contains(sender)) { return; } TargetedBy.Add(sender); OnTargetEnter?.Invoke(sender); }
public virtual void DragBegin(GameObject sender) { if (!TargetedBy.Contains(sender)) { return; } if (DraggedBy.Contains(sender)) { return; } DraggedBy.Add(sender); OnDragBegin?.Invoke(sender); }