internal static void _UnregisterType(IRegisteredComponent component, Type type) { InstanceContainer instanceContainer = _GetInstanceContainer(type); if (!instanceContainer.Remove(component)) { Debug.LogError("RegisteredComponentController error: Tried to unregister unknown instance"); } }
static internal void _UnregisterType( IRegisteredComponent component, Type type ) { InstanceContainer container = _GetInstanceContainer( type ); if ( !container.Remove( component ) ) { Debug.LogError( "RegisteredComponentController error: Tried to unregister unknown instance" ); } //Debug.Log( "Unregistered " + type.Name + ": " + component.gameObject.name ); }