public void RegisterEndpoint(TranslationEndpointManager translationEndpointManager) { translationEndpointManager.Manager = this; AllEndpoints.Add(translationEndpointManager); if (translationEndpointManager.Error == null) { ConfiguredEndpoints.Add(translationEndpointManager); } }
public void RegisterEndpoint(TranslationEndpointManager translationEndpointManager) { translationEndpointManager.Manager = this; AllEndpoints.Add(translationEndpointManager); if (translationEndpointManager.Error == null) { ConfiguredEndpoints.Add(translationEndpointManager); } if (translationEndpointManager.Endpoint is IMonoBehaviour_Update updatable) { _updateCallbacks.Add(updatable); } }