Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

The Observer Design Pattern

$
0
0
Hello everyone.
I'm thinking of implementing it (naturally...) in my code.
I was thinking of another way to implement it, I wanted to know if it is a valid way, if anyone tried it, any cons/pros?

The Basic Observer
In the game code you set an observer that should get the events from that specific code/class/object.
Once an event happens, it notifies its' observer, and the observer does its thing (be it manipulate score, achievement, etc...)
But in this case, you have to have a different...

The Observer Design Pattern

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>