public void AddMember(Actor actor) { if (!members.Contains(actor)) { members.Add(actor); if (contentGroup != null) { contentGroup.AddMember(actor); } } }
public void AddMember(Actor actor) { if (!members.Contains(actor)) { members.Add(actor); if (actor is Player) { ((Player)actor).AddDirector(this); } if (contentGroup != null) { contentGroup.AddMember(actor); } } }