public void OnDestroy() { HardwareController.Instance.removeLocationListener(this); HardwareController.Instance.removeDeviceAngleChangeListener(this); CloseGlyphsDownloader.getInstance().removeGlyphDownloadedListener(this); clearRenderGlyphListeners(); }
private void interfaceWithDownloadListener() { if (LoggedInUser.GetLoggedInUser() != null) { CloseGlyphsDownloader.getInstance().addGlyphDownloadedListener(this); } }
public static void initialize() { if (Instance != null) { return; } //Debug.logger.logEnabled = false; if (Screen.fullScreen) { Screen.fullScreen = false; } GameObject hardwareController = new GameObject("Hardware Controller"); Instance = hardwareController.AddComponent <HardwareController> (); DontDestroyOnLoad(hardwareController); GameObject glyphDownloader = new GameObject("Glyph Downloader"); CloseGlyphsDownloader downloader = glyphDownloader.AddComponent <CloseGlyphsDownloader> (); Instance.addLocationListener(downloader); DontDestroyOnLoad(glyphDownloader); }
private void interfaceWithHardwareController() { HardwareController.Instance.addLocationListener(this); HardwareController.Instance.addDeviceAngleChangeListener(this); CloseGlyphsDownloader.getInstance().addGlyphDownloadedListener(this); }
public void OnDestroy() { CloseGlyphsDownloader.getInstance().removeGlyphDownloadedListener(this); }
void Awake() { Instance = this; }