Пример #1
0
        public void AddMember(Actor actor)
        {
            if (!members.Contains(actor))
            {
                members.Add(actor);

                if (contentGroup != null)
                {
                    contentGroup.AddMember(actor);
                }
            }
        }
Пример #2
0
        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);
                }
            }
        }