[ARCH] Replace SendMessage anti-pattern with interfaces or C# events #15
Labels
No labels
architecture
bug
duplicate
enhancement
help wanted
invalid
performance
quality
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lavarius/ProjectOverlay#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🟠 High — Architecture
Files:
Interactable.cs,InteractionManager.cs,CharacterZoneChanger.csSendMessage("MethodName")is used for communication between components. This has no compile-time safety — typos in the string silently break things, and it's impossible to find callers via IDE.Fix: Replace with C# interfaces or events:
Or use
UnityEventfields for designer-friendly wiring.