// Token: 0x0600146C RID: 5228 RVA: 0x000B4160 File Offset: 0x000B2360
    public static void DeleteAll()
    {
        int profile = GameGlobals.Profile;

        ClassGlobals.DeleteAll();
        ClubGlobals.DeleteAll();
        CollectibleGlobals.DeleteAll();
        ConversationGlobals.DeleteAll();
        DateGlobals.DeleteAll();
        DatingGlobals.DeleteAll();
        EventGlobals.DeleteAll();
        GameGlobals.DeleteAll();
        HomeGlobals.DeleteAll();
        MissionModeGlobals.DeleteAll();
        PlayerGlobals.DeleteAll();
        PoseModeGlobals.DeleteAll();
        SchemeGlobals.DeleteAll();
        SchoolGlobals.DeleteAll();
        SenpaiGlobals.DeleteAll();
        StudentGlobals.DeleteAll();
        TaskGlobals.DeleteAll();
        YanvaniaGlobals.DeleteAll();
        WeaponGlobals.DeleteAll();
        TutorialGlobals.DeleteAll();
        CounselorGlobals.DeleteAll();
        YancordGlobals.DeleteAll();
        CorkboardGlobals.DeleteAll();
        GameGlobals.Profile = profile;
        DateGlobals.Week    = 1;
    }
 // Token: 0x06001727 RID: 5927 RVA: 0x000C57C8 File Offset: 0x000C39C8
 private void Start()
 {
     this.UpdateCurrentLabel();
     for (int i = 0; i < this.TotalManga; i++)
     {
         if (CollectibleGlobals.GetMangaCollected(i + 1))
         {
             this.NewManga = UnityEngine.Object.Instantiate <GameObject>(this.MangaModels[i], new Vector3(base.transform.position.x, base.transform.position.y, base.transform.position.z - 1f), Quaternion.identity);
         }
         else
         {
             this.NewManga = UnityEngine.Object.Instantiate <GameObject>(this.MysteryManga, new Vector3(base.transform.position.x, base.transform.position.y, base.transform.position.z - 1f), Quaternion.identity);
         }
         this.NewManga.transform.parent = this.MangaParent;
         this.NewManga.GetComponent <HomeMangaBookScript>().Manga = this;
         this.NewManga.GetComponent <HomeMangaBookScript>().ID    = i;
         this.NewManga.transform.localScale          = new Vector3(1.45f, 1.45f, 1.45f);
         this.MangaParent.transform.localEulerAngles = new Vector3(this.MangaParent.transform.localEulerAngles.x, this.MangaParent.transform.localEulerAngles.y + 360f / (float)this.TotalManga, this.MangaParent.transform.localEulerAngles.z);
         this.MangaList[i] = this.NewManga;
     }
     this.MangaParent.transform.localEulerAngles = new Vector3(this.MangaParent.transform.localEulerAngles.x, 0f, this.MangaParent.transform.localEulerAngles.z);
     this.MangaParent.transform.localPosition    = new Vector3(this.MangaParent.transform.localPosition.x, this.MangaParent.transform.localPosition.y, 1.8f);
     this.UpdateMangaLabels();
     this.MangaParent.transform.localScale = Vector3.zero;
     this.MangaParent.gameObject.SetActive(false);
 }
Exemplo n.º 3
0
 private void UpdatePantyLabels()
 {
     if (this.Selected == 0 || CollectibleGlobals.GetPantyPurchased(this.Selected))
     {
         this.PantyNameLabel.text = this.PantyNames[this.Selected];
         this.PantyDescLabel.text = this.PantyDescs[this.Selected];
         this.PantyBuffLabel.text = this.PantyBuffs[this.Selected];
     }
     else
     {
         this.PantyNameLabel.text = "?????";
         this.PantyBuffLabel.text = "?????";
         if (this.Selected < 11)
         {
             this.PantyDescLabel.text = "Unlock these panties by going shopping in town at night!";
         }
         else
         {
             this.PantyDescLabel.text = "Unlock these panties by locating them and picking them up!";
         }
     }
     if (this.Selected == 0 || CollectibleGlobals.GetPantyPurchased(this.Selected))
     {
         this.ButtonLabel.text = ((this.Selected == PlayerGlobals.PantiesEquipped) ? "Equipped" : "Wear");
         return;
     }
     this.ButtonLabel.text = "Unavailable";
 }
Exemplo n.º 4
0
 // Token: 0x0600126E RID: 4718 RVA: 0x00086B40 File Offset: 0x00084D40
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         if (this.CollectibleType == CollectibleType.HeadmasterTape)
         {
             CollectibleGlobals.SetHeadmasterTapeCollected(this.ID, true);
         }
         else if (this.CollectibleType == CollectibleType.BasementTape)
         {
             CollectibleGlobals.SetBasementTapeCollected(this.ID, true);
         }
         else if (this.CollectibleType == CollectibleType.Manga)
         {
             CollectibleGlobals.SetMangaCollected(this.ID, true);
         }
         else if (this.CollectibleType == CollectibleType.Tape)
         {
             CollectibleGlobals.SetTapeCollected(this.ID, true);
         }
         else if (this.CollectibleType == CollectibleType.Key)
         {
             this.Prompt.Yandere.Inventory.MysteriousKeys++;
         }
         else if (this.CollectibleType == CollectibleType.Panty)
         {
             CollectibleGlobals.SetPantyPurchased(11, true);
         }
         else
         {
             Debug.LogError("Collectible \"" + this.Name + "\" not implemented.", base.gameObject);
         }
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
Exemplo n.º 5
0
 // Token: 0x0600036D RID: 877 RVA: 0x0003ABC8 File Offset: 0x00038FC8
 public static void DeleteAll()
 {
     Globals.DeleteCollection("BasementTapeCollected_", CollectibleGlobals.KeysOfBasementTapeCollected());
     Globals.DeleteCollection("BasementTapeListened_", CollectibleGlobals.KeysOfBasementTapeListened());
     Globals.DeleteCollection("MangaCollected_", CollectibleGlobals.KeysOfMangaCollected());
     Globals.DeleteCollection("TapeCollected_", CollectibleGlobals.KeysOfTapeCollected());
     Globals.DeleteCollection("TapeListened_", CollectibleGlobals.KeysOfTapeListened());
 }
Exemplo n.º 6
0
 // Token: 0x0600174A RID: 5962 RVA: 0x000C83E4 File Offset: 0x000C65E4
 private void Start()
 {
     if (this.ID > 0 && !CollectibleGlobals.GetPantyPurchased(this.ID))
     {
         this.MyRenderer.material       = this.Unselectable;
         this.MyRenderer.material.color = new Color(0f, 0f, 0f, 0.5f);
     }
 }
    // Token: 0x06000189 RID: 393 RVA: 0x0001A890 File Offset: 0x00018C90
    private void Start()
    {
        bool flag = (this.CollectibleType == CollectibleType.BasementTape && CollectibleGlobals.GetBasementTapeCollected(this.ID)) || (this.CollectibleType == CollectibleType.Manga && CollectibleGlobals.GetMangaCollected(this.ID)) || (this.CollectibleType == CollectibleType.Tape && CollectibleGlobals.GetTapeCollected(this.ID));

        if (flag)
        {
            UnityEngine.Object.Destroy(base.gameObject);
        }
    }
Exemplo n.º 8
0
 // Token: 0x0600126C RID: 4716 RVA: 0x00086A20 File Offset: 0x00084C20
 private void Start()
 {
     if ((this.CollectibleType == CollectibleType.BasementTape && CollectibleGlobals.GetBasementTapeCollected(this.ID)) || (this.CollectibleType == CollectibleType.Manga && CollectibleGlobals.GetMangaCollected(this.ID)) || (this.CollectibleType == CollectibleType.Tape && CollectibleGlobals.GetTapeCollected(this.ID)) || (this.CollectibleType == CollectibleType.Panty && CollectibleGlobals.GetPantyPurchased(11)))
     {
         UnityEngine.Object.Destroy(base.gameObject);
     }
     if (GameGlobals.LoveSick || MissionModeGlobals.MissionMode)
     {
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
 // Token: 0x060014D2 RID: 5330 RVA: 0x000B6FB8 File Offset: 0x000B51B8
 public static void DeleteAll()
 {
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_BasementTapeCollected_", CollectibleGlobals.KeysOfBasementTapeCollected());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_BasementTapeListened_", CollectibleGlobals.KeysOfBasementTapeListened());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_MangaCollected_", CollectibleGlobals.KeysOfMangaCollected());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_PantyPurchased_", CollectibleGlobals.KeysOfPantyPurchased());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_GiftPurchased_", CollectibleGlobals.KeysOfGiftPurchased());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_GiftGiven_", CollectibleGlobals.KeysOfGiftGiven());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_TapeCollected_", CollectibleGlobals.KeysOfTapeCollected());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_TapeListened_", CollectibleGlobals.KeysOfTapeListened());
     Globals.Delete("Profile_" + GameGlobals.Profile + "_MatchmakingGifts");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SenpaiGifts");
 }
Exemplo n.º 10
0
 // Token: 0x06000877 RID: 2167 RVA: 0x00099710 File Offset: 0x00097B10
 public void CheckSelection()
 {
     if (this.Category == 1)
     {
         this.TapePlayer.PromptBar.Label[0].text = ((!CollectibleGlobals.GetTapeCollected(this.Selected)) ? string.Empty : "PLAY");
         this.TapePlayer.PromptBar.UpdateButtons();
     }
     else
     {
         this.TapePlayer.PromptBar.Label[0].text = ((!CollectibleGlobals.GetBasementTapeCollected(this.Selected)) ? string.Empty : "PLAY");
         this.TapePlayer.PromptBar.UpdateButtons();
     }
 }
Exemplo n.º 11
0
    // Token: 0x06001C26 RID: 7206 RVA: 0x001516C4 File Offset: 0x0014F8C4
    public void UpdateLabels()
    {
        int i = 0;

        while (i < this.TotalTapes)
        {
            i++;
            if (this.Category == 1)
            {
                this.HeaderLabel.text = "Mysterious Tapes";
                if (CollectibleGlobals.GetTapeCollected(i))
                {
                    this.TapeLabels[i].text = "Mysterious Tape " + i.ToString();
                    this.NewIcons[i].SetActive(!CollectibleGlobals.GetTapeListened(i));
                }
                else
                {
                    this.TapeLabels[i].text = "?????";
                    this.NewIcons[i].SetActive(false);
                }
            }
            else if (this.Category == 2)
            {
                this.HeaderLabel.text = "Basement Tapes";
                if (CollectibleGlobals.GetBasementTapeCollected(i))
                {
                    this.TapeLabels[i].text = "Basement Tape " + i.ToString();
                    this.NewIcons[i].SetActive(!CollectibleGlobals.GetBasementTapeListened(i));
                }
                else
                {
                    this.TapeLabels[i].text = "?????";
                    this.NewIcons[i].SetActive(false);
                }
            }
            else
            {
                this.HeaderLabel.text = "Headmaster Tapes";
                if (CollectibleGlobals.GetHeadmasterTapeCollected(i))
                {
                    this.TapeLabels[i].text = "Headmaster Tape " + i.ToString();
                    this.NewIcons[i].SetActive(!CollectibleGlobals.GetHeadmasterTapeListened(i));
                }
                else
                {
                    this.TapeLabels[i].text = "?????";
                    this.NewIcons[i].SetActive(false);
                }
            }
        }
    }
Exemplo n.º 12
0
 // Token: 0x06001C27 RID: 7207 RVA: 0x00151854 File Offset: 0x0014FA54
 public void CheckSelection()
 {
     if (this.Category == 1)
     {
         this.TapePlayer.PromptBar.Label[0].text = (CollectibleGlobals.GetTapeCollected(this.Selected) ? "PLAY" : string.Empty);
         this.TapePlayer.PromptBar.UpdateButtons();
         return;
     }
     if (this.Category == 2)
     {
         this.TapePlayer.PromptBar.Label[0].text = (CollectibleGlobals.GetBasementTapeCollected(this.Selected) ? "PLAY" : string.Empty);
         this.TapePlayer.PromptBar.UpdateButtons();
         return;
     }
     this.TapePlayer.PromptBar.Label[0].text = (CollectibleGlobals.GetHeadmasterTapeCollected(this.Selected) ? "PLAY" : string.Empty);
     this.TapePlayer.PromptBar.UpdateButtons();
 }
Exemplo n.º 13
0
    // Token: 0x06000720 RID: 1824 RVA: 0x0006CAF0 File Offset: 0x0006AEF0
    public static CollectibleSaveData ReadFromGlobals()
    {
        CollectibleSaveData collectibleSaveData = new CollectibleSaveData();

        foreach (int num in CollectibleGlobals.KeysOfBasementTapeCollected())
        {
            if (CollectibleGlobals.GetBasementTapeCollected(num))
            {
                collectibleSaveData.basementTapeCollected.Add(num);
            }
        }
        foreach (int num2 in CollectibleGlobals.KeysOfBasementTapeListened())
        {
            if (CollectibleGlobals.GetBasementTapeListened(num2))
            {
                collectibleSaveData.basementTapeListened.Add(num2);
            }
        }
        foreach (int num3 in CollectibleGlobals.KeysOfMangaCollected())
        {
            if (CollectibleGlobals.GetMangaCollected(num3))
            {
                collectibleSaveData.mangaCollected.Add(num3);
            }
        }
        foreach (int num4 in CollectibleGlobals.KeysOfTapeCollected())
        {
            if (CollectibleGlobals.GetTapeCollected(num4))
            {
                collectibleSaveData.tapeCollected.Add(num4);
            }
        }
        foreach (int num5 in CollectibleGlobals.KeysOfTapeListened())
        {
            if (CollectibleGlobals.GetTapeListened(num5))
            {
                collectibleSaveData.tapeListened.Add(num5);
            }
        }
        return(collectibleSaveData);
    }
Exemplo n.º 14
0
 // Token: 0x0600018B RID: 395 RVA: 0x0001A978 File Offset: 0x00018D78
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         if (this.CollectibleType == CollectibleType.BasementTape)
         {
             CollectibleGlobals.SetBasementTapeCollected(this.ID, true);
         }
         else if (this.CollectibleType == CollectibleType.Manga)
         {
             CollectibleGlobals.SetMangaCollected(this.ID, true);
         }
         else if (this.CollectibleType == CollectibleType.Tape)
         {
             CollectibleGlobals.SetTapeCollected(this.ID, true);
         }
         else
         {
             Debug.LogError("Collectible \"" + this.Name + "\" not implemented.", base.gameObject);
         }
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
Exemplo n.º 15
0
 // Token: 0x06000721 RID: 1825 RVA: 0x0006CC40 File Offset: 0x0006B040
 public static void WriteToGlobals(CollectibleSaveData data)
 {
     foreach (int tapeID in data.basementTapeCollected)
     {
         CollectibleGlobals.SetBasementTapeCollected(tapeID, true);
     }
     foreach (int tapeID2 in data.basementTapeListened)
     {
         CollectibleGlobals.SetBasementTapeListened(tapeID2, true);
     }
     foreach (int mangaID in data.mangaCollected)
     {
         CollectibleGlobals.SetMangaCollected(mangaID, true);
     }
     foreach (int tapeID3 in data.tapeCollected)
     {
         CollectibleGlobals.SetTapeCollected(tapeID3, true);
     }
     foreach (int tapeID4 in data.tapeListened)
     {
         CollectibleGlobals.SetTapeListened(tapeID4, true);
     }
 }
 // Token: 0x06001728 RID: 5928 RVA: 0x000C5A24 File Offset: 0x000C3C24
 private void Update()
 {
     if (this.HomeWindow.Show)
     {
         if (!this.AreYouSure.activeInHierarchy)
         {
             this.MangaParent.localScale = Vector3.Lerp(this.MangaParent.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
             this.MangaParent.gameObject.SetActive(true);
             if (this.InputManager.TappedRight)
             {
                 this.DestinationReached = false;
                 this.TargetRotation    += 360f / (float)this.TotalManga;
                 this.Selected++;
                 if (this.Selected > this.TotalManga - 1)
                 {
                     this.Selected = 0;
                 }
                 this.UpdateMangaLabels();
                 this.UpdateCurrentLabel();
             }
             if (this.InputManager.TappedLeft)
             {
                 this.DestinationReached = false;
                 this.TargetRotation    -= 360f / (float)this.TotalManga;
                 this.Selected--;
                 if (this.Selected < 0)
                 {
                     this.Selected = this.TotalManga - 1;
                 }
                 this.UpdateMangaLabels();
                 this.UpdateCurrentLabel();
             }
             this.Rotation = Mathf.Lerp(this.Rotation, this.TargetRotation, Time.deltaTime * 10f);
             this.MangaParent.localEulerAngles = new Vector3(this.MangaParent.localEulerAngles.x, this.Rotation, this.MangaParent.localEulerAngles.z);
             if (Input.GetButtonDown("A") && this.ReadButtonGroup.activeInHierarchy)
             {
                 this.MangaGroup.SetActive(false);
                 this.AreYouSure.SetActive(true);
             }
             if (Input.GetKeyDown(KeyCode.S))
             {
                 PlayerGlobals.Seduction++;
                 PlayerGlobals.Numbness++;
                 PlayerGlobals.Enlightenment++;
                 if (PlayerGlobals.Seduction > 5)
                 {
                     PlayerGlobals.Seduction     = 0;
                     PlayerGlobals.Numbness      = 0;
                     PlayerGlobals.Enlightenment = 0;
                 }
                 this.UpdateCurrentLabel();
                 this.UpdateMangaLabels();
             }
             if (Input.GetButtonDown("B"))
             {
                 this.HomeCamera.Destination = this.HomeCamera.Destinations[0];
                 this.HomeCamera.Target      = this.HomeCamera.Targets[0];
                 this.HomeYandere.CanMove    = true;
                 this.HomeWindow.Show        = false;
             }
             if (Input.GetKeyDown(KeyCode.Space))
             {
                 for (int i = 0; i < this.TotalManga; i++)
                 {
                     CollectibleGlobals.SetMangaCollected(i + 1, true);
                 }
                 return;
             }
         }
         else
         {
             if (Input.GetButtonDown("A"))
             {
                 if (this.Selected < 5)
                 {
                     PlayerGlobals.Seduction++;
                 }
                 else if (this.Selected < 10)
                 {
                     PlayerGlobals.Numbness++;
                 }
                 else
                 {
                     PlayerGlobals.Enlightenment++;
                 }
                 this.AreYouSure.SetActive(false);
                 this.Darkness.FadeOut = true;
             }
             if (Input.GetButtonDown("B"))
             {
                 this.MangaGroup.SetActive(true);
                 this.AreYouSure.SetActive(false);
                 return;
             }
         }
     }
     else
     {
         this.MangaParent.localScale = Vector3.Lerp(this.MangaParent.localScale, Vector3.zero, Time.deltaTime * 10f);
         if (this.MangaParent.localScale.x < 0.01f)
         {
             this.MangaParent.gameObject.SetActive(false);
         }
     }
 }
Exemplo n.º 17
0
 // Token: 0x060012FB RID: 4859 RVA: 0x00099400 File Offset: 0x00097600
 private void Update()
 {
     if (this.Testing)
     {
         this.Prompt.enabled = true;
     }
     else if (this.LoveManager.RivalWaiting)
     {
         if (this.Rival == null)
         {
             this.Suitor = this.StudentManager.Students[this.LoveManager.SuitorID];
             this.Rival  = this.StudentManager.Students[this.LoveManager.RivalID];
         }
         if (this.Rival.MeetTimer > 0f && this.Suitor.MeetTimer > 0f)
         {
             this.Prompt.enabled = true;
         }
     }
     else if (this.Prompt.enabled)
     {
         this.Prompt.Hide();
         this.Prompt.enabled = false;
     }
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Prompt.Circle[0].fillAmount = 1f;
         if (!this.Yandere.Chased && this.Yandere.Chasers == 0 && !this.Rival.Hunted)
         {
             this.Suitor.CharacterAnimation.cullingType = AnimationCullingType.AlwaysAnimate;
             this.Rival.CharacterAnimation.cullingType  = AnimationCullingType.AlwaysAnimate;
             this.Suitor.CharacterAnimation.enabled     = true;
             this.Rival.CharacterAnimation.enabled      = true;
             this.Suitor.enabled = false;
             this.Rival.enabled  = false;
             this.Rival.CharacterAnimation["f02_smile_00"].layer = 1;
             this.Rival.CharacterAnimation.Play("f02_smile_00");
             this.Rival.CharacterAnimation["f02_smile_00"].weight = 0f;
             this.StudentManager.Clock.StopTime = true;
             this.Yandere.RPGCamera.enabled     = false;
             this.HeartbeatCamera.SetActive(false);
             this.Yandere.Headset.SetActive(true);
             this.Yandere.CanMove = false;
             this.Yandere.EmptyHands();
             if (this.Yandere.YandereVision)
             {
                 this.Yandere.ResetYandereEffects();
                 this.Yandere.YandereVision = false;
             }
             this.Yandere.transform.position    = this.PeekSpot.position;
             this.Yandere.transform.eulerAngles = this.PeekSpot.eulerAngles;
             this.Yandere.CharacterAnimation.Play("f02_treePeeking_00");
             this.MainCamera.transform.position    = new Vector3(48f, 3f, -44f);
             this.MainCamera.transform.eulerAngles = new Vector3(15f, 90f, 0f);
             this.WisdomLabel.text     = "Wisdom: " + DatingGlobals.GetSuitorTrait(2).ToString();
             this.GiftIcons[1].enabled = CollectibleGlobals.GetGiftPurchased(6);
             this.GiftIcons[2].enabled = CollectibleGlobals.GetGiftPurchased(7);
             this.GiftIcons[3].enabled = CollectibleGlobals.GetGiftPurchased(8);
             this.GiftIcons[4].enabled = CollectibleGlobals.GetGiftPurchased(9);
             this.Matchmaking          = true;
             this.UpdateTopics();
             Time.timeScale = 1f;
         }
     }
     if (this.Matchmaking)
     {
         if (this.CurrentAnim != string.Empty && this.Rival.CharacterAnimation[this.CurrentAnim].time >= this.Rival.CharacterAnimation[this.CurrentAnim].length)
         {
             this.Rival.CharacterAnimation.Play(this.Rival.IdleAnim);
         }
         if (this.Phase == 1)
         {
             this.Panel.alpha = Mathf.MoveTowards(this.Panel.alpha, 0f, Time.deltaTime);
             this.Timer      += Time.deltaTime;
             this.MainCamera.transform.position    = Vector3.Lerp(Camera.main.transform.position, new Vector3(54f, 1.25f, -45.25f), this.Timer * 0.02f);
             this.MainCamera.transform.eulerAngles = Vector3.Lerp(this.MainCamera.transform.eulerAngles, new Vector3(0f, 45f, 0f), this.Timer * 0.02f);
             if (this.Timer > 5f)
             {
                 this.Suitor.CharacterAnimation.Play("insertEarpiece_00");
                 this.Suitor.CharacterAnimation["insertEarpiece_00"].time = 0f;
                 this.Suitor.CharacterAnimation.Play("insertEarpiece_00");
                 this.Suitor.Earpiece.SetActive(true);
                 this.MainCamera.transform.position    = new Vector3(45.5f, 1.25f, -44.5f);
                 this.MainCamera.transform.eulerAngles = new Vector3(0f, -45f, 0f);
                 this.Rotation = -45f;
                 this.Timer    = 0f;
                 this.Phase++;
                 return;
             }
         }
         else if (this.Phase == 2)
         {
             this.Timer += Time.deltaTime;
             if (this.Timer > 4f)
             {
                 this.Suitor.Earpiece.transform.parent           = this.Suitor.Head;
                 this.Suitor.Earpiece.transform.localPosition    = new Vector3(0f, -1.12f, 1.14f);
                 this.Suitor.Earpiece.transform.localEulerAngles = new Vector3(45f, -180f, 0f);
                 this.MainCamera.transform.position = Vector3.Lerp(this.MainCamera.transform.position, new Vector3(45.11f, 1.375f, -44f), (this.Timer - 4f) * 0.02f);
                 this.Rotation = Mathf.Lerp(this.Rotation, 90f, (this.Timer - 4f) * 0.02f);
                 this.MainCamera.transform.eulerAngles = new Vector3(this.MainCamera.transform.eulerAngles.x, this.Rotation, this.MainCamera.transform.eulerAngles.z);
                 if (this.Rotation > 89.9f)
                 {
                     this.Rival.CharacterAnimation["f02_turnAround_00"].time = 0f;
                     this.Rival.CharacterAnimation.CrossFade("f02_turnAround_00");
                     this.AffectionBar.localScale = new Vector3(this.Affection / 100f, this.AffectionBar.localScale.y, this.AffectionBar.localScale.z);
                     this.DialogueLabel.text      = this.Greetings[this.AffectionLevel];
                     this.CalculateMultiplier();
                     this.DatingSimHUD.gameObject.SetActive(true);
                     this.Timer = 0f;
                     this.Phase++;
                     return;
                 }
             }
         }
         else if (this.Phase == 3)
         {
             this.DatingSimHUD.alpha = Mathf.MoveTowards(this.DatingSimHUD.alpha, 1f, Time.deltaTime);
             if (this.Rival.CharacterAnimation["f02_turnAround_00"].time >= this.Rival.CharacterAnimation["f02_turnAround_00"].length)
             {
                 this.Rival.transform.eulerAngles = new Vector3(this.Rival.transform.eulerAngles.x, -90f, this.Rival.transform.eulerAngles.z);
                 this.Rival.CharacterAnimation.Play("f02_turnAround_00");
                 this.Rival.CharacterAnimation["f02_turnAround_00"].time  = 0f;
                 this.Rival.CharacterAnimation["f02_turnAround_00"].speed = 0f;
                 this.Rival.CharacterAnimation.Play("f02_turnAround_00");
                 this.Rival.CharacterAnimation.CrossFade(this.Rival.IdleAnim);
                 Time.timeScale = 1f;
                 this.PromptBar.ClearButtons();
                 this.PromptBar.Label[0].text = "Confirm";
                 this.PromptBar.Label[1].text = "Back";
                 this.PromptBar.Label[4].text = "Select";
                 this.PromptBar.UpdateButtons();
                 this.PromptBar.Show = true;
                 this.Phase++;
                 return;
             }
         }
         else if (this.Phase == 4)
         {
             if (this.AffectionGrow)
             {
                 this.Affection = Mathf.MoveTowards(this.Affection, 100f, Time.deltaTime * 10f);
                 this.CalculateAffection();
             }
             this.Rival.Cosmetic.MyRenderer.materials[2].SetFloat("_BlendAmount", this.Affection * 0.01f);
             this.Rival.CharacterAnimation["f02_smile_00"].weight = this.Affection * 0.01f;
             this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, Mathf.Lerp(this.Highlight.localPosition.y, this.HighlightTarget, Time.deltaTime * 10f), this.Highlight.localPosition.z);
             for (int i = 1; i < this.Options.Length; i++)
             {
                 Transform transform = this.Options[i];
                 transform.localPosition = new Vector3(Mathf.Lerp(transform.localPosition.x, (i == this.Selected) ? 750f : 800f, Time.deltaTime * 10f), transform.localPosition.y, transform.localPosition.z);
             }
             this.AffectionBar.localScale = new Vector3(Mathf.Lerp(this.AffectionBar.localScale.x, this.Affection / 100f, Time.deltaTime * 10f), this.AffectionBar.localScale.y, this.AffectionBar.localScale.z);
             if (!this.SelectingTopic && !this.Complimenting && !this.ShowingOff && !this.GivingGift)
             {
                 this.Topics.localScale        = Vector3.Lerp(this.Topics.localScale, Vector3.zero, Time.deltaTime * 10f);
                 this.ComplimentSet.localScale = Vector3.Lerp(this.ComplimentSet.localScale, Vector3.zero, Time.deltaTime * 10f);
                 this.ShowOff.localScale       = Vector3.Lerp(this.ShowOff.localScale, Vector3.zero, Time.deltaTime * 10f);
                 this.GiveGift.localScale      = Vector3.Lerp(this.GiveGift.localScale, Vector3.zero, Time.deltaTime * 10f);
                 if (this.InputManager.TappedUp)
                 {
                     this.Selected--;
                     this.UpdateHighlight();
                 }
                 if (this.InputManager.TappedDown)
                 {
                     this.Selected++;
                     this.UpdateHighlight();
                 }
                 if (Input.GetButtonDown("A") && this.Labels[this.Selected].color.a == 1f)
                 {
                     if (this.Selected == 1)
                     {
                         this.SelectingTopic = true;
                         this.Negative       = true;
                         return;
                     }
                     if (this.Selected == 2)
                     {
                         this.SelectingTopic = true;
                         this.Negative       = false;
                         return;
                     }
                     if (this.Selected == 3)
                     {
                         this.Complimenting = true;
                         return;
                     }
                     if (this.Selected == 4)
                     {
                         this.ShowingOff = true;
                         return;
                     }
                     if (this.Selected == 5)
                     {
                         this.GivingGift = true;
                         return;
                     }
                     if (this.Selected == 6)
                     {
                         this.PromptBar.ClearButtons();
                         this.PromptBar.Label[0].text = "Confirm";
                         this.PromptBar.UpdateButtons();
                         this.CalculateAffection();
                         this.DialogueLabel.text = this.Farewells[this.AffectionLevel];
                         this.Phase++;
                         return;
                     }
                 }
             }
             else if (this.SelectingTopic)
             {
                 this.Topics.localScale = Vector3.Lerp(this.Topics.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
                 if (this.InputManager.TappedUp)
                 {
                     this.Row--;
                     this.UpdateTopicHighlight();
                 }
                 else if (this.InputManager.TappedDown)
                 {
                     this.Row++;
                     this.UpdateTopicHighlight();
                 }
                 if (this.InputManager.TappedLeft)
                 {
                     this.Column--;
                     this.UpdateTopicHighlight();
                 }
                 else if (this.InputManager.TappedRight)
                 {
                     this.Column++;
                     this.UpdateTopicHighlight();
                 }
                 if (Input.GetButtonDown("A") && this.TopicIcons[this.TopicSelected].color.a == 1f)
                 {
                     this.SelectingTopic = false;
                     UISprite uisprite = this.TopicIcons[this.TopicSelected];
                     uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0.5f);
                     DatingGlobals.SetTopicDiscussed(this.TopicSelected, true);
                     this.DetermineOpinion();
                     if (!ConversationGlobals.GetTopicLearnedByStudent(this.Opinion, this.LoveManager.RivalID))
                     {
                         ConversationGlobals.SetTopicLearnedByStudent(this.Opinion, this.LoveManager.RivalID, true);
                     }
                     if (this.Negative)
                     {
                         UILabel uilabel = this.Labels[1];
                         uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, 0.5f);
                         if (this.Opinion == 2)
                         {
                             this.DialogueLabel.text = "Hey! Just so you know, I take offense to that...";
                             this.Rival.CharacterAnimation.CrossFade("f02_refuse_00");
                             this.CurrentAnim = "f02_refuse_00";
                             this.Affection  -= 1f;
                             this.CalculateAffection();
                         }
                         else if (this.Opinion == 1)
                         {
                             this.DialogueLabel.text = this.Negatives[this.AffectionLevel];
                             this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00");
                             this.CurrentAnim = "f02_lookdown_00";
                             this.Affection  += (float)this.Multiplier;
                             this.CalculateAffection();
                         }
                         else if (this.Opinion == 0)
                         {
                             this.DialogueLabel.text = "Um...okay.";
                         }
                     }
                     else
                     {
                         UILabel uilabel2 = this.Labels[2];
                         uilabel2.color = new Color(uilabel2.color.r, uilabel2.color.g, uilabel2.color.b, 0.5f);
                         if (this.Opinion == 2)
                         {
                             this.DialogueLabel.text = this.Positives[this.AffectionLevel];
                             this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00");
                             this.CurrentAnim = "f02_lookdown_00";
                             this.Affection  += (float)this.Multiplier;
                             this.CalculateAffection();
                         }
                         else if (this.Opinion == 1)
                         {
                             this.DialogueLabel.text = "To be honest with you, I strongly disagree...";
                             this.Rival.CharacterAnimation.CrossFade("f02_refuse_00");
                             this.CurrentAnim = "f02_refuse_00";
                             this.Affection  -= 1f;
                             this.CalculateAffection();
                         }
                         else if (this.Opinion == 0)
                         {
                             this.DialogueLabel.text = "Um...all right.";
                         }
                     }
                     if (this.Affection > 100f)
                     {
                         this.Affection = 100f;
                     }
                     else if (this.Affection < 0f)
                     {
                         this.Affection = 0f;
                     }
                 }
                 if (Input.GetButtonDown("B"))
                 {
                     this.SelectingTopic = false;
                     return;
                 }
             }
             else if (this.Complimenting)
             {
                 this.ComplimentSet.localScale = Vector3.Lerp(this.ComplimentSet.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
                 if (this.InputManager.TappedUp)
                 {
                     this.Line--;
                     this.UpdateComplimentHighlight();
                 }
                 else if (this.InputManager.TappedDown)
                 {
                     this.Line++;
                     this.UpdateComplimentHighlight();
                 }
                 if (this.InputManager.TappedLeft)
                 {
                     this.Side--;
                     this.UpdateComplimentHighlight();
                 }
                 else if (this.InputManager.TappedRight)
                 {
                     this.Side++;
                     this.UpdateComplimentHighlight();
                 }
                 if (Input.GetButtonDown("A") && this.ComplimentLabels[this.ComplimentSelected].color.a == 1f)
                 {
                     UILabel uilabel3 = this.Labels[3];
                     uilabel3.color          = new Color(uilabel3.color.r, uilabel3.color.g, uilabel3.color.b, 0.5f);
                     this.Complimenting      = false;
                     this.DialogueLabel.text = this.Compliments[this.ComplimentSelected];
                     DatingGlobals.SetComplimentGiven(this.ComplimentSelected, true);
                     if (this.ComplimentSelected == 1 || this.ComplimentSelected == 4 || this.ComplimentSelected == 5 || this.ComplimentSelected == 8 || this.ComplimentSelected == 9)
                     {
                         this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00");
                         this.CurrentAnim = "f02_lookdown_00";
                         this.Affection  += (float)this.Multiplier;
                         this.CalculateAffection();
                     }
                     else
                     {
                         this.Rival.CharacterAnimation.CrossFade("f02_refuse_00");
                         this.CurrentAnim = "f02_refuse_00";
                         this.Affection  -= 1f;
                         this.CalculateAffection();
                     }
                     if (this.Affection > 100f)
                     {
                         this.Affection = 100f;
                     }
                     else if (this.Affection < 0f)
                     {
                         this.Affection = 0f;
                     }
                 }
                 if (Input.GetButtonDown("B"))
                 {
                     this.Complimenting = false;
                     return;
                 }
             }
             else if (this.ShowingOff)
             {
                 this.ShowOff.localScale = Vector3.Lerp(this.ShowOff.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
                 if (this.InputManager.TappedUp)
                 {
                     this.TraitSelected--;
                     this.UpdateTraitHighlight();
                 }
                 else if (this.InputManager.TappedDown)
                 {
                     this.TraitSelected++;
                     this.UpdateTraitHighlight();
                 }
                 if (Input.GetButtonDown("A"))
                 {
                     UILabel uilabel4 = this.Labels[4];
                     uilabel4.color  = new Color(uilabel4.color.r, uilabel4.color.g, uilabel4.color.b, 0.5f);
                     this.ShowingOff = false;
                     if (this.TraitSelected == 2)
                     {
                         Debug.Log(string.Concat(new object[]
                         {
                             "Wisdom trait is ",
                             DatingGlobals.GetSuitorTrait(2),
                             ". Wisdom Demonstrated is ",
                             DatingGlobals.GetTraitDemonstrated(2),
                             "."
                         }));
                         if (DatingGlobals.GetSuitorTrait(2) > DatingGlobals.GetTraitDemonstrated(2))
                         {
                             DatingGlobals.SetTraitDemonstrated(2, DatingGlobals.GetTraitDemonstrated(2) + 1);
                             this.DialogueLabel.text = this.ShowOffs[this.AffectionLevel];
                             this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00");
                             this.CurrentAnim = "f02_lookdown_00";
                             this.Affection  += (float)this.Multiplier;
                             this.CalculateAffection();
                         }
                         else if (DatingGlobals.GetSuitorTrait(2) == 0)
                         {
                             this.DialogueLabel.text = "Uh...that doesn't sound correct...";
                         }
                         else if (DatingGlobals.GetSuitorTrait(2) == DatingGlobals.GetTraitDemonstrated(2))
                         {
                             this.DialogueLabel.text = "Uh...you already told me about that...";
                         }
                     }
                     else
                     {
                         this.DialogueLabel.text = "Um...well...that sort of thing doesn't really matter to me...";
                     }
                     if (this.Affection > 100f)
                     {
                         this.Affection = 100f;
                     }
                     else if (this.Affection < 0f)
                     {
                         this.Affection = 0f;
                     }
                 }
                 if (Input.GetButtonDown("B"))
                 {
                     this.ShowingOff = false;
                     return;
                 }
             }
             else if (this.GivingGift)
             {
                 this.GiveGift.localScale = Vector3.Lerp(this.GiveGift.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
                 if (this.InputManager.TappedUp)
                 {
                     this.GiftRow--;
                     this.UpdateGiftHighlight();
                 }
                 else if (this.InputManager.TappedDown)
                 {
                     this.GiftRow++;
                     this.UpdateGiftHighlight();
                 }
                 if (this.InputManager.TappedLeft)
                 {
                     this.GiftColumn--;
                     this.UpdateGiftHighlight();
                 }
                 else if (this.InputManager.TappedRight)
                 {
                     this.GiftColumn++;
                     this.UpdateGiftHighlight();
                 }
                 if (Input.GetButtonDown("A"))
                 {
                     if (this.GiftIcons[this.GiftSelected].enabled)
                     {
                         CollectibleGlobals.SetGiftPurchased(this.GiftSelected + 5, false);
                         CollectibleGlobals.SetGiftGiven(this.GiftSelected, false);
                         this.Rival.Cosmetic.CatGifts[this.GiftSelected].SetActive(true);
                         UILabel uilabel5 = this.Labels[5];
                         uilabel5.color          = new Color(uilabel5.color.r, uilabel5.color.g, uilabel5.color.b, 0.5f);
                         this.GivingGift         = false;
                         this.DialogueLabel.text = this.GiveGifts[this.GiftSelected];
                         this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00");
                         this.CurrentAnim = "f02_lookdown_00";
                         this.Affection  += (float)this.Multiplier;
                         this.CalculateAffection();
                     }
                     if (this.Affection > 100f)
                     {
                         this.Affection = 100f;
                     }
                     else if (this.Affection < 0f)
                     {
                         this.Affection = 0f;
                     }
                 }
                 if (Input.GetButtonDown("B"))
                 {
                     this.GivingGift = false;
                     return;
                 }
             }
         }
         else if (this.Phase == 5)
         {
             this.Speed += Time.deltaTime * 100f;
             this.AffectionSet.localPosition = new Vector3(this.AffectionSet.localPosition.x, this.AffectionSet.localPosition.y + this.Speed, this.AffectionSet.localPosition.z);
             this.OptionSet.localPosition    = new Vector3(this.OptionSet.localPosition.x + this.Speed, this.OptionSet.localPosition.y, this.OptionSet.localPosition.z);
             if (this.Speed > 100f && Input.GetButtonDown("A"))
             {
                 this.Phase++;
                 return;
             }
         }
         else if (this.Phase == 6)
         {
             this.DatingSimHUD.alpha = Mathf.MoveTowards(this.DatingSimHUD.alpha, 0f, Time.deltaTime);
             if (this.DatingSimHUD.alpha == 0f)
             {
                 this.DatingSimHUD.gameObject.SetActive(false);
                 this.Phase++;
                 return;
             }
         }
         else if (this.Phase == 7)
         {
             if (this.Panel.alpha == 0f)
             {
                 this.Suitor.CharacterAnimation.cullingType = AnimationCullingType.BasedOnRenderers;
                 this.LoveManager.RivalWaiting     = false;
                 this.LoveManager.Courted          = true;
                 this.Suitor.enabled               = true;
                 this.Rival.enabled                = true;
                 this.Suitor.CurrentDestination    = this.Suitor.Destinations[this.Suitor.Phase];
                 this.Suitor.Pathfinding.target    = this.Suitor.Destinations[this.Suitor.Phase];
                 this.Suitor.Prompt.Label[0].text  = "     Talk";
                 this.Suitor.Pathfinding.canSearch = true;
                 this.Suitor.Pathfinding.canMove   = true;
                 this.Suitor.Pushable              = false;
                 this.Suitor.Meeting               = false;
                 this.Suitor.Routine               = true;
                 this.Suitor.MeetTimer             = 0f;
                 this.Rival.Cosmetic.MyRenderer.materials[2].SetFloat("_BlendAmount", 0f);
                 this.Rival.CurrentDestination = this.Rival.Destinations[this.Rival.Phase];
                 this.Rival.Pathfinding.target = this.Rival.Destinations[this.Rival.Phase];
                 this.Rival.CharacterAnimation["f02_smile_00"].weight = 0f;
                 this.Rival.Prompt.Label[0].text  = "     Talk";
                 this.Rival.Pathfinding.canSearch = true;
                 this.Rival.Pathfinding.canMove   = true;
                 this.Rival.Pushable  = false;
                 this.Rival.Meeting   = false;
                 this.Rival.Routine   = true;
                 this.Rival.MeetTimer = 0f;
                 this.StudentManager.Clock.StopTime = false;
                 this.Yandere.RPGCamera.enabled     = true;
                 this.Suitor.Earpiece.SetActive(false);
                 this.HeartbeatCamera.SetActive(true);
                 this.Yandere.Headset.SetActive(false);
                 DatingGlobals.Affection = this.Affection;
                 if (this.AffectionLevel == 5)
                 {
                     this.LoveManager.ConfessToSuitor = true;
                 }
                 this.PromptBar.ClearButtons();
                 this.PromptBar.Show = false;
                 if (this.StudentManager.Students[10] != null)
                 {
                     this.StudentManager.Students[10].CurrentDestination = this.StudentManager.Students[10].FollowTarget.transform;
                     this.StudentManager.Students[10].Pathfinding.target = this.StudentManager.Students[10].FollowTarget.transform;
                 }
             }
             else if (this.Panel.alpha == 1f)
             {
                 this.Matchmaking     = false;
                 this.Yandere.CanMove = true;
                 base.gameObject.SetActive(false);
             }
             this.Panel.alpha = Mathf.MoveTowards(this.Panel.alpha, 1f, Time.deltaTime);
         }
     }
 }
 // Token: 0x06001729 RID: 5929 RVA: 0x000C5D88 File Offset: 0x000C3F88
 private void UpdateMangaLabels()
 {
     if (this.Selected < 5)
     {
         this.ReadButtonGroup.SetActive(PlayerGlobals.Seduction == this.Selected);
         if (CollectibleGlobals.GetMangaCollected(this.Selected + 1))
         {
             if (PlayerGlobals.Seduction > this.Selected)
             {
                 this.RequiredLabel.text = "You have already read this manga.";
             }
             else
             {
                 this.RequiredLabel.text = "Required Seduction Level: " + this.Selected.ToString();
             }
         }
         else
         {
             this.RequiredLabel.text = "You have not yet collected this manga.";
             this.ReadButtonGroup.SetActive(false);
         }
     }
     else if (this.Selected < 10)
     {
         this.ReadButtonGroup.SetActive(PlayerGlobals.Numbness == this.Selected - 5);
         if (CollectibleGlobals.GetMangaCollected(this.Selected + 1))
         {
             if (PlayerGlobals.Numbness > this.Selected - 5)
             {
                 this.RequiredLabel.text = "You have already read this manga.";
             }
             else
             {
                 this.RequiredLabel.text = "Required Numbness Level: " + (this.Selected - 5).ToString();
             }
         }
         else
         {
             this.RequiredLabel.text = "You have not yet collected this manga.";
             this.ReadButtonGroup.SetActive(false);
         }
     }
     else
     {
         this.ReadButtonGroup.SetActive(PlayerGlobals.Enlightenment == this.Selected - 10);
         if (CollectibleGlobals.GetMangaCollected(this.Selected + 1))
         {
             if (PlayerGlobals.Enlightenment > this.Selected - 10)
             {
                 this.RequiredLabel.text = "You have already read this manga.";
             }
             else
             {
                 this.RequiredLabel.text = "Required Enlightenment Level: " + (this.Selected - 10).ToString();
             }
         }
         else
         {
             this.RequiredLabel.text = "You have not yet collected this manga.";
             this.ReadButtonGroup.SetActive(false);
         }
     }
     if (CollectibleGlobals.GetMangaCollected(this.Selected + 1))
     {
         this.MangaNameLabel.text = this.MangaNames[this.Selected];
         this.MangaDescLabel.text = this.MangaDescs[this.Selected];
         this.MangaBuffLabel.text = this.MangaBuffs[this.Selected];
         return;
     }
     this.MangaNameLabel.text = "?????";
     this.MangaDescLabel.text = "?????";
     this.MangaBuffLabel.text = "?????";
 }
Exemplo n.º 19
0
 private void Update()
 {
     if (this.HomeWindow.Show)
     {
         this.PantyParent.localScale = Vector3.Lerp(this.PantyParent.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
         this.PantyParent.gameObject.SetActive(true);
         if (this.InputManager.TappedRight)
         {
             this.DestinationReached = false;
             this.TargetRotation    += 360f / (float)this.TotalPanties;
             this.Selected++;
             if (this.Selected > this.TotalPanties - 1)
             {
                 this.Selected = 0;
             }
             this.UpdatePantyLabels();
         }
         if (this.InputManager.TappedLeft)
         {
             this.DestinationReached = false;
             this.TargetRotation    -= 360f / (float)this.TotalPanties;
             this.Selected--;
             if (this.Selected < 0)
             {
                 this.Selected = this.TotalPanties - 1;
             }
             this.UpdatePantyLabels();
         }
         this.Rotation = Mathf.Lerp(this.Rotation, this.TargetRotation, Time.deltaTime * 10f);
         this.PantyParent.localEulerAngles = new Vector3(this.PantyParent.localEulerAngles.x, this.Rotation, this.PantyParent.localEulerAngles.z);
         if (Input.GetButtonDown("A"))
         {
             if (this.Selected == 0 || CollectibleGlobals.GetPantyPurchased(this.Selected))
             {
                 PlayerGlobals.PantiesEquipped = this.Selected;
                 Debug.Log("Yandere-chan should now be equipped with Panties #" + PlayerGlobals.PantiesEquipped);
             }
             else
             {
                 Debug.Log("Yandere-chan doesn't own those panties.");
             }
             this.UpdatePantyLabels();
         }
         if (Input.GetButtonDown("B"))
         {
             this.HomeCamera.Destination = this.HomeCamera.Destinations[0];
             this.HomeCamera.Target      = this.HomeCamera.Targets[0];
             this.HomeYandere.CanMove    = true;
             this.HomeWindow.Show        = false;
             return;
         }
     }
     else
     {
         this.PantyParent.localScale = Vector3.Lerp(this.PantyParent.localScale, Vector3.zero, Time.deltaTime * 10f);
         if (this.PantyParent.localScale.x < 0.01f)
         {
             this.PantyParent.gameObject.SetActive(false);
         }
     }
 }
Exemplo n.º 20
0
    // Token: 0x06001C25 RID: 7205 RVA: 0x001503B8 File Offset: 0x0014E5B8
    private void Update()
    {
        AudioSource component = base.GetComponent <AudioSource>();
        float       t         = Time.unscaledDeltaTime * 10f;

        if (this.Show)
        {
            if (this.Listening)
            {
                this.List.localPosition        = new Vector3(Mathf.Lerp(this.List.localPosition.x, -955f, t), this.List.localPosition.y, this.List.localPosition.z);
                this.TimeBar.localPosition     = new Vector3(this.TimeBar.localPosition.x, Mathf.Lerp(this.TimeBar.localPosition.y, 0f, t), this.TimeBar.localPosition.z);
                this.TapePlayerCamera.position = new Vector3(Mathf.Lerp(this.TapePlayerCamera.position.x, -26.15f, t), this.TapePlayerCamera.position.y, Mathf.Lerp(this.TapePlayerCamera.position.z, 5.35f, t));
                if (this.Phase == 1)
                {
                    this.TapePlayer.GetComponent <Animation>()["InsertTape"].time += 0.0555555f;
                    if (this.TapePlayer.GetComponent <Animation>()["InsertTape"].time >= this.TapePlayer.GetComponent <Animation>()["InsertTape"].length)
                    {
                        this.TapePlayer.GetComponent <Animation>().Play("PressPlay");
                        component.Play();
                        this.PromptBar.Label[0].text = "PAUSE";
                        this.PromptBar.Label[1].text = "STOP";
                        this.PromptBar.Label[5].text = "REWIND / FAST FORWARD";
                        this.PromptBar.UpdateButtons();
                        this.Phase++;
                    }
                }
                else if (this.Phase == 2)
                {
                    this.Timer += 0.0166666675f;
                    if (component.isPlaying)
                    {
                        if ((double)this.Timer > 0.1)
                        {
                            this.TapePlayer.GetComponent <Animation>()["PressPlay"].time += 0.0166666675f;
                            if (this.TapePlayer.GetComponent <Animation>()["PressPlay"].time > this.TapePlayer.GetComponent <Animation>()["PressPlay"].length)
                            {
                                this.TapePlayer.GetComponent <Animation>()["PressPlay"].time = this.TapePlayer.GetComponent <Animation>()["PressPlay"].length;
                            }
                        }
                    }
                    else
                    {
                        this.TapePlayer.GetComponent <Animation>()["PressPlay"].time -= 0.0166666675f;
                        if (this.TapePlayer.GetComponent <Animation>()["PressPlay"].time < 0f)
                        {
                            this.TapePlayer.GetComponent <Animation>()["PressPlay"].time = 0f;
                        }
                        if (Input.GetButtonDown("A"))
                        {
                            this.PromptBar.Label[0].text = "PAUSE";
                            this.TapePlayer.Spin         = true;
                            component.time = this.ResumeTime;
                            component.Play();
                        }
                    }
                    if (this.TapePlayer.GetComponent <Animation>()["PressPlay"].time >= this.TapePlayer.GetComponent <Animation>()["PressPlay"].length)
                    {
                        this.TapePlayer.Spin = true;
                        if (component.time >= component.clip.length - 1f)
                        {
                            this.TapePlayer.GetComponent <Animation>().Play("PressEject");
                            this.TapePlayer.Spin = false;
                            if (!component.isPlaying)
                            {
                                component.clip = this.TapeStop;
                                component.Play();
                            }
                            this.Subtitle.text = string.Empty;
                            this.Phase++;
                        }
                        if (Input.GetButtonDown("A") && component.isPlaying)
                        {
                            this.PromptBar.Label[0].text = "PLAY";
                            this.TapePlayer.Spin         = false;
                            this.ResumeTime = component.time;
                            component.Stop();
                        }
                    }
                    if (Input.GetButtonDown("B"))
                    {
                        this.TapePlayer.GetComponent <Animation>().Play("PressEject");
                        component.clip       = this.TapeStop;
                        this.TapePlayer.Spin = false;
                        component.Play();
                        this.PromptBar.Label[0].text = string.Empty;
                        this.PromptBar.Label[1].text = string.Empty;
                        this.PromptBar.Label[5].text = string.Empty;
                        this.PromptBar.UpdateButtons();
                        this.Subtitle.text = string.Empty;
                        this.Phase++;
                    }
                }
                else if (this.Phase == 3)
                {
                    this.TapePlayer.GetComponent <Animation>()["PressEject"].time += 0.0166666675f;
                    if (this.TapePlayer.GetComponent <Animation>()["PressEject"].time >= this.TapePlayer.GetComponent <Animation>()["PressEject"].length)
                    {
                        this.TapePlayer.GetComponent <Animation>().Play("InsertTape");
                        this.TapePlayer.GetComponent <Animation>()["InsertTape"].time = this.TapePlayer.GetComponent <Animation>()["InsertTape"].length;
                        this.TapePlayer.FastForward = false;
                        this.Phase++;
                    }
                }
                else if (this.Phase == 4)
                {
                    this.TapePlayer.GetComponent <Animation>()["InsertTape"].time -= 0.0555555f;
                    if (this.TapePlayer.GetComponent <Animation>()["InsertTape"].time <= 0f)
                    {
                        this.TapePlayer.Tape.SetActive(false);
                        this.Jukebox.SetActive(true);
                        this.Listening = false;
                        this.Timer     = 0f;
                        this.PromptBar.Label[0].text = "PLAY";
                        this.PromptBar.Label[1].text = "BACK";
                        this.PromptBar.Label[4].text = "CHOOSE";
                        this.PromptBar.Label[5].text = "CATEGORY";
                        this.PromptBar.UpdateButtons();
                    }
                }
                if (this.Phase != 2)
                {
                    this.Label.text     = "00:00 / 00:00";
                    this.Bar.fillAmount = 0f;
                    return;
                }
                if (this.InputManager.DPadRight || Input.GetKey(KeyCode.RightArrow))
                {
                    this.ResumeTime            += 1.66666663f;
                    component.time             += 1.66666663f;
                    this.TapePlayer.FastForward = true;
                }
                else
                {
                    this.TapePlayer.FastForward = false;
                }
                if (this.InputManager.DPadLeft || Input.GetKey(KeyCode.LeftArrow))
                {
                    this.ResumeTime       -= 1.66666663f;
                    component.time        -= 1.66666663f;
                    this.TapePlayer.Rewind = true;
                }
                else
                {
                    this.TapePlayer.Rewind = false;
                }
                int num;
                int num2;
                if (component.isPlaying)
                {
                    num  = Mathf.FloorToInt(component.time / 60f);
                    num2 = Mathf.FloorToInt(component.time - (float)num * 60f);
                    this.Bar.fillAmount = component.time / component.clip.length;
                }
                else
                {
                    num  = Mathf.FloorToInt(this.ResumeTime / 60f);
                    num2 = Mathf.FloorToInt(this.ResumeTime - (float)num * 60f);
                    this.Bar.fillAmount = this.ResumeTime / component.clip.length;
                }
                this.CurrentTime = string.Format("{00:00}:{1:00}", num, num2);
                this.Label.text  = this.CurrentTime + " / " + this.ClipLength;
                if (this.Category == 1)
                {
                    if (this.Selected == 1)
                    {
                        for (int i = 0; i < this.Cues1.Length; i++)
                        {
                            if (component.time > this.Cues1[i])
                            {
                                this.Subtitle.text = this.Subs1[i];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 2)
                    {
                        for (int j = 0; j < this.Cues2.Length; j++)
                        {
                            if (component.time > this.Cues2[j])
                            {
                                this.Subtitle.text = this.Subs2[j];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 3)
                    {
                        for (int k = 0; k < this.Cues3.Length; k++)
                        {
                            if (component.time > this.Cues3[k])
                            {
                                this.Subtitle.text = this.Subs3[k];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 4)
                    {
                        for (int l = 0; l < this.Cues4.Length; l++)
                        {
                            if (component.time > this.Cues4[l])
                            {
                                this.Subtitle.text = this.Subs4[l];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 5)
                    {
                        for (int m = 0; m < this.Cues5.Length; m++)
                        {
                            if (component.time > this.Cues5[m])
                            {
                                this.Subtitle.text = this.Subs5[m];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 6)
                    {
                        for (int n = 0; n < this.Cues6.Length; n++)
                        {
                            if (component.time > this.Cues6[n])
                            {
                                this.Subtitle.text = this.Subs6[n];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 7)
                    {
                        for (int num3 = 0; num3 < this.Cues7.Length; num3++)
                        {
                            if (component.time > this.Cues7[num3])
                            {
                                this.Subtitle.text = this.Subs7[num3];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 8)
                    {
                        for (int num4 = 0; num4 < this.Cues8.Length; num4++)
                        {
                            if (component.time > this.Cues8[num4])
                            {
                                this.Subtitle.text = this.Subs8[num4];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 9)
                    {
                        for (int num5 = 0; num5 < this.Cues9.Length; num5++)
                        {
                            if (component.time > this.Cues9[num5])
                            {
                                this.Subtitle.text = this.Subs9[num5];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 10)
                    {
                        for (int num6 = 0; num6 < this.Cues10.Length; num6++)
                        {
                            if (component.time > this.Cues10[num6])
                            {
                                this.Subtitle.text = this.Subs10[num6];
                            }
                        }
                        return;
                    }
                }
                else if (this.Category == 2)
                {
                    if (this.Selected == 1)
                    {
                        for (int num7 = 0; num7 < this.BasementCues1.Length; num7++)
                        {
                            if (component.time > this.BasementCues1[num7])
                            {
                                this.Subtitle.text = this.BasementSubs1[num7];
                            }
                        }
                    }
                    if (this.Selected == 10)
                    {
                        for (int num8 = 0; num8 < this.BasementCues10.Length; num8++)
                        {
                            if (component.time > this.BasementCues10[num8])
                            {
                                this.Subtitle.text = this.BasementSubs10[num8];
                            }
                        }
                        return;
                    }
                }
                else if (this.Category == 3)
                {
                    if (this.Selected == 1)
                    {
                        for (int num9 = 0; num9 < this.HeadmasterCues1.Length; num9++)
                        {
                            if (component.time > this.HeadmasterCues1[num9])
                            {
                                this.Subtitle.text = this.HeadmasterSubs1[num9];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 2)
                    {
                        for (int num10 = 0; num10 < this.HeadmasterCues2.Length; num10++)
                        {
                            if (component.time > this.HeadmasterCues2[num10])
                            {
                                this.Subtitle.text = this.HeadmasterSubs2[num10];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 6)
                    {
                        for (int num11 = 0; num11 < this.HeadmasterCues6.Length; num11++)
                        {
                            if (component.time > this.HeadmasterCues6[num11])
                            {
                                this.Subtitle.text = this.HeadmasterSubs6[num11];
                            }
                        }
                        return;
                    }
                    if (this.Selected == 10)
                    {
                        for (int num12 = 0; num12 < this.HeadmasterCues10.Length; num12++)
                        {
                            if (component.time > this.HeadmasterCues10[num12])
                            {
                                this.Subtitle.text = this.HeadmasterSubs10[num12];
                            }
                        }
                        return;
                    }
                }
            }
            else
            {
                this.TapePlayerCamera.position    = new Vector3(Mathf.Lerp(this.TapePlayerCamera.position.x, -26.2125f, t), this.TapePlayerCamera.position.y, Mathf.Lerp(this.TapePlayerCamera.position.z, 5.4125f, t));
                this.List.transform.localPosition = new Vector3(Mathf.Lerp(this.List.transform.localPosition.x, 0f, t), this.List.transform.localPosition.y, this.List.transform.localPosition.z);
                this.TimeBar.localPosition        = new Vector3(this.TimeBar.localPosition.x, Mathf.Lerp(this.TimeBar.localPosition.y, 100f, t), this.TimeBar.localPosition.z);
                if (this.InputManager.TappedRight)
                {
                    this.Category++;
                    if (this.Category > 3)
                    {
                        this.Category = 1;
                    }
                    this.UpdateLabels();
                }
                else if (this.InputManager.TappedLeft)
                {
                    this.Category--;
                    if (this.Category < 1)
                    {
                        this.Category = 3;
                    }
                    this.UpdateLabels();
                }
                if (this.InputManager.TappedUp)
                {
                    this.Selected--;
                    if (this.Selected < 1)
                    {
                        this.Selected = 10;
                    }
                    this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 440f - 80f * (float)this.Selected, this.Highlight.localPosition.z);
                    this.CheckSelection();
                    return;
                }
                if (this.InputManager.TappedDown)
                {
                    this.Selected++;
                    if (this.Selected > 10)
                    {
                        this.Selected = 1;
                    }
                    this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 440f - 80f * (float)this.Selected, this.Highlight.localPosition.z);
                    this.CheckSelection();
                    return;
                }
                if (Input.GetButtonDown("A"))
                {
                    bool flag = false;
                    if (this.Category == 1)
                    {
                        if (CollectibleGlobals.GetTapeCollected(this.Selected))
                        {
                            CollectibleGlobals.SetTapeListened(this.Selected, true);
                            flag = true;
                        }
                    }
                    else if (this.Category == 2)
                    {
                        if (CollectibleGlobals.GetBasementTapeCollected(this.Selected))
                        {
                            CollectibleGlobals.SetBasementTapeListened(this.Selected, true);
                            flag = true;
                        }
                    }
                    else if (this.Category == 3 && CollectibleGlobals.GetHeadmasterTapeCollected(this.Selected))
                    {
                        CollectibleGlobals.SetHeadmasterTapeListened(this.Selected, true);
                        flag = true;
                    }
                    if (flag)
                    {
                        this.NewIcons[this.Selected].SetActive(false);
                        this.Jukebox.SetActive(false);
                        this.Listening = true;
                        this.Phase     = 1;
                        this.PromptBar.Label[0].text = string.Empty;
                        this.PromptBar.Label[1].text = string.Empty;
                        this.PromptBar.Label[4].text = string.Empty;
                        this.PromptBar.UpdateButtons();
                        this.TapePlayer.GetComponent <Animation>().Play("InsertTape");
                        this.TapePlayer.Tape.SetActive(true);
                        if (this.Category == 1)
                        {
                            component.clip = this.Recordings[this.Selected];
                        }
                        else if (this.Category == 2)
                        {
                            component.clip = this.BasementRecordings[this.Selected];
                        }
                        else
                        {
                            component.clip = this.HeadmasterRecordings[this.Selected];
                        }
                        component.time   = 0f;
                        this.RoundedTime = (float)Mathf.CeilToInt(component.clip.length);
                        int num13 = (int)(this.RoundedTime / 60f);
                        int num14 = (int)(this.RoundedTime % 60f);
                        this.ClipLength = string.Format("{0:00}:{1:00}", num13, num14);
                        return;
                    }
                }
                else if (Input.GetButtonDown("B"))
                {
                    this.TapePlayer.Yandere.HeartCamera.enabled = true;
                    this.TapePlayer.Yandere.RPGCamera.enabled   = true;
                    this.TapePlayer.TapePlayerCamera.enabled    = false;
                    this.TapePlayer.NoteWindow.SetActive(true);
                    this.TapePlayer.PromptBar.ClearButtons();
                    this.TapePlayer.Yandere.CanMove   = true;
                    this.TapePlayer.PromptBar.Show    = false;
                    this.TapePlayer.Prompt.enabled    = true;
                    this.TapePlayer.Yandere.HUD.alpha = 1f;
                    Time.timeScale = 1f;
                    this.Show      = false;
                }
            }
            return;
        }
        if (this.List.localPosition.x > -955f)
        {
            this.List.localPosition    = new Vector3(Mathf.Lerp(this.List.localPosition.x, -956f, t), this.List.localPosition.y, this.List.localPosition.z);
            this.TimeBar.localPosition = new Vector3(this.TimeBar.localPosition.x, Mathf.Lerp(this.TimeBar.localPosition.y, 100f, t), this.TimeBar.localPosition.z);
            return;
        }
        this.TimeBar.gameObject.SetActive(false);
        this.List.gameObject.SetActive(false);
    }
Exemplo n.º 21
0
    public void UpdateIcons()
    {
        for (int i = 1; i < 11; i++)
        {
            this.Icons[i].spriteName = "";
            this.Icons[i].gameObject.SetActive(false);
            this.ProductsLabel[i].color = new Color(1f, 1f, 1f, 1f);
        }
        for (int i = 1; i < 11; i++)
        {
            if (this.AdultProducts[i])
            {
                this.Icons[i].spriteName = "18+";
            }
        }
        ShopType currentStore = this.CurrentStore;

        if (currentStore != ShopType.Manga)
        {
            if (currentStore != ShopType.Gift)
            {
                if (currentStore == ShopType.Lingerie)
                {
                    for (int i = 1; i < 11; i++)
                    {
                        if (CollectibleGlobals.GetPantyPurchased(i))
                        {
                            this.Icons[i].spriteName = "Yes";
                            this.PricesLabel[i].text = "Owned";
                        }
                    }
                }
            }
            else
            {
                for (int i = 1; i < 11; i++)
                {
                    if (CollectibleGlobals.GetGiftPurchased(i))
                    {
                        this.Icons[i].spriteName = "Yes";
                        this.PricesLabel[i].text = "Owned";
                    }
                }
            }
        }
        else
        {
            if (CollectibleGlobals.GetMangaCollected(1))
            {
                this.Icons[6].spriteName = "Yes";
                this.PricesLabel[6].text = "Owned";
            }
            if (CollectibleGlobals.GetMangaCollected(2))
            {
                this.Icons[7].spriteName = "Yes";
                this.PricesLabel[7].text = "Owned";
            }
            if (CollectibleGlobals.GetMangaCollected(3))
            {
                this.Icons[8].spriteName = "Yes";
                this.PricesLabel[8].text = "Owned";
            }
            if (CollectibleGlobals.GetMangaCollected(4))
            {
                this.Icons[9].spriteName = "Yes";
                this.PricesLabel[9].text = "Owned";
            }
            if (CollectibleGlobals.GetMangaCollected(5))
            {
                this.Icons[10].spriteName = "Yes";
                this.PricesLabel[10].text = "Owned";
            }
            if (CollectibleGlobals.GetMangaCollected(6))
            {
                this.Icons[1].spriteName = "Yes";
                this.PricesLabel[1].text = "Owned";
            }
            if (CollectibleGlobals.GetMangaCollected(7))
            {
                this.Icons[2].spriteName = "Yes";
                this.PricesLabel[2].text = "Owned";
            }
            if (CollectibleGlobals.GetMangaCollected(8))
            {
                this.Icons[3].spriteName = "Yes";
                this.PricesLabel[3].text = "Owned";
            }
            if (CollectibleGlobals.GetMangaCollected(9))
            {
                this.Icons[4].spriteName = "Yes";
                this.PricesLabel[4].text = "Owned";
            }
            if (CollectibleGlobals.GetMangaCollected(10))
            {
                this.Icons[5].spriteName = "Yes";
                this.PricesLabel[5].text = "Owned";
            }
        }
        for (int i = 1; i < 11; i++)
        {
            if (this.Icons[i].spriteName != "")
            {
                this.Icons[i].gameObject.SetActive(true);
                if (this.Icons[i].spriteName == "Yes")
                {
                    this.ProductsLabel[i].color = new Color(1f, 1f, 1f, 0.5f);
                }
            }
        }
    }
Exemplo n.º 22
0
    public void CheckStore()
    {
        if (this.AdultProducts[this.Selected] && !PlayerGlobals.FakeID)
        {
            this.SpeechBubbleLabel.text        = this.ShopkeeperSpeeches[3];
            this.SpeechBubbleParent.localScale = new Vector3(0f, 0f, 0f);
            this.SpeechPhase = 0;
            this.Timer       = 1f;
            return;
        }
        if (PlayerGlobals.Money < this.Costs[this.Selected])
        {
            this.StreetManager.Clock.MoneyFail();
            this.SpeechBubbleLabel.text        = this.ShopkeeperSpeeches[4];
            this.SpeechBubbleParent.localScale = new Vector3(0f, 0f, 0f);
            this.SpeechPhase = 0;
            this.Timer       = 1f;
            return;
        }
        ShopType currentStore = this.CurrentStore;

        switch (currentStore)
        {
        case ShopType.Nonfunctional:
            this.SpeechBubbleLabel.text        = this.ShopkeeperSpeeches[6];
            this.SpeechBubbleParent.localScale = new Vector3(0f, 0f, 0f);
            this.SpeechPhase = 0;
            this.Timer       = 1f;
            return;

        case ShopType.Hardware:
        case ShopType.Maid:
            break;

        case ShopType.Manga:
            this.PurchaseEffect();
            switch (this.Selected)
            {
            case 1:
                CollectibleGlobals.SetMangaCollected(6, true);
                return;

            case 2:
                CollectibleGlobals.SetMangaCollected(7, true);
                return;

            case 3:
                CollectibleGlobals.SetMangaCollected(8, true);
                return;

            case 4:
                CollectibleGlobals.SetMangaCollected(9, true);
                return;

            case 5:
                CollectibleGlobals.SetMangaCollected(10, true);
                return;

            case 6:
                CollectibleGlobals.SetMangaCollected(1, true);
                return;

            case 7:
                CollectibleGlobals.SetMangaCollected(2, true);
                return;

            case 8:
                CollectibleGlobals.SetMangaCollected(3, true);
                return;

            case 9:
                CollectibleGlobals.SetMangaCollected(4, true);
                return;

            case 10:
                CollectibleGlobals.SetMangaCollected(5, true);
                return;

            default:
                return;
            }
            break;

        case ShopType.Salon:
            this.SpeechBubbleLabel.text        = this.ShopkeeperSpeeches[6];
            this.SpeechBubbleParent.localScale = new Vector3(0f, 0f, 0f);
            this.SpeechPhase = 0;
            this.Timer       = 1f;
            break;

        case ShopType.Gift:
            this.PurchaseEffect();
            if (this.Selected < 6)
            {
                CollectibleGlobals.SenpaiGifts++;
            }
            else
            {
                CollectibleGlobals.MatchmakingGifts++;
            }
            CollectibleGlobals.SetGiftPurchased(this.Selected, true);
            return;

        default:
            if (currentStore != ShopType.Lingerie)
            {
                return;
            }
            this.PurchaseEffect();
            CollectibleGlobals.SetPantyPurchased(this.Selected, true);
            return;
        }
    }
 private void Update()
 {
     if (!this.MissionMode && !this.NoDebug)
     {
         if (!this.Yandere.InClass && !this.Yandere.Chased && this.Yandere.Chasers == 0 && this.Yandere.CanMove)
         {
             if (Input.GetKeyDown(KeyCode.Backslash) && this.Yandere.transform.position.y < 100f)
             {
                 this.EasterEggWindow.SetActive(false);
                 this.Window.SetActive(!this.Window.activeInHierarchy);
             }
         }
         else if (this.Window.activeInHierarchy)
         {
             this.Window.SetActive(false);
         }
         if (this.Window.activeInHierarchy)
         {
             if (Input.GetKeyDown(KeyCode.F1))
             {
                 StudentGlobals.FemaleUniform = 1;
                 StudentGlobals.MaleUniform   = 1;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F2))
             {
                 StudentGlobals.FemaleUniform = 2;
                 StudentGlobals.MaleUniform   = 2;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F3))
             {
                 StudentGlobals.FemaleUniform = 3;
                 StudentGlobals.MaleUniform   = 3;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F4))
             {
                 StudentGlobals.FemaleUniform = 4;
                 StudentGlobals.MaleUniform   = 4;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F5))
             {
                 StudentGlobals.FemaleUniform = 5;
                 StudentGlobals.MaleUniform   = 5;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F6))
             {
                 StudentGlobals.FemaleUniform = 6;
                 StudentGlobals.MaleUniform   = 6;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F7))
             {
                 this.ID = 1;
                 while (this.ID < 8)
                 {
                     this.StudentManager.DrinkingFountains[this.ID].PowerSwitch.PowerOutlet.SabotagedOutlet.SetActive(true);
                     this.StudentManager.DrinkingFountains[this.ID].Puddle.SetActive(true);
                     this.ID++;
                 }
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F8))
             {
                 GameGlobals.CensorBlood = !GameGlobals.CensorBlood;
                 this.WeaponManager.ChangeBloodTexture();
                 this.Yandere.Bloodiness += 0f;
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F9))
             {
                 this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor;
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F10))
             {
                 this.StudentManager.Students[21].Attempts = 101;
                 this.StudentManager.Students[22].Attempts = 101;
                 this.StudentManager.Students[23].Attempts = 101;
                 this.StudentManager.Students[24].Attempts = 101;
                 this.StudentManager.Students[25].Attempts = 101;
                 this.Window.SetActive(false);
             }
             else if (!Input.GetKeyDown(KeyCode.F12))
             {
                 if (Input.GetKeyDown(KeyCode.Alpha1))
                 {
                     DateGlobals.Weekday = DayOfWeek.Monday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha2))
                 {
                     DateGlobals.Weekday = DayOfWeek.Tuesday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha3))
                 {
                     DateGlobals.Weekday = DayOfWeek.Wednesday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha4))
                 {
                     DateGlobals.Weekday = DayOfWeek.Thursday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha5))
                 {
                     DateGlobals.Weekday = DayOfWeek.Friday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha6))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[1].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha7))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[2].position + new Vector3(0.75f, 0f, 0f);
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha8))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[3].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha9))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[4].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Clock.PresentTime = 426f;
                     StudentScript studentScript = this.StudentManager.Students[30];
                     if (studentScript != null)
                     {
                         if (studentScript.Phase < 2)
                         {
                             studentScript.ShoeRemoval.Start();
                             studentScript.ShoeRemoval.PutOnShoes();
                             studentScript.CanTalk            = true;
                             studentScript.Phase              = 2;
                             studentScript.CurrentDestination = studentScript.Destinations[2];
                             studentScript.Pathfinding.target = studentScript.Destinations[2];
                         }
                         studentScript.transform.position = studentScript.Destinations[2].position;
                     }
                     StudentScript studentScript2 = this.StudentManager.Students[28];
                     if (studentScript2 != null)
                     {
                         studentScript2.ShoeRemoval.Start();
                         studentScript2.ShoeRemoval.PutOnShoes();
                         studentScript2.Phase = 2;
                         studentScript2.CurrentDestination = studentScript2.Destinations[2];
                         studentScript2.Pathfinding.target = studentScript2.Destinations[2];
                         studentScript2.transform.position = studentScript2.Destinations[2].position;
                     }
                     StudentScript studentScript3 = this.StudentManager.Students[39];
                     if (studentScript3 != null)
                     {
                         studentScript3.ShoeRemoval.Start();
                         studentScript3.ShoeRemoval.PutOnShoes();
                         studentScript3.Phase = 2;
                         studentScript3.ScheduleBlocks[2].action = "Stand";
                         studentScript3.GetDestinations();
                         studentScript3.CurrentDestination = this.MidoriSpot;
                         studentScript3.Pathfinding.target = this.MidoriSpot;
                         studentScript3.transform.position = this.MidoriSpot.position;
                     }
                     this.Window.SetActive(false);
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha0))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[11].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Window.SetActive(false);
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.A))
                 {
                     if (SchoolAtmosphere.Type == SchoolAtmosphereType.High)
                     {
                         SchoolGlobals.SchoolAtmosphere = 0.5f;
                     }
                     else if (SchoolAtmosphere.Type == SchoolAtmosphereType.Medium)
                     {
                         SchoolGlobals.SchoolAtmosphere = 0f;
                     }
                     else
                     {
                         SchoolGlobals.SchoolAtmosphere = 1f;
                     }
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.C))
                 {
                     this.ID = 1;
                     while (this.ID < 11)
                     {
                         CollectibleGlobals.SetTapeCollected(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.D))
                 {
                     this.ID = 0;
                     while (this.ID < 5)
                     {
                         StudentScript studentScript4 = this.StudentManager.Students[76 + this.ID];
                         if (studentScript4 != null)
                         {
                             if (studentScript4.Phase < 2)
                             {
                                 studentScript4.ShoeRemoval.Start();
                                 studentScript4.ShoeRemoval.PutOnShoes();
                                 studentScript4.Phase = 2;
                                 studentScript4.CurrentDestination = studentScript4.Destinations[2];
                                 studentScript4.Pathfinding.target = studentScript4.Destinations[2];
                             }
                             studentScript4.transform.position = studentScript4.Destinations[2].position;
                         }
                         this.ID++;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.F))
                 {
                     this.GreenScreen.SetActive(true);
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.G))
                 {
                     StudentScript studentScript5 = this.StudentManager.Students[this.RooftopStudent];
                     if (this.Clock.HourTime < 15f)
                     {
                         PlayerGlobals.SetStudentFriend(this.RooftopStudent, true);
                         this.Yandere.transform.position = this.RooftopSpot.position + new Vector3(1f, 0f, 0f);
                         this.WeaponManager.Weapons[6].transform.position = this.Yandere.transform.position + new Vector3(0f, 0f, 1.915f);
                         if (studentScript5 != null)
                         {
                             this.StudentManager.OfferHelp.UpdateLocation();
                             this.StudentManager.OfferHelp.enabled = true;
                             if (!studentScript5.Indoors)
                             {
                                 if (studentScript5.ShoeRemoval.Locker == null)
                                 {
                                     studentScript5.ShoeRemoval.Start();
                                 }
                                 studentScript5.ShoeRemoval.PutOnShoes();
                             }
                             studentScript5.CharacterAnimation.Play(studentScript5.IdleAnim);
                             studentScript5.transform.position    = this.RooftopSpot.position;
                             studentScript5.transform.rotation    = this.RooftopSpot.rotation;
                             studentScript5.Prompt.Label[0].text  = "     Push";
                             studentScript5.CurrentDestination    = this.RooftopSpot;
                             studentScript5.Pathfinding.target    = this.RooftopSpot;
                             studentScript5.Pathfinding.canSearch = false;
                             studentScript5.Pathfinding.canMove   = false;
                             studentScript5.SpeechLines.Stop();
                             studentScript5.Pushable = true;
                             studentScript5.Routine  = false;
                             studentScript5.Meeting  = true;
                             studentScript5.MeetTime = 0f;
                         }
                         if (this.Clock.HourTime < 7.1f)
                         {
                             this.Clock.PresentTime = 426f;
                         }
                     }
                     else
                     {
                         this.Clock.PresentTime            = 960f;
                         studentScript5.transform.position = this.Lockers.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.K))
                 {
                     SchoolGlobals.KidnapVictim  = 25;
                     StudentGlobals.StudentSlave = 25;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.L))
                 {
                     SchemeGlobals.SetSchemeStage(1, 2);
                     EventGlobals.Event1 = true;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.M))
                 {
                     PlayerGlobals.Money          = 100f;
                     this.Yandere.Inventory.Money = 100f;
                     this.Yandere.Inventory.UpdateMoney();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.O))
                 {
                     this.Yandere.Inventory.RivalPhone = true;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.P))
                 {
                     this.ID = 2;
                     while (this.ID < 93)
                     {
                         StudentScript studentScript6 = this.StudentManager.Students[this.ID];
                         if (studentScript6 != null)
                         {
                             studentScript6.Patience = 999;
                             studentScript6.Pestered = -999;
                             studentScript6.Ignoring = false;
                         }
                         this.ID++;
                     }
                     this.Yandere.Inventory.PantyShots += 20;
                     PlayerGlobals.PantyShots          += 20;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Q))
                 {
                     this.Censor();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.R))
                 {
                     if (PlayerGlobals.Reputation == -100f)
                     {
                         PlayerGlobals.Reputation = -66.66666f;
                     }
                     else if (PlayerGlobals.Reputation == -66.66666f)
                     {
                         PlayerGlobals.Reputation = 0f;
                     }
                     else if (PlayerGlobals.Reputation == 0f)
                     {
                         PlayerGlobals.Reputation = 66.66666f;
                     }
                     else if (PlayerGlobals.Reputation == 66.66666f)
                     {
                         PlayerGlobals.Reputation = 100f;
                     }
                     else if (PlayerGlobals.Reputation == 100f)
                     {
                         PlayerGlobals.Reputation = -100f;
                     }
                     this.Reputation.Reputation = PlayerGlobals.Reputation;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.S))
                 {
                     this.Yandere.Class.PhysicalGrade = 5;
                     this.Yandere.Class.Seduction     = 5;
                     this.StudentManager.Police.UpdateCorpses();
                     this.ID = 1;
                     while (this.ID < 101)
                     {
                         StudentGlobals.SetStudentPhotographed(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.T))
                 {
                     this.Zoom.OverShoulder = !this.Zoom.OverShoulder;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.U))
                 {
                     PlayerGlobals.SetStudentFriend(28, true);
                     PlayerGlobals.SetStudentFriend(30, true);
                     this.ID = 1;
                     while (this.ID < 26)
                     {
                         ConversationGlobals.SetTopicLearnedByStudent(this.ID, 30, true);
                         ConversationGlobals.SetTopicDiscovered(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Z))
                 {
                     this.Yandere.Police.Invalid = true;
                     if (Input.GetKey(KeyCode.LeftShift))
                     {
                         this.ID = 2;
                         while (this.ID < 93)
                         {
                             this.StudentManager.Students[this.ID] != null;
                             this.ID++;
                         }
                     }
                     else
                     {
                         this.ID = 2;
                         while (this.ID < 101)
                         {
                             StudentScript studentScript7 = this.StudentManager.Students[this.ID];
                             if (studentScript7 != null)
                             {
                                 studentScript7.SpawnAlarmDisc();
                                 studentScript7.BecomeRagdoll();
                                 studentScript7.DeathType = DeathType.EasterEgg;
                             }
                             this.ID++;
                         }
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.X))
                 {
                     TaskGlobals.SetTaskStatus(36, 3);
                     SchoolGlobals.ReactedToGameLeader = false;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Backspace))
                 {
                     Time.timeScale         = 1f;
                     this.Clock.PresentTime = 1079f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.BackQuote))
                 {
                     Globals.DeleteAll();
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Space))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[5].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     for (int i = 46; i < 51; i++)
                     {
                         if (this.StudentManager.Students[i] != null)
                         {
                             this.StudentManager.Students[i].transform.position = this.TeleportSpot[5].position;
                             if (!this.StudentManager.Students[i].Indoors)
                             {
                                 if (this.StudentManager.Students[i].ShoeRemoval.Locker == null)
                                 {
                                     this.StudentManager.Students[i].ShoeRemoval.Start();
                                 }
                                 this.StudentManager.Students[i].ShoeRemoval.PutOnShoes();
                             }
                         }
                     }
                     this.Clock.PresentTime = 1015f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     this.Window.SetActive(false);
                     this.OsanaEvent1.enabled = false;
                     this.OsanaEvent2.enabled = false;
                     this.OsanaEvent3.enabled = false;
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.LeftAlt))
                 {
                     this.Turtle.SpawnWeapons();
                     this.Yandere.transform.position = this.TeleportSpot[6].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Clock.PresentTime = 425f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.LeftControl))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[7].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.RightControl))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[8].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Equals))
                 {
                     this.Clock.PresentTime += 10f;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Return))
                 {
                     this.Yandere.transform.eulerAngles = this.TeleportSpot[10].eulerAngles;
                     this.Yandere.transform.position    = this.TeleportSpot[10].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.StudentManager.Students[1].ShoeRemoval.Start();
                     this.StudentManager.Students[1].ShoeRemoval.PutOnShoes();
                     this.StudentManager.Students[1].transform.position = new Vector3(0f, 12.1f, -25f);
                     this.StudentManager.Students[1].Alarmed            = true;
                     this.StudentManager.Students[11].Lethal            = true;
                     this.StudentManager.Students[11].ShoeRemoval.Start();
                     this.StudentManager.Students[11].ShoeRemoval.PutOnShoes();
                     this.StudentManager.Students[11].transform.position = new Vector3(0f, 12.1f, -25f);
                     this.Clock.PresentTime = 780f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.B))
                 {
                     this.Yandere.Inventory.Headset = true;
                     this.StudentManager.LoveManager.SuitorProgress = 1;
                     DatingGlobals.SuitorProgress = 1;
                     PlayerGlobals.SetStudentFriend(6, true);
                     PlayerGlobals.SetStudentFriend(11, true);
                     for (int j = 0; j < 11; j++)
                     {
                         DatingGlobals.SetComplimentGiven(j, false);
                     }
                     this.ID = 1;
                     while (this.ID < 26)
                     {
                         ConversationGlobals.SetTopicLearnedByStudent(this.ID, 11, true);
                         ConversationGlobals.SetTopicDiscovered(this.ID, true);
                         this.ID++;
                     }
                     StudentScript studentScript8 = this.StudentManager.Students[11];
                     if (studentScript8 != null)
                     {
                         studentScript8.ShoeRemoval.Start();
                         studentScript8.ShoeRemoval.PutOnShoes();
                         studentScript8.CanTalk            = true;
                         studentScript8.Phase              = 2;
                         studentScript8.Pestered           = 0;
                         studentScript8.Patience           = 999;
                         studentScript8.Ignoring           = false;
                         studentScript8.CurrentDestination = studentScript8.Destinations[2];
                         studentScript8.Pathfinding.target = studentScript8.Destinations[2];
                         studentScript8.transform.position = studentScript8.Destinations[2].position;
                     }
                     StudentScript studentScript9 = this.StudentManager.Students[6];
                     if (studentScript9 != null)
                     {
                         studentScript9.ShoeRemoval.Start();
                         studentScript9.ShoeRemoval.PutOnShoes();
                         studentScript9.Phase              = 2;
                         studentScript9.Pestered           = 0;
                         studentScript9.Patience           = 999;
                         studentScript9.Ignoring           = false;
                         studentScript9.CurrentDestination = studentScript9.Destinations[2];
                         studentScript9.Pathfinding.target = studentScript9.Destinations[2];
                         studentScript9.transform.position = studentScript9.Destinations[2].position;
                     }
                     StudentScript studentScript10 = this.StudentManager.Students[10];
                     if (studentScript9 != null)
                     {
                         studentScript9.transform.position = studentScript8.transform.position;
                     }
                     CollectibleGlobals.SetGiftPurchased(6, true);
                     CollectibleGlobals.SetGiftPurchased(7, true);
                     CollectibleGlobals.SetGiftPurchased(8, true);
                     CollectibleGlobals.SetGiftPurchased(9, true);
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Pause))
                 {
                     this.Clock.StopTime = !this.Clock.StopTime;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.W))
                 {
                     this.StudentManager.ToggleBookBags();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.H))
                 {
                     StudentGlobals.FragileSlave  = 5;
                     StudentGlobals.FragileTarget = 31;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.I))
                 {
                     this.StudentManager.Students[3].BecomeRagdoll();
                     this.WeaponManager.Weapons[1].Blood.enabled = true;
                     this.WeaponManager.Weapons[1].FingerprintID = 2;
                     this.WeaponManager.Weapons[1].Victims[3]    = true;
                     this.StudentManager.Students[5].BecomeRagdoll();
                     this.WeaponManager.Weapons[2].Blood.enabled = true;
                     this.WeaponManager.Weapons[2].FingerprintID = 4;
                     this.WeaponManager.Weapons[2].Victims[5]    = true;
                 }
                 else if (!Input.GetKeyDown(KeyCode.J))
                 {
                     if (Input.GetKeyDown(KeyCode.V))
                     {
                         this.StudentManager.LoveManager.ConfessToSuitor = true;
                         this.StudentManager.DatingMinigame.Affection    = 100f;
                         DateGlobals.Weekday = DayOfWeek.Friday;
                         this.Window.SetActive(false);
                     }
                     else if (Input.GetKeyDown(KeyCode.N))
                     {
                         this.ElectrocutionKit[0].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[1].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[2].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[3].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[3].SetActive(true);
                     }
                 }
             }
             if (Input.GetKeyDown(KeyCode.Tab))
             {
                 DatingGlobals.SuitorProgress = 2;
                 SceneManager.LoadScene("LoadingScene");
             }
             if (Input.GetKeyDown(KeyCode.CapsLock))
             {
                 this.StudentManager.LoveManager.ConfessToSuitor = true;
             }
         }
         else
         {
             if (Input.GetKey(KeyCode.BackQuote))
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > 1f)
                 {
                     this.ID = 0;
                     while (this.ID < this.StudentManager.NPCsTotal)
                     {
                         if (StudentGlobals.GetStudentDying(this.ID))
                         {
                             StudentGlobals.SetStudentDying(this.ID, false);
                         }
                         this.ID++;
                     }
                     SceneManager.LoadScene("LoadingScene");
                 }
             }
             if (Input.GetKeyUp(KeyCode.BackQuote))
             {
                 this.Timer = 0f;
             }
         }
         if (this.TryNextFrame)
         {
             this.UpdateCensor();
         }
     }
     else
     {
         if (Input.GetKeyDown(KeyCode.Backslash))
         {
             this.MissionModeWindow.SetActive(!this.MissionModeWindow.activeInHierarchy);
             this.DebugInputs++;
         }
         if (this.MissionModeWindow.activeInHierarchy)
         {
             if (Input.GetKeyDown(KeyCode.Alpha1))
             {
                 this.Censor();
             }
             if (Input.GetKeyDown(KeyCode.Alpha2))
             {
                 GameGlobals.CensorBlood = !GameGlobals.CensorBlood;
                 this.WeaponManager.ChangeBloodTexture();
                 this.Yandere.Bloodiness += 0f;
             }
             if (Input.GetKeyDown(KeyCode.Alpha3))
             {
                 this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor;
             }
         }
     }
     if (this.WaitingForNumber)
     {
         if (Input.GetKey("1"))
         {
             Debug.Log("Going to class should trigger panty shot lecture.");
             SchemeGlobals.SetSchemeStage(1, 100);
             StudentGlobals.ExpelProgress          = 0;
             this.Counselor.CutsceneManager.Scheme = 1;
             this.Counselor.LectureID = 1;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("2"))
         {
             Debug.Log("Going to class should trigger theft lecture.");
             SchemeGlobals.SetSchemeStage(2, 100);
             StudentGlobals.ExpelProgress          = 1;
             this.Counselor.CutsceneManager.Scheme = 2;
             this.Counselor.LectureID = 2;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("3"))
         {
             Debug.Log("Going to class should trigger contraband lecture.");
             SchemeGlobals.SetSchemeStage(3, 100);
             StudentGlobals.ExpelProgress          = 2;
             this.Counselor.CutsceneManager.Scheme = 3;
             this.Counselor.LectureID = 3;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("4"))
         {
             Debug.Log("Going to class should trigger Vandalism lecture.");
             SchemeGlobals.SetSchemeStage(4, 100);
             StudentGlobals.ExpelProgress          = 3;
             this.Counselor.CutsceneManager.Scheme = 4;
             this.Counselor.LectureID = 4;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("5"))
         {
             Debug.Log("Going to class at lunchtime should get Osana expelled!");
             SchemeGlobals.SetSchemeStage(5, 100);
             StudentGlobals.ExpelProgress          = 4;
             this.Counselor.CutsceneManager.Scheme = 5;
             this.Counselor.LectureID = 5;
             this.WaitingForNumber    = false;
         }
     }
 }