Ejemplo n.º 1
0
        private async Task AddPosition()
        {
            await _pageService.DisplayAlert("ORDER", my_position.Name + " added to your order!", "OK");

            // Invoke all events
            PositionAdded?.Invoke(this, my_position);
            await _pageService.PopAsync();
        }
Ejemplo n.º 2
0
    public void AddPosition(Vector3 position)
    {
        var pathPoint = new PathPoint {
            Position = position
        };

        _positionsQueue.Enqueue(pathPoint);

        PositionAdded?.Invoke(pathPoint);
    }