Ejemplo n.º 1
0
        protected override bool PrivateUpdate(ScenarioFrame frame)
        {
            SetValue <InspectedOption, bool>(House, true);

            if ((Lots.MatchesAlertLevel(House.AllSimDescriptions)) && (GetValue <PromptOption, bool>()))
            {
                if (AcceptCancelDialog.Show(Common.Localize("InspectionFail:Prompt", false, new object[] { House.Name, House.LotHome.Address })))
                {
                    if (CameraController.IsMapViewModeEnabled())
                    {
                        Sims3.Gameplay.Core.Camera.ToggleMapView();
                    }

                    Camera.FocusOnLot(House.LotHome.LotId, 0f);
                }
            }

            return(true);
        }