Turn interaction related attempt events into structs (#29168)
* Turn InteractionAttemptEvent into a struct event * readonly * GettingInteractedWithAttemptEvent * ConsciousAttemptEvent
This commit is contained in:
@@ -495,7 +495,7 @@ public sealed class DragDropSystem : SharedDragDropSystem
|
||||
// CanInteract() doesn't support checking a second "target" entity.
|
||||
// Doing so manually:
|
||||
var ev = new GettingInteractedWithAttemptEvent(user, dragged);
|
||||
RaiseLocalEvent(dragged, ev, true);
|
||||
RaiseLocalEvent(dragged, ref ev);
|
||||
|
||||
if (ev.Cancelled)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user