发送消息
-
SendMessage (string methodName , object value = null, SendMessageOptions options = SendMessageOptions.RequireReceiver)
- 传给自身及自身组件
methodName
字符串 要调用方法的名称value
要传递的参数options
如果目标对象上不存在该方法,是否应该引发错误?
-
BroadcastMessage (string methodName, object parameter= null, SendMessageOptions options= SendMessageOptions.RequireReceiver)
- 广播消息 向下按层级发送,包括自己
-
SendMessageUpwards (string methodName, object value= null, SendMessageOptions options= SendMessageOptions.RequireReceiver);
- 向上按层级发送消息,包括自己
父类子类接受消息顺序