Exemple #1
0
    void PrimaryMapClickUp()
    {
        if (!SelectedCluster)
        {
            return;
        }

        Vector3 mapPos;

        if (mouseLeftInProgress && GetTerrainIntersection(out mapPos))
        {
            SelectedCluster.Command(mouseLeftDownPos, mapPos);
        }
    }
Exemple #2
0
        public async void GoToDetailsPage()
        {
            if (SelectedCluster.AreEmpty())
            {
                return;
            }
            else
            {
                var SelectedItemJson = JsonConvert.SerializeObject(SelectedCluster);
                var route            = $"{nameof(ClusterDetailsPage)}?Cluster={SelectedItemJson}";
                await Shell.Current.GoToAsync(route);

                SelectedCluster = null;
            }
        }
Exemple #3
0
    void PrimaryMapClick()
    {
        if (!SelectedCluster)
        {
            return;
        }
        Vector3 mapPos;

        if (GetTerrainIntersection(out mapPos))
        {
            SelectedCluster.PlaceFormation(mouseLeftDownPos, mapPos);
        }
        if (Input.GetMouseButtonDown(1))
        {
            SelectedCluster.FlipFormation();
        }
    }