private void HandleSpatialSelect(object sender, SpatialEventArgs e) { IMapMenuModel mapMenuModel = transform.GetComponent <MapMenuController>().GETMapMenuModel(); model.ChangeVisibility(false); mapMenuModel.ChangeVisibility(true); IMapView mapView = transform.GetComponent <MapController>().GETMapView(); Vector3 newpos = new Vector3(Camera.main.transform.position.x, Camera.main.transform.position.y - 0.6f, Camera.main.transform.position.z); mapView.setMapPosition(newpos); IMapModel mapModel = transform.GetComponent <MapController>().GETMapModel(); model.ChangeVisibility(false); mapModel.ChangeVisibility(true); IQueryMenuController IqueryMenuController = transform.GetComponent <QueryMenuController>(); IqueryMenuController.getview().setQueryMenuRadialPosition(new Vector3(0.1f, 0, 0), false); IqueryMenuController.getview().setQueryMenuPosition(new Vector3(0, 0, 1f)); }
public void OnSpatialButtonLogic() { var eventArgs = new SpatialEventArgs(); OnSpatialSelect(this, eventArgs); }