示例#1
0
文件: ActorsMan.cs 项目: antgraf/BA
 public static Actor NewActor(Type type, object data, IActorObserver observer)
 {
     Actor actor = (Actor)Activator.CreateInstance(type);
     actor.Init(data, observer);
     pActors.Add(actor);
     return actor;
 }
示例#2
0
文件: ActorsMan.cs 项目: antgraf/BA
 public static Actor NewActor(Type type, IActorObserver observer)
 {
     return NewActor(type, null, observer);
 }