public void RemoveActor(BaseActor actor) { if (actor != null && actorList.Contains(actor)) { actorList.Remove(actor); actor.PropertyChanged -= OnActorPropertyChanged; //actor.Release(); actor = null; } }
public void AddActor(BaseActor actor) { if (actor != null && !actorList.Contains(actor)) { actorList.Add(actor); actor.CurScene = this; actor.PropertyChanged += OnActorPropertyChanged; //actor.Load(); } }
protected void OnActorPropertyChanged(BaseActor actor, int id, object oldValue, object newValue) { }