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);
     }
 }
Beispiel #3
0
    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;
 }