Exemplo n.º 1
0
    public void Like()
    {
        if (inputfield.text == "")
        {
            return;
        }

        SavedLocation savedlocation = Instantiate(savedLocationPrefab, savedlocationContent).GetComponent <SavedLocation>();

        savedlocation.Initialize(geouserinput.Coordinate, inputfield.text);
        DataSender.Instance.OnSaveLocation(inputfield.text, geouserinput.Coordinate.x, geouserinput.Coordinate.y);
    }
Exemplo n.º 2
0
    public void AddLocation(string name, double longitude, double latitude)
    {
        SavedLocation savedlocation = Instantiate(savedLocationPrefab, savedlocationContent).GetComponent <SavedLocation>();

        savedlocation.Initialize(new Mapbox.Utils.Vector2d(longitude, latitude), name);
    }