Skip to main content

044. Unity3d Tutorial - Getting CSharpMessenger Extended

See video

We continue with another tutorial in our Hack And Slash demo made with the Unity3d Game Engine.

In this video, We will go get a message system from the Unity Wiki, and then insert it into our project so we can start sending messages from gameobject, to gameobject with out the need of a reference to the gameobjects.

The CSharpMessenger Extended can be found at:
http://www.unifycommunity.com/wiki/index.php?title=CSharpMessenger_Extended

I have added the unmodified versions of the scripts from my project here. I will not be keeping them updated if there are changes to the originals. If for some reason you can not get the originals, you are welcome to snag a copy from the link below.

AttachmentSize
CSMessenger Extended.zip2.16 KB
Tags:

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Offline
Joined: Jun 12 2011

I write the Messenger.cs and i going to test it and say me that:

BroadcastException: Broadcasting message Mornging Light Time but no listener found.
MessengerInternal.OnBroadcasting (System.String eventType, MessengerMode mode) (at Assets/scripts/CSMessenger Extended/Messenger.cs:65)
Messenger`1[System.Boolean].Broadcast (System.String eventType, Boolean arg1, MessengerMode mode) (at Assets/scripts/CSMessenger Extended/Messenger.cs:140)
Messenger`1[System.Boolean].Broadcast (System.String eventType, Boolean arg1) (at Assets/scripts/CSMessenger Extended/Messenger.cs:136)
GameTime.Update () (at Assets/scripts/GameTime.cs:106)

what can i do ??

Petey's picture
Offline
Joined: Feb 3 2010

The first line of the error tells you that you have a message being sent, but could not find a listener. Make sure that you have a listener and that it is spelled the same.

Offline
Joined: Jun 12 2011

yes i know. But i do not know how to make a listener!! (sorry for but english)!

Petey's picture
Offline
Joined: Feb 3 2010

What tutorial are you on because it is shown in the videos how to use this script.

Offline
Joined: Jun 12 2011

In tutorial Day Night Cycle you tell he need the tutorial (44) but i can not understand what is listener and how work it!!

Petey's picture
Offline
Joined: Feb 3 2010

Why are you on the day and night cycle when you have not even done these tutorials yet? These are scripts that you need.

Offline
Joined: Jun 12 2011

not understand me.. i have done all tutorial so day and night and i can not understand it what can i do with listener!

Petey's picture
Offline
Joined: Feb 3 2010

Watch the next couple of tutorials. They show you how to do it.