Event
Flash-esque Event System for Unity part2,flash事件与unity3d事件的比较-第二部分
由 uke 于 星期二, 01/26/2010 - 20:35 发表教程最后有unity3d资源包,相当于源文件了,大家可下载来研究!!
I posted about this back in November and I just have not had the time to follow up. I happened to be over on Unity Answers yesterday and saw someone was asking for just this. I figured I should really get this up.
As I stated before, I was going to do a test project and do some profiling to see what performance demands the event system has. Here are a couple screen shots of what the project looks like:
Flash-esque Event System for Unity,flash事件与unity3d事件的比较
由 uke 于 星期二, 01/26/2010 - 20:31 发表看来由flash转向unity3d的朋友真的比较多,老外写的一篇关于二者事件系统的教程。
Lets see some hands – how many Unity users are from the Flash camp originally?
..That’s what I thought.
One of the things I constantly hear about from people making the jump from Flash is Unity’s lack-there-of event system, like the one we have in Flash. Sure, we can use SendMessage() or produce some custom delegates and assign them… but it isn’t as hassle free as a simple call like this:
Add the listener:

