privateAction go;privatevoidStart(){
go += One;
go += Two;//go(); //直接调用,只会调用第一个方法,然后由于抛出错误,委托迭代中断Delegate[] des = go.GetInvocationList();//打断连播,还会继续执行接下来的委托foreach(Action item in des){try{item();}catch(Exception e){
Console.WriteLine(e);}}}publicvoidOne(){
Debug.Log("One");thrownewException("Error in one");}publicvoidTwo(){
Debug.Log("Two");}