Example #1
0
 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;
 }
Example #2
0
 public static Actor NewActor(Type type, IActorObserver observer)
 {
     return NewActor(type, null, observer);
 }