コード例 #1
0
    public void addLocationListener(LocationChangeListener listener)
    {
        locationListeners.Add(listener);

        if (!lastLocation.Equals(GPSLocation.UNDEFINED))
        {
            Debug.LogWarning("Can already access location. Immediately firing new location on new listener");
            StartCoroutine(listener.onLocationChange(lastLocation));
        }
    }
コード例 #2
0
    public void removeLocationListener(LocationChangeListener listener)
    {
        bool removed = locationListeners.Remove(listener);

        Debug.LogError("Removed " + removed);
    }