void PrimaryMapClickUp() { if (!SelectedCluster) { return; } Vector3 mapPos; if (mouseLeftInProgress && GetTerrainIntersection(out mapPos)) { SelectedCluster.Command(mouseLeftDownPos, mapPos); } }
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; } }
void PrimaryMapClick() { if (!SelectedCluster) { return; } Vector3 mapPos; if (GetTerrainIntersection(out mapPos)) { SelectedCluster.PlaceFormation(mouseLeftDownPos, mapPos); } if (Input.GetMouseButtonDown(1)) { SelectedCluster.FlipFormation(); } }