public IBsActor Add(IBsActorConfig config) { var actor = new BsActor(_actors.Count, config); _actors.Add(actor); OnAdd.Dispatch(actor); return(actor); }
private void OnAddHandler(IBsActor actor) { Add(actor); OnAdd.Dispatch(Data[Data.Count - 1]); }