public static string GetInternationalString(SUIStringResource stringResource) { if (m_ResourceManager == null) { m_ResourceManager = new SUIResourceManager(); } SUIStringResourceHandler handler = (SUIStringResourceHandler)m_ResourceManager.m_Handlers[stringResource.StringType]; return(handler.ExtractString(stringResource)); }
public void RegisterResourceHandler(SUIStringResourceHandler stringHandler) { this.m_Handlers[stringHandler.StringType] = stringHandler; }