Can you do this in Unityscript ? "Convert c# to unityscript!"

I assume one can NOT do the following in Unityscript:

public static event Action<string> somethingHappened;

but I don’t know, because U/S is not so very documented. And they seem to add awesome new features from time to time.

So it would be great if an expert could give me their opinion on this, thanks!

BTW a workaround in U/S is have a List of Function, and a routine that adds incoming requests to that list. When the “thing” in question happens, run through the list and call them all. Well that’s the only workaround I know.

Cheers !

According to this post there are no multicast delegates in UnityScript. However i never tried it and the post is not up to date.

Unfortunately now in Spring 2013 I tried this for you …

var somethingHappened : Action.<string>;

somethingHappened += someFunctionWithStringParameter1;
somethingHappened += someFunctionWithStringParameter2;

and it does not work. I guess a List with simple delegates is the only way.