コード例 #1
0
    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");
        }
    }
コード例 #2
0
        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 );
        }