public void RemoveBehaviour <T>() where T : IEntityBehaviour { IEntityBehaviour behaviour = EntityBehaviours.FirstOrDefault(b => b.GetType() == typeof(T)); if (behaviour != null) { EntityBehaviours.Remove(behaviour); } }
public void AddBehaviour(IEntityBehaviour behaviour) { EntityBehaviours.Add(behaviour); m_behavioursCount++; }