Esempio n. 1
0
    // Token: 0x06000735 RID: 1845 RVA: 0x0006D464 File Offset: 0x0006B864
    public static MissionModeSaveData ReadFromGlobals()
    {
        MissionModeSaveData missionModeSaveData = new MissionModeSaveData();

        foreach (int num in MissionModeGlobals.KeysOfMissionCondition())
        {
            missionModeSaveData.missionCondition.Add(num, MissionModeGlobals.GetMissionCondition(num));
        }
        missionModeSaveData.missionDifficulty       = MissionModeGlobals.MissionDifficulty;
        missionModeSaveData.missionMode             = MissionModeGlobals.MissionMode;
        missionModeSaveData.missionRequiredClothing = MissionModeGlobals.MissionRequiredClothing;
        missionModeSaveData.missionRequiredDisposal = MissionModeGlobals.MissionRequiredDisposal;
        missionModeSaveData.missionRequiredWeapon   = MissionModeGlobals.MissionRequiredWeapon;
        missionModeSaveData.missionTarget           = MissionModeGlobals.MissionTarget;
        missionModeSaveData.missionTargetName       = MissionModeGlobals.MissionTargetName;
        missionModeSaveData.nemesisDifficulty       = MissionModeGlobals.NemesisDifficulty;
        return(missionModeSaveData);
    }
Esempio n. 2
0
 private void Start()
 {
     if (!SchoolGlobals.HighSecurity)
     {
         this.SecurityCameraGroup.SetActive(false);
         this.MetalDetectorGroup.SetActive(false);
     }
     this.NewMissionWindow.gameObject.SetActive(false);
     this.MissionModeHUD.SetActive(false);
     this.SpottedWindow.SetActive(false);
     this.ExitPortal.SetActive(false);
     this.Safe.SetActive(false);
     this.MainCamera = Camera.main;
     if (GameGlobals.LoveSick)
     {
         this.MurderKit.SetActive(false);
         this.Yandere.HeartRate.MediumColour = new Color(1f, 1f, 1f, 1f);
         this.Yandere.HeartRate.NormalColour = new Color(1f, 1f, 1f, 1f);
         this.Clock.PeriodLabel.color        = new Color(1f, 0f, 0f, 1f);
         this.Clock.TimeLabel.color          = new Color(1f, 0f, 0f, 1f);
         this.Clock.DayLabel.enabled         = false;
         this.MoneyLabel.color = new Color(1f, 0f, 0f, 1f);
         this.Reputation.PendingRepMarker.GetComponent <UISprite>().color = new Color(1f, 0f, 0f, 1f);
         this.Reputation.CurrentRepMarker.gameObject.SetActive(false);
         this.Reputation.PendingRepLabel.color = new Color(1f, 0f, 0f, 1f);
         this.ReputationFace1.color            = new Color(1f, 0f, 0f, 1f);
         this.ReputationFace2.color            = new Color(1f, 0f, 0f, 1f);
         this.ReputationBG.color       = new Color(1f, 0f, 0f, 1f);
         this.ReputationLabel.color    = new Color(1f, 0f, 0f, 1f);
         this.Watermark.color          = new Color(1f, 0f, 0f, 1f);
         this.EventSubtitleLabel.color = new Color(1f, 0f, 0f, 1f);
         this.SubtitleLabel.color      = new Color(1f, 0f, 0f, 1f);
         this.CautionSign.color        = new Color(1f, 0f, 0f, 1f);
         this.FPS.color         = new Color(1f, 0f, 0f, 1f);
         this.SanityLabel.color = new Color(1f, 0f, 0f, 1f);
         this.ID = 1;
         while (this.ID < this.PoliceLabel.Length)
         {
             this.PoliceLabel[this.ID].color = new Color(1f, 0f, 0f, 1f);
             this.ID++;
         }
         this.ID = 1;
         while (this.ID < this.PoliceIcon.Length)
         {
             this.PoliceIcon[this.ID].color = new Color(1f, 0f, 0f, 1f);
             this.ID++;
         }
     }
     if (MissionModeGlobals.MissionMode)
     {
         this.AlphabetArrow.gameObject.SetActive(true);
         this.AlphabetArrow.gameObject.GetComponent <Renderer>().material.shader = this.StudentManager.QualityManager.ToonOutline;
         this.AlphabetArrow.gameObject.GetComponent <Renderer>().material.color  = new Color(1f, 1f, 1f, 0f);
         this.Headmaster.SetActive(false);
         this.Yandere.HeartRate.MediumColour = new Color(1f, 0.5f, 0.5f, 1f);
         this.Yandere.HeartRate.NormalColour = new Color(1f, 1f, 1f, 1f);
         this.Clock.PeriodLabel.color        = new Color(1f, 1f, 1f, 1f);
         this.Clock.TimeLabel.color          = new Color(1f, 1f, 1f, 1f);
         this.Clock.DayLabel.enabled         = false;
         this.MoneyLabel.color        = new Color(1f, 1f, 1f, 1f);
         this.MoneyLabel.fontStyle    = FontStyle.Bold;
         this.MoneyLabel.trueTypeFont = this.Arial;
         this.Reputation.PendingRepMarker.GetComponent <UISprite>().color = new Color(1f, 1f, 1f, 1f);
         this.Reputation.CurrentRepMarker.gameObject.SetActive(false);
         this.Reputation.PendingRepLabel.color = new Color(1f, 1f, 1f, 1f);
         this.ReputationLabel.fontStyle        = FontStyle.Bold;
         this.ReputationLabel.trueTypeFont     = this.Arial;
         this.ReputationLabel.color            = new Color(1f, 1f, 1f, 1f);
         this.ReputationLabel.text             = "AWARENESS";
         this.ReputationIcons[0].SetActive(true);
         this.ReputationIcons[1].SetActive(false);
         this.ReputationIcons[2].SetActive(false);
         this.ReputationIcons[3].SetActive(false);
         this.ReputationIcons[4].SetActive(false);
         this.ReputationIcons[5].SetActive(false);
         this.Clock.TimeLabel.fontStyle      = FontStyle.Bold;
         this.Clock.TimeLabel.trueTypeFont   = this.Arial;
         this.Clock.PeriodLabel.fontStyle    = FontStyle.Bold;
         this.Clock.PeriodLabel.trueTypeFont = this.Arial;
         this.Watermark.fontStyle            = FontStyle.Bold;
         this.Watermark.color        = new Color(1f, 1f, 1f, 1f);
         this.Watermark.trueTypeFont = this.Arial;
         this.SubtitleLabel.color    = new Color(1f, 1f, 1f, 1f);
         this.CautionSign.color      = new Color(1f, 1f, 1f, 1f);
         this.FPS.color                  = new Color(1f, 1f, 1f, 1f);
         this.SanityLabel.color          = new Color(1f, 1f, 1f, 1f);
         this.ColorCorrections           = this.MainCamera.GetComponents <ColorCorrectionCurves>();
         this.StudentManager.MissionMode = true;
         this.NemesisDifficulty          = MissionModeGlobals.NemesisDifficulty;
         this.Difficulty                 = MissionModeGlobals.MissionDifficulty;
         this.TargetID                     = MissionModeGlobals.MissionTarget;
         ClassGlobals.BiologyGrade         = 1;
         ClassGlobals.ChemistryGrade       = 1;
         ClassGlobals.LanguageGrade        = 1;
         ClassGlobals.PhysicalGrade        = 1;
         ClassGlobals.PsychologyGrade      = 1;
         OptionGlobals.TutorialsOff        = true;
         SchoolGlobals.SchoolAtmosphereSet = true;
         SchoolGlobals.SchoolAtmosphere    = 1f - (float)this.Difficulty * 0.1f;
         PlayerGlobals.Money               = 20f;
         this.StudentManager.Atmosphere    = 1f - (float)this.Difficulty * 0.1f;
         this.StudentManager.SetAtmosphere();
         this.ID = 1;
         while (this.ID < this.PoliceLabel.Length)
         {
             this.PoliceLabel[this.ID].fontStyle    = FontStyle.Bold;
             this.PoliceLabel[this.ID].color        = new Color(1f, 1f, 1f, 1f);
             this.PoliceLabel[this.ID].trueTypeFont = this.Arial;
             this.ID++;
         }
         this.ID = 1;
         while (this.ID < this.PoliceIcon.Length)
         {
             this.PoliceIcon[this.ID].color = new Color(1f, 1f, 1f, 1f);
             this.ID++;
         }
         if (this.Difficulty > 1)
         {
             this.ID = 2;
             while (this.ID < this.Difficulty + 1)
             {
                 int missionCondition = MissionModeGlobals.GetMissionCondition(this.ID);
                 if (missionCondition == 1)
                 {
                     this.RequiredWeaponID = MissionModeGlobals.MissionRequiredWeapon;
                 }
                 else if (missionCondition == 2)
                 {
                     this.RequiredClothingID = MissionModeGlobals.MissionRequiredClothing;
                 }
                 else if (missionCondition == 3)
                 {
                     this.RequiredDisposalID = MissionModeGlobals.MissionRequiredDisposal;
                 }
                 else if (missionCondition == 4)
                 {
                     this.NoCollateral = true;
                 }
                 else if (missionCondition == 5)
                 {
                     this.NoWitnesses = true;
                 }
                 else if (missionCondition == 6)
                 {
                     this.NoCorpses = true;
                 }
                 else if (missionCondition == 7)
                 {
                     this.NoWeapon = true;
                 }
                 else if (missionCondition == 8)
                 {
                     this.NoBlood = true;
                 }
                 else if (missionCondition == 9)
                 {
                     this.TimeLimit = true;
                 }
                 else if (missionCondition == 10)
                 {
                     this.NoSuspicion = true;
                 }
                 else if (missionCondition == 11)
                 {
                     this.SecurityCameras = true;
                 }
                 else if (missionCondition == 12)
                 {
                     this.MetalDetectors = true;
                 }
                 else if (missionCondition == 13)
                 {
                     this.NoSpeech = true;
                 }
                 else if (missionCondition == 14)
                 {
                     this.StealDocuments = true;
                 }
                 this.Conditions[this.ID] = missionCondition;
                 this.ID++;
             }
         }
         if (!this.StealDocuments)
         {
             this.DocumentsStolen = true;
         }
         else
         {
             this.Safe.SetActive(true);
         }
         if (this.SecurityCameras)
         {
             this.SecurityCameraGroup.SetActive(true);
         }
         if (this.MetalDetectors)
         {
             this.MetalDetectorGroup.SetActive(true);
         }
         if (this.TimeLimit)
         {
             this.TimeLabel.gameObject.SetActive(true);
         }
         if (this.NoSpeech)
         {
             this.StudentManager.NoSpeech = true;
         }
         if (this.RequiredDisposalID == 0)
         {
             this.CorpseDisposed = true;
         }
         if (this.NemesisDifficulty > 0)
         {
             this.Nemesis.SetActive(true);
         }
         if (!this.NoWeapon)
         {
             this.WeaponDisposed = true;
         }
         if (!this.NoBlood)
         {
             this.BloodCleaned = true;
         }
         this.Jukebox.Egg = true;
         this.Jukebox.KillVolume();
         this.Jukebox.MissionMode.enabled = true;
         this.Jukebox.MissionMode.volume  = 0f;
         this.Yandere.FixCamera();
         this.MainCamera.transform.position    = new Vector3(this.MainCamera.transform.position.x, 6.51505f, -76.9222f);
         this.MainCamera.transform.eulerAngles = new Vector3(15f, this.MainCamera.transform.eulerAngles.y, this.MainCamera.transform.eulerAngles.z);
         this.Yandere.RPGCamera.enabled        = false;
         this.Yandere.SanityBased = true;
         this.Yandere.CanMove     = false;
         this.VoidGoddess.GetComponent <VoidGoddessScript>().Window.gameObject.SetActive(false);
         this.HeartbeatCamera.SetActive(false);
         this.TranqDetector.SetActive(false);
         this.VoidGoddess.SetActive(false);
         this.MurderKit.SetActive(false);
         this.TargetHeight      = 1.51505f;
         this.Yandere.HUD.alpha = 0f;
         this.MusicIcon.color   = new Color(this.MusicIcon.color.r, this.MusicIcon.color.g, this.MusicIcon.color.b, 1f);
         this.Darkness.color    = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, 1f);
         this.MissionModeMenu.UpdateGraphics();
         this.MissionModeMenu.gameObject.SetActive(true);
         if (MissionModeGlobals.MultiMission)
         {
             this.NewMissionWindow.gameObject.SetActive(true);
             this.MissionModeMenu.gameObject.SetActive(false);
             this.NewMissionWindow.FillOutInfo();
             this.NewMissionWindow.HideButtons();
             this.MultiMission = true;
             for (int i = 1; i < 11; i++)
             {
                 this.Target[i] = PlayerPrefs.GetInt("MissionModeTarget" + i);
                 this.Method[i] = PlayerPrefs.GetInt("MissionModeMethod" + i);
             }
         }
         this.Enabled = true;
         return;
     }
     this.MissionModeMenu.gameObject.SetActive(false);
     this.TimeLabel.gameObject.SetActive(false);
     base.enabled = false;
 }
Esempio n. 3
0
 // Token: 0x06000013 RID: 19 RVA: 0x000066B0 File Offset: 0x00004AB0
 private void Start()
 {
     if (!SchoolGlobals.HighSecurity)
     {
         this.SecurityCameraGroup.SetActive(false);
         this.MetalDetectorGroup.SetActive(false);
     }
     this.MissionModeHUD.SetActive(false);
     this.ExitPortal.SetActive(false);
     this.Safe.SetActive(false);
     if (GameGlobals.LoveSick)
     {
         this.MurderKit.SetActive(false);
         this.Yandere.HeartRate.MediumColour = new Color(1f, 1f, 1f, 1f);
         this.Yandere.HeartRate.NormalColour = new Color(1f, 1f, 1f, 1f);
         this.Clock.PeriodLabel.color        = new Color(1f, 0f, 0f, 1f);
         this.Clock.TimeLabel.color          = new Color(1f, 0f, 0f, 1f);
         this.Clock.DayLabel.enabled         = false;
         this.Reputation.PendingRepMarker.GetComponent <UISprite>().color = new Color(1f, 0f, 0f, 1f);
         this.Reputation.CurrentRepMarker.gameObject.SetActive(false);
         this.Reputation.PendingRepLabel.color = new Color(1f, 0f, 0f, 1f);
         this.ReputationFace1.color            = new Color(1f, 0f, 0f, 1f);
         this.ReputationFace2.color            = new Color(1f, 0f, 0f, 1f);
         this.ReputationBG.color       = new Color(1f, 0f, 0f, 1f);
         this.ReputationLabel.color    = new Color(1f, 0f, 0f, 1f);
         this.Watermark.color          = new Color(1f, 0f, 0f, 1f);
         this.EventSubtitleLabel.color = new Color(1f, 0f, 0f, 1f);
         this.SubtitleLabel.color      = new Color(1f, 0f, 0f, 1f);
         this.CautionSign.color        = new Color(1f, 0f, 0f, 1f);
         this.FPS.color = new Color(1f, 0f, 0f, 1f);
         this.ID        = 1;
         while (this.ID < this.PoliceLabel.Length)
         {
             this.PoliceLabel[this.ID].color = new Color(1f, 0f, 0f, 1f);
             this.ID++;
         }
         this.ID = 1;
         while (this.ID < this.PoliceIcon.Length)
         {
             this.PoliceIcon[this.ID].color = new Color(1f, 0f, 0f, 1f);
             this.ID++;
         }
     }
     if (MissionModeGlobals.MissionMode)
     {
         this.Headmaster.SetActive(false);
         this.Yandere.HeartRate.MediumColour = new Color(1f, 0.5f, 0.5f, 1f);
         this.Yandere.HeartRate.NormalColour = new Color(1f, 1f, 1f, 1f);
         this.Clock.PeriodLabel.color        = new Color(1f, 1f, 1f, 1f);
         this.Clock.TimeLabel.color          = new Color(1f, 1f, 1f, 1f);
         this.Clock.DayLabel.enabled         = false;
         this.Reputation.PendingRepMarker.GetComponent <UISprite>().color = new Color(1f, 1f, 1f, 1f);
         this.Reputation.CurrentRepMarker.gameObject.SetActive(false);
         this.Reputation.PendingRepLabel.color = new Color(1f, 1f, 1f, 1f);
         this.ReputationLabel.fontStyle        = FontStyle.Bold;
         this.ReputationLabel.trueTypeFont     = this.Arial;
         this.ReputationLabel.color            = new Color(1f, 1f, 1f, 1f);
         this.ReputationLabel.text             = "AWARENESS";
         this.ReputationIcons[0].SetActive(true);
         this.ReputationIcons[1].SetActive(false);
         this.ReputationIcons[2].SetActive(false);
         this.ReputationIcons[3].SetActive(false);
         this.ReputationIcons[4].SetActive(false);
         this.ReputationIcons[5].SetActive(false);
         this.Clock.TimeLabel.fontStyle      = FontStyle.Bold;
         this.Clock.TimeLabel.trueTypeFont   = this.Arial;
         this.Clock.PeriodLabel.fontStyle    = FontStyle.Bold;
         this.Clock.PeriodLabel.trueTypeFont = this.Arial;
         this.Watermark.fontStyle            = FontStyle.Bold;
         this.Watermark.color        = new Color(1f, 1f, 1f, 1f);
         this.Watermark.trueTypeFont = this.Arial;
         this.SubtitleLabel.color    = new Color(1f, 1f, 1f, 1f);
         this.CautionSign.color      = new Color(1f, 1f, 1f, 1f);
         this.FPS.color                  = new Color(1f, 1f, 1f, 1f);
         this.ColorCorrections           = Camera.main.GetComponents <ColorCorrectionCurves>();
         this.StudentManager.MissionMode = true;
         this.NemesisDifficulty          = MissionModeGlobals.NemesisDifficulty;
         this.Difficulty                 = MissionModeGlobals.MissionDifficulty;
         this.TargetID = MissionModeGlobals.MissionTarget;
         this.ID       = 1;
         while (this.ID < this.PoliceLabel.Length)
         {
             this.PoliceLabel[this.ID].fontStyle    = FontStyle.Bold;
             this.PoliceLabel[this.ID].color        = new Color(1f, 1f, 1f, 1f);
             this.PoliceLabel[this.ID].trueTypeFont = this.Arial;
             this.ID++;
         }
         this.ID = 1;
         while (this.ID < this.PoliceIcon.Length)
         {
             this.PoliceIcon[this.ID].color = new Color(1f, 1f, 1f, 1f);
             this.ID++;
         }
         if (this.Difficulty > 1)
         {
             this.ID = 2;
             while (this.ID < this.Difficulty + 1)
             {
                 int missionCondition = MissionModeGlobals.GetMissionCondition(this.ID);
                 if (missionCondition == 1)
                 {
                     this.RequiredWeaponID = MissionModeGlobals.MissionRequiredWeapon;
                 }
                 else if (missionCondition == 2)
                 {
                     this.RequiredClothingID = MissionModeGlobals.MissionRequiredClothing;
                 }
                 else if (missionCondition == 3)
                 {
                     this.RequiredDisposalID = MissionModeGlobals.MissionRequiredDisposal;
                 }
                 else if (missionCondition == 4)
                 {
                     this.NoCollateral = true;
                 }
                 else if (missionCondition == 5)
                 {
                     this.NoWitnesses = true;
                 }
                 else if (missionCondition == 6)
                 {
                     this.NoCorpses = true;
                 }
                 else if (missionCondition == 7)
                 {
                     this.NoWeapon = true;
                 }
                 else if (missionCondition == 8)
                 {
                     this.NoBlood = true;
                 }
                 else if (missionCondition == 9)
                 {
                     this.TimeLimit = true;
                 }
                 else if (missionCondition == 10)
                 {
                     this.NoSuspicion = true;
                 }
                 else if (missionCondition == 11)
                 {
                     this.SecurityCameras = true;
                 }
                 else if (missionCondition == 12)
                 {
                     this.MetalDetectors = true;
                 }
                 else if (missionCondition == 13)
                 {
                     this.NoSpeech = true;
                 }
                 else if (missionCondition == 14)
                 {
                     this.StealDocuments = true;
                 }
                 this.Conditions[this.ID] = missionCondition;
                 this.ID++;
             }
         }
         if (!this.StealDocuments)
         {
             this.DocumentsStolen = true;
         }
         else
         {
             this.Safe.SetActive(true);
         }
         if (this.SecurityCameras)
         {
             this.SecurityCameraGroup.SetActive(true);
         }
         if (this.MetalDetectors)
         {
             this.MetalDetectorGroup.SetActive(true);
         }
         if (!this.TimeLimit)
         {
             this.TimeLabel.gameObject.SetActive(false);
         }
         if (this.NoSpeech)
         {
             this.StudentManager.NoSpeech = true;
         }
         if (this.RequiredDisposalID == 0)
         {
             this.CorpseDisposed = true;
         }
         if (this.NemesisDifficulty > 0)
         {
             this.Nemesis.SetActive(true);
         }
         if (!this.NoWeapon)
         {
             this.WeaponDisposed = true;
         }
         if (!this.NoBlood)
         {
             this.BloodCleaned = true;
         }
         this.Jukebox.Egg = true;
         this.Jukebox.KillVolume();
         this.Jukebox.MissionMode.enabled = true;
         this.Jukebox.MissionMode.volume  = 0f;
         this.Yandere.FixCamera();
         Camera.main.transform.position    = new Vector3(Camera.main.transform.position.x, 6.51505f, -76.9222f);
         Camera.main.transform.eulerAngles = new Vector3(15f, Camera.main.transform.eulerAngles.y, Camera.main.transform.eulerAngles.z);
         this.Yandere.RPGCamera.enabled    = false;
         this.Yandere.SanityBased          = true;
         this.Yandere.CanMove = false;
         this.HeartbeatCamera.SetActive(false);
         this.TranqDetector.SetActive(false);
         this.MurderKit.SetActive(false);
         this.TargetHeight      = 1.51505f;
         this.Yandere.HUD.alpha = 0f;
         this.MusicIcon.color   = new Color(this.MusicIcon.color.r, this.MusicIcon.color.g, this.MusicIcon.color.b, 1f);
         this.Darkness.color    = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, 1f);
         this.MissionModeMenu.UpdateGraphics();
     }
     else
     {
         this.MissionModeMenu.gameObject.SetActive(false);
         this.TimeLabel.gameObject.SetActive(false);
         base.enabled = false;
     }
 }