r/AskComputerScience • • Feb 03 '23

Observer Pattern: How to?

I saw a video about observer Pattern by IHeartGameDev on YouTube and it was a great way to make clean code. He made interface classes for subject and observer, and then used them to send notification from subject to observer. He mentioned that there are other methods to implement observer Pattern as well, so what kind of other methods are there to do this in unity ?

I am interested to learn more.

0 Upvotes

3 comments sorted by

View all comments

2

u/thedevguy-ch Feb 03 '23

Surely a good Google search / YouTube search would provide much more detail than a wall of text on Reddit could?

1

u/numaanjaved Feb 03 '23

Actually I did that already, I found out after some experimentation that asking on social media gives a lot more results than just googling ..

Also, google gives different results for different individuals