Observer pattern importance

Not only does it reduce processor load, but it reduces dependencies for the broadcaster class. Some Haxe libraries use signals, which are simple broadcasters with or without arguments. There’s a free third party event messenger system for C# that I found on Will Miller’s blog that works very efficiently and does not depend on strings (it’s actually not his version of the class that I use, but a mod that one of the commenters made). I like it because it reminds me of the ActionScript 3 API (haters gonna hate) and is less ugly than Unity’s event system and less wasteful than its messaging system.

Privacy & Terms