private void HandleBack(object sender, BackOneEventArgs e)
        {
            IMainMenuModel mainMenuModel = transform.GetComponent <MainMenuController>().GETMainMenuModel();

            model.ChangeVisibility(false);
            mainMenuModel.ChangeVisibility(true);
            IMapModel mapModel = transform.GetComponent <MapController>().GETMapModel();

            mapModel.ChangeVisibility(false);

            IQueryMenuController IqueryMenuController = transform.GetComponent <QueryMenuController>();
            Vector3 pos = IqueryMenuController.getview().getInitQueryMenuPosition();

            IqueryMenuController.getview().setQueryMenuRadialPosition(pos, true);
        }
Exemple #2
0
        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));
        }