/// Initialise function /// public void Initialise() { m_audioService = GlobalDirector.Service <AudioService>(); m_inputService = GlobalDirector.Service <InputService>(); m_localisationService = GlobalDirector.Service <LocalisationService>(); InitialiseInternal(); }
/// Called when the global director is ready /// protected virtual void OnDirectorReady() { m_localisationService = GlobalDirector.Service <LocalisationService>(); m_localisationService.OnLanguageChanged += OnLanguageChanged; if (m_localisationService.m_loaded == true) { OnLanguageChanged(); } }