internal static void RegisterBehaviour(BaseInjectBehaviour behaviour) { var type = behaviour.GetType(); if (_behaviourDictionary.ContainsKey(type)) { Debug.LogWarning("InjectBehaviour of type " + type + " already exists"); } else { _behaviourDictionary.Add(type, behaviour); InjectPostponedConsumers(behaviour, type); RegisterBehaviourSingletonProperty(behaviour, type); LookupRegisterableMembers(behaviour, type); LookupRegisterableInterfaces(behaviour, type); } }
internal static void RemoveBehaviour(BaseInjectBehaviour behaviour) { RemoveBehaviourInner(behaviour); }