Example #1
0
    // Use this for initialization
    void Start()
    {
        sharePlugin = SharePlugin.GetInstance();
        sharePlugin.SetDebug(0);

        cameraPlugin = CameraPlugin.GetInstance();
        cameraPlugin.SetDebug(0);
        cameraPlugin.Init(folderName);

        //imagePickerPlugin = ImagePickerPlugin.GetInstance();
        dispatcher = Dispatcher.GetInstance();

        gpsPlugin = GPSPlugin.GetInstance();
        gpsPlugin.SetDebug(0);

        long updateInterval = 200;
        long minimumMeterChangeForUpdate = 0;

        gpsPlugin.Init(updateInterval, minimumMeterChangeForUpdate);
        AddGPSEventListeners();
        gpsPlugin.StartGPS();
        GetLatitude();
        GetLongitude();

        /*
         * imagePickerPlugin.SetDebug(0);
         * imagePickerPlugin.Init();
         *
         * imagePickerPlugin.OnGetImagesComplete += onGetImagesComplete;
         * imagePickerPlugin.OnGetImageCancel += onGetImagesCancel;
         * imagePickerPlugin.OnGetImageFail += onGetImageFail;
         *
         * imagePickerPlugin.GetImages();*/
        screenShotId = PlayerPrefs.GetInt("SitePicId");
    }
Example #2
0
    public static GPSPlugin GetInstance()
    {
        if(instance==null){
            container = new GameObject();
            container.name="GPSPlugin";
            instance = container.AddComponent( typeof(GPSPlugin) ) as GPSPlugin;
            DontDestroyOnLoad(instance.gameObject);
        }

        return instance;
    }
Example #3
0
    public static GPSPlugin GetInstance()
    {
        if(instance==null){
            container = new GameObject();
            container.name="GPSPlugin";
            instance = container.AddComponent( typeof(GPSPlugin) ) as GPSPlugin;
            DontDestroyOnLoad(instance.gameObject);
            aupHolder = AUPHolder.GetInstance();
            instance.gameObject.transform.SetParent(aupHolder.gameObject.transform);
        }

        return instance;
    }
Example #4
0
    public static GPSPlugin GetInstance()
    {
        if (instance == null)
        {
            container      = new GameObject();
            container.name = "GPSPlugin";
            instance       = container.AddComponent(typeof(GPSPlugin)) as GPSPlugin;
            DontDestroyOnLoad(instance.gameObject);
            aupHolder = AUPHolder.GetInstance();
            instance.gameObject.transform.SetParent(aupHolder.gameObject.transform);
        }

        return(instance);
    }
Example #5
0
    // Use this for initialization
    void Start()
    {
        gpsPlugin = GPSPlugin.GetInstance();
        gpsPlugin.SetDebug(0);

        //long updateInterval = 1000 * 60 * 1; // 1 minute
        //long updateInterval = 1000 * 5; // 5 seconds
        long updateInterval = 200;         // 200 millsecs

        //long minimumMeterChangeForUpdate = 10 //10 meters;
        long minimumMeterChangeForUpdate = 0;         //0 meters reason it's a hack because LocationManager in androind is buggy and unreliable


        gpsPlugin.Init(updateInterval, minimumMeterChangeForUpdate);
        AddGPSEventListeners();

        // start the gps
        gpsPlugin.StartGPS();
    }
Example #6
0
    // Use this for initialization
    void Start()
    {
        gpsPlugin = GPSPlugin.GetInstance();
        gpsPlugin.SetDebug(0);

        //long updateInterval = 1000 * 60 * 1; // 1 minute
        //long updateInterval = 1000 * 5; // 5 seconds
        long updateInterval = 200;         // 200 millsecs

        //long minimumMeterChangeForUpdate = 10 //10 meters;
        long minimumMeterChangeForUpdate = 0;         //0 meters reason it's a hack because LocationManager in androind is buggy and unreliable


        gpsPlugin.Init(updateInterval, minimumMeterChangeForUpdate);
        gpsPlugin.SetLocationChangeListener(
            OnLocationChange
            , OnEnableGPS
            , OnGetLocationComplete
            , OnGetLocationFail
            , onLocationChangeInformation
            , OnGetLocationCompleteInformation
            );
    }
Example #7
0
    // Use this for initialization
    void Start()
    {
        gpsPlugin = GPSPlugin.GetInstance();
        gpsPlugin.SetDebug(0);

        //long updateInterval = 1000 * 60 * 1; // 1 minute
        //long updateInterval = 1000 * 5; // 5 seconds
        long updateInterval = 200; // 200 millsecs

        //long minimumMeterChangeForUpdate = 10 //10 meters;
        long minimumMeterChangeForUpdate = 0; //0 meters reason it's a hack because LocationManager in androind is buggy and unreliable

        gpsPlugin.Init(updateInterval,minimumMeterChangeForUpdate);
        gpsPlugin.SetLocationChangeListener(
                        OnLocationChange
                        ,OnEnableGPS
                        ,OnGetLocationComplete
                        ,OnGetLocationFail
                        ,onLocationChangeInformation
                        ,OnGetLocationCompleteInformation
            );
    }
Example #8
0
 private void Start()
 {
     m_Text.text = "LON: " + GPSPlugin.GetLongitude() + ", LAT: " + GPSPlugin.GetLatitude();
 }