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(); }
public void AddPosition(Vector3 position) { var pathPoint = new PathPoint { Position = position }; _positionsQueue.Enqueue(pathPoint); PositionAdded?.Invoke(pathPoint); }