// 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;
    }
Beispiel #2
0
 // Token: 0x060001B9 RID: 441 RVA: 0x00022FD0 File Offset: 0x000213D0
 private void UpdateList()
 {
     for (int i = 1; i < this.Labels.Length; i++)
     {
         UILabel uilabel = this.Labels[i];
         uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, 0.5f);
     }
     if (SchemeGlobals.GetSchemeStage(1) == 2)
     {
         UILabel uilabel2 = this.Labels[1];
         uilabel2.color = new Color(uilabel2.color.r, uilabel2.color.g, uilabel2.color.b, 1f);
     }
     if (SchemeGlobals.GetSchemeStage(2) == 3)
     {
         UILabel uilabel3 = this.Labels[2];
         uilabel3.color = new Color(uilabel3.color.r, uilabel3.color.g, uilabel3.color.b, 1f);
     }
     if (SchemeGlobals.GetSchemeStage(3) == 4)
     {
         UILabel uilabel4 = this.Labels[3];
         uilabel4.color = new Color(uilabel4.color.r, uilabel4.color.g, uilabel4.color.b, 1f);
     }
     if (SchemeGlobals.GetSchemeStage(4) == 5)
     {
         UILabel uilabel5 = this.Labels[4];
         uilabel5.color = new Color(uilabel5.color.r, uilabel5.color.g, uilabel5.color.b, 1f);
     }
     if (SchemeGlobals.GetSchemeStage(5) == 6)
     {
         UILabel uilabel6 = this.Labels[5];
         uilabel6.color = new Color(uilabel6.color.r, uilabel6.color.g, uilabel6.color.b, 1f);
     }
 }
Beispiel #3
0
 // Token: 0x060006F5 RID: 1781 RVA: 0x0006BC88 File Offset: 0x0006A088
 private void Update()
 {
     if (SchemeGlobals.GetSchemeStage(5) == 5 && DateGlobals.Weekday == DayOfWeek.Friday)
     {
         if (this.Clock.HourTime > 13f)
         {
             this.Prompt.HideButton[0] = false;
             if (this.Clock.HourTime > 13.5f)
             {
                 SchemeGlobals.SetSchemeStage(5, 100);
                 this.Schemes.UpdateInstructions();
                 this.Prompt.HideButton[0] = true;
             }
         }
         if (this.Prompt.Circle[0].fillAmount == 0f)
         {
             SchemeGlobals.SetSchemeStage(5, 6);
             this.Schemes.UpdateInstructions();
             this.Prompt.Yandere.Inventory.DuplicateSheet = false;
             this.Prompt.Hide();
             this.Prompt.enabled = false;
             this.Cheating       = true;
         }
     }
 }
Beispiel #4
0
 private void Start()
 {
     if (SchemeGlobals.GetSchemeStage(2) > 2)
     {
         UnityEngine.Object.Destroy(this);
     }
 }
 // Token: 0x0600076F RID: 1903 RVA: 0x00070154 File Offset: 0x0006E554
 public void UpdateInstructions()
 {
     this.Steps = this.SchemeSteps[SchemeGlobals.CurrentScheme].Split(new char[]
     {
         '\n'
     });
     if (SchemeGlobals.CurrentScheme > 0)
     {
         if (SchemeGlobals.GetSchemeStage(SchemeGlobals.CurrentScheme) < 100)
         {
             this.HUDIcon.SetActive(true);
             this.HUDInstructions.text = this.Steps[SchemeGlobals.GetSchemeStage(SchemeGlobals.CurrentScheme) - 1].ToString();
         }
         else
         {
             this.Arrow.gameObject.SetActive(false);
             this.HUDIcon.gameObject.SetActive(false);
             this.HUDInstructions.text   = string.Empty;
             SchemeGlobals.CurrentScheme = 0;
         }
     }
     else
     {
         this.HUDIcon.SetActive(false);
         this.HUDInstructions.text = string.Empty;
     }
 }
 // Token: 0x0600076C RID: 1900 RVA: 0x0006FDB0 File Offset: 0x0006E1B0
 public void UpdateSchemeList()
 {
     for (int i = 1; i < this.SchemeNames.Length; i++)
     {
         if (SchemeGlobals.GetSchemeStage(i) == 100)
         {
             UILabel uilabel = this.SchemeNameLabels[i];
             uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, 0.5f);
             this.Exclamations[i].enabled  = false;
             this.SchemeCostLabels[i].text = string.Empty;
         }
         else
         {
             this.SchemeCostLabels[i].text = (SchemeGlobals.GetSchemeUnlocked(i) ? string.Empty : this.SchemeCosts[i].ToString());
             if (SchemeGlobals.GetSchemeStage(i) > SchemeGlobals.GetSchemePreviousStage(i))
             {
                 SchemeGlobals.SetSchemePreviousStage(i, SchemeGlobals.GetSchemeStage(i));
                 this.Exclamations[i].enabled = true;
             }
             else
             {
                 this.Exclamations[i].enabled = false;
             }
         }
     }
 }
 public void GetReward()
 {
     if (this.ID == 1)
     {
         if (this.Phase == 1)
         {
             SchemeGlobals.SetSchemeStage(5, 5);
             this.Schemes.UpdateInstructions();
             this.Yandere.Inventory.AnswerSheet = true;
             this.Prompt.Hide();
             this.Prompt.enabled         = false;
             this.DoorGap.Prompt.enabled = true;
             this.Phase++;
             return;
         }
         if (this.Phase == 2)
         {
             SchemeGlobals.SetSchemeStage(5, 8);
             this.Schemes.UpdateInstructions();
             this.Prompt.Yandere.Inventory.AnswerSheet = false;
             this.Prompt.Hide();
             this.Prompt.enabled = false;
             base.gameObject.SetActive(false);
             this.Phase++;
         }
     }
 }
 // Token: 0x060006F3 RID: 1779 RVA: 0x0006BAF8 File Offset: 0x00069EF8
 private void Update()
 {
     if (this.Prompt.Yandere.Inventory.Cigs)
     {
         this.Prompt.HideButton[0] = false;
     }
     if (this.Prompt.Yandere.Inventory.Ring)
     {
         this.Prompt.HideButton[1] = false;
     }
     if (SchemeGlobals.GetSchemeStage(3) == 3)
     {
         this.Prompt.HideButton[0] = (this.Clock.Period == 2 || this.Clock.Period == 4);
         if (this.Prompt.Circle[0].fillAmount == 0f)
         {
             SchemeGlobals.SetSchemeStage(3, 4);
             this.Schemes.UpdateInstructions();
             this.Prompt.Yandere.Inventory.Cigs = false;
             this.Prompt.HideButton[0]          = true;
             base.enabled = false;
         }
     }
     if (SchemeGlobals.GetSchemeStage(2) == 2)
     {
         this.Prompt.HideButton[1] = (this.Clock.Period == 2 || this.Clock.Period == 4);
         if (this.Prompt.Circle[1].fillAmount == 0f)
         {
             SchemeGlobals.SetSchemeStage(2, 3);
             this.Schemes.UpdateInstructions();
             this.Prompt.Yandere.Inventory.Ring = false;
             this.Prompt.HideButton[1]          = true;
             base.enabled = false;
         }
     }
 }
Beispiel #9
0
 // Token: 0x060019DB RID: 6619 RVA: 0x000FC9C8 File Offset: 0x000FABC8
 private void Update()
 {
     if (this.Yandere.Armed)
     {
         if (this.Yandere.EquippedWeapon.WeaponID == 6)
         {
             this.Prompt.enabled = true;
             if (this.Prompt.Circle[0].fillAmount == 0f)
             {
                 if (SchemeGlobals.GetSchemeStage(4) == 2)
                 {
                     SchemeGlobals.SetSchemeStage(4, 3);
                     this.Yandere.PauseScreen.Schemes.UpdateInstructions();
                 }
                 if (this.Yandere.StudentManager.Students[11] != null && DateGlobals.Weekday == DayOfWeek.Thursday)
                 {
                     this.Yandere.StudentManager.Students[11].Hungry = true;
                     this.Yandere.StudentManager.Students[11].Fed    = false;
                 }
                 UnityEngine.Object.Instantiate <GameObject>(this.SabotageSparks, new Vector3(-2.5f, 5.3605f, -32.982f), Quaternion.identity);
                 this.VendingMachine.Sabotaged = true;
                 this.Prompt.enabled           = false;
                 this.Prompt.Hide();
                 base.enabled = false;
                 return;
             }
         }
     }
     else if (this.Prompt.enabled)
     {
         this.Prompt.enabled = false;
         this.Prompt.Hide();
     }
 }
 // Token: 0x06000A01 RID: 2561 RVA: 0x0004F990 File Offset: 0x0004DB90
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         if (this.Phase == 1)
         {
             SchemeGlobals.SetSchemeStage(5, 5);
             this.Schemes.UpdateInstructions();
             this.Prompt.Yandere.Inventory.AnswerSheet = true;
             this.Prompt.Hide();
             this.Prompt.enabled         = false;
             this.DoorGap.Prompt.enabled = true;
             this.MyMesh.mesh            = null;
             this.Phase++;
             return;
         }
         SchemeGlobals.SetSchemeStage(5, 8);
         this.Schemes.UpdateInstructions();
         this.Prompt.Yandere.Inventory.AnswerSheet = false;
         this.Prompt.Hide();
         this.Prompt.enabled = false;
         this.MyMesh.mesh    = this.OriginalMesh;
         this.Phase++;
     }
 }
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Prompt.Circle[0].fillAmount = 1f;
         this.Prompt.Yandere.StudentManager.CanAnyoneSeeYandere();
         if (!this.Prompt.Yandere.StudentManager.YandereVisible)
         {
             if (this.StudentID == this.Prompt.Yandere.StudentManager.RivalID && SchemeGlobals.GetSchemeStage(1) == 4)
             {
                 SchemeGlobals.SetSchemeStage(1, 5);
                 this.Prompt.Yandere.PauseScreen.Schemes.UpdateInstructions();
             }
             this.Prompt.Yandere.RivalPhoneTexture      = this.MyRenderer.material.mainTexture;
             this.Prompt.Yandere.Inventory.RivalPhone   = true;
             this.Prompt.Yandere.Inventory.RivalPhoneID = this.StudentID;
             this.Prompt.enabled = false;
             base.enabled        = false;
             this.StolenPhoneDropoff.Prompt.enabled       = true;
             this.StolenPhoneDropoff.Phase                = 1;
             this.StolenPhoneDropoff.Timer                = 0f;
             this.StolenPhoneDropoff.Prompt.Label[0].text = "     Provide Stolen Phone";
             base.gameObject.SetActive(false);
             this.Stolen = true;
             return;
         }
         this.Prompt.Yandere.NotificationManager.CustomText = "Someone is watching!";
         this.Prompt.Yandere.NotificationManager.DisplayNotification(NotificationType.Custom);
     }
 }
Beispiel #12
0
 // Token: 0x060019D2 RID: 6610 RVA: 0x000FDFE4 File Offset: 0x000FC1E4
 private void Update()
 {
     if (!this.Prompt.Yandere.Inventory.AnswerSheet && this.Prompt.Yandere.Inventory.DuplicateSheet)
     {
         this.Prompt.enabled = true;
         if (this.Clock.HourTime > 13f)
         {
             this.Prompt.HideButton[0] = false;
             if (this.Clock.HourTime > 13.5f)
             {
                 SchemeGlobals.SetSchemeStage(5, 100);
                 this.Schemes.UpdateInstructions();
                 this.Prompt.HideButton[0] = true;
             }
         }
         if (this.Prompt.Circle[0].fillAmount == 0f)
         {
             SchemeGlobals.SetSchemeStage(5, 9);
             this.Schemes.UpdateInstructions();
             this.Prompt.Yandere.Inventory.DuplicateSheet = false;
             this.Prompt.Hide();
             this.Prompt.enabled = false;
             this.Cheating       = true;
             base.enabled        = false;
         }
     }
 }
Beispiel #13
0
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Prompt.Circle[0].fillAmount = 1f;
         if (this.Prompt.Yandere.Inventory.Money >= (float)this.Price)
         {
             if (!this.Sabotaged)
             {
                 UnityEngine.Object.Instantiate <GameObject>(this.Cans[UnityEngine.Random.Range(0, this.Cans.Length)], this.CanSpawn.position, this.CanSpawn.rotation).GetComponent <AudioSource>().pitch = UnityEngine.Random.Range(0.9f, 1.1f);
             }
             if (this.SnackMachine && SchemeGlobals.GetSchemeStage(4) == 3)
             {
                 SchemeGlobals.SetSchemeStage(4, 4);
                 this.Prompt.Yandere.PauseScreen.Schemes.UpdateInstructions();
             }
             this.Prompt.Yandere.Inventory.Money -= (float)this.Price;
             this.Prompt.Yandere.Inventory.UpdateMoney();
             return;
         }
         this.Prompt.Yandere.StudentManager.TutorialWindow.ShowMoneyMessage = true;
         this.Prompt.Yandere.NotificationManager.CustomText = "Not enough money!";
         this.Prompt.Yandere.NotificationManager.DisplayNotification(NotificationType.Custom);
     }
 }
 public static void WriteToGlobals(SchemeSaveData data)
 {
     SchemeGlobals.CurrentScheme = data.currentScheme;
     SchemeGlobals.DarkSecret    = data.darkSecret;
     foreach (KeyValuePair <int, int> keyValuePair in data.schemePreviousStage)
     {
         SchemeGlobals.SetSchemePreviousStage(keyValuePair.Key, keyValuePair.Value);
     }
     foreach (KeyValuePair <int, int> keyValuePair2 in data.schemeStage)
     {
         SchemeGlobals.SetSchemeStage(keyValuePair2.Key, keyValuePair2.Value);
     }
     foreach (int schemeID in data.schemeStatus)
     {
         SchemeGlobals.SetSchemeStatus(schemeID, true);
     }
     foreach (int schemeID2 in data.schemeUnlocked)
     {
         SchemeGlobals.SetSchemeUnlocked(schemeID2, true);
     }
     foreach (int serviceID in data.servicePurchased)
     {
         SchemeGlobals.SetServicePurchased(serviceID, true);
     }
 }
 // Token: 0x0600070D RID: 1805 RVA: 0x0006C1D8 File Offset: 0x0006A5D8
 private void Start()
 {
     if (this.ID == 1)
     {
         if (SchemeGlobals.GetSchemeStage(5) == 100)
         {
             this.Prompt.Hide();
             this.Prompt.enabled = false;
             base.gameObject.SetActive(false);
         }
         else
         {
             if (SchemeGlobals.GetSchemeStage(5) > 4)
             {
                 this.Prompt.Hide();
                 this.Prompt.enabled = false;
             }
             if (DateGlobals.Weekday == DayOfWeek.Friday && this.Clock.HourTime > 13.5f)
             {
                 this.Prompt.Hide();
                 this.Prompt.enabled = false;
                 base.gameObject.SetActive(false);
             }
         }
     }
 }
Beispiel #16
0
 private void Update()
 {
     if (this.Clock.HourTime > 15.5f)
     {
         SchemeGlobals.SetSchemeStage(SchemeGlobals.CurrentScheme, 100);
         this.Clock.Yandere.NotificationManager.CustomText = "Scheme failed! You were too slow.";
         this.Clock.Yandere.NotificationManager.DisplayNotification(NotificationType.Custom);
         this.Schemes.UpdateInstructions();
         base.enabled = false;
     }
     if (this.ClockCheck && this.Clock.HourTime > 8.25f)
     {
         this.Timer += Time.deltaTime;
         if (this.Timer > 1f)
         {
             this.Timer = 0f;
             if (SchemeGlobals.GetSchemeStage(5) == 1)
             {
                 Debug.Log("It's past 8:15 AM, so we're advancing to Stage 2 of Scheme 5.");
                 SchemeGlobals.SetSchemeStage(5, 2);
                 this.Schemes.UpdateInstructions();
                 this.ClockCheck = false;
             }
         }
     }
 }
 // Token: 0x0600077A RID: 1914 RVA: 0x000706A4 File Offset: 0x0006EAA4
 private void Start()
 {
     for (int i = 1; i < this.ServiceNames.Length; i++)
     {
         SchemeGlobals.SetServicePurchased(i, false);
         this.NameLabels[i].text = this.ServiceNames[i];
     }
 }
 public void UpdateList()
 {
     this.ID = 1;
     while (this.ID < this.ServiceNames.Length)
     {
         this.CostLabels[this.ID].text = this.ServiceCosts[this.ID].ToString();
         bool servicePurchased = SchemeGlobals.GetServicePurchased(this.ID);
         this.ServiceAvailable[this.ID] = false;
         if (this.ID == 1 || this.ID == 2 || this.ID == 3)
         {
             this.ServiceAvailable[this.ID] = true;
         }
         else if (this.ID == 4)
         {
             if (!SchemeGlobals.DarkSecret)
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 5)
         {
             if (!this.ServicePurchased[this.ID])
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 6)
         {
             if (this.Police.Show && !this.Police.Delayed)
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 7)
         {
             if (CounselorGlobals.CounselorTape == 0)
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 8)
         {
             if (!SchemeGlobals.GetServicePurchased(8))
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 9 && MissionModeGlobals.MissionMode)
         {
             this.ServiceAvailable[this.ID] = true;
         }
         UILabel uilabel = this.NameLabels[this.ID];
         uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, (this.ServiceAvailable[this.ID] && !servicePurchased) ? 1f : 0.5f);
         this.ID++;
     }
 }
 // Token: 0x0600042B RID: 1067 RVA: 0x0003BE04 File Offset: 0x0003A204
 public static void DeleteAll()
 {
     Globals.Delete("CurrentScheme");
     Globals.Delete("DarkSecret");
     Globals.DeleteCollection("SchemePreviousStage_", SchemeGlobals.KeysOfSchemePreviousStage());
     Globals.DeleteCollection("SchemeStage_", SchemeGlobals.KeysOfSchemeStage());
     Globals.DeleteCollection("SchemeStatus_", SchemeGlobals.KeysOfSchemeStatus());
     Globals.DeleteCollection("SchemeUnlocked_", SchemeGlobals.KeysOfSchemeUnlocked());
     Globals.DeleteCollection("ServicePurchased_", SchemeGlobals.KeysOfServicePurchased());
 }
 // Token: 0x06000A93 RID: 2707 RVA: 0x000579A4 File Offset: 0x00055BA4
 public void Fill()
 {
     if (SchemeGlobals.GetSchemeStage(1) == 1)
     {
         SchemeGlobals.SetSchemeStage(1, 2);
         this.Yandere.PauseScreen.Schemes.UpdateInstructions();
     }
     this.UpdateAppearance = true;
     this.Full             = true;
 }
Beispiel #21
0
 // Token: 0x060006F1 RID: 1777 RVA: 0x0006BA84 File Offset: 0x00069E84
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         SchemeGlobals.SetSchemeStage(2, 2);
         this.Prompt.Yandere.Inventory.Schemes.UpdateInstructions();
         this.Prompt.Yandere.Inventory.Ring = true;
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
Beispiel #22
0
 // Token: 0x060019CC RID: 6604 RVA: 0x000FDD60 File Offset: 0x000FBF60
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         SchemeGlobals.SetSchemeStage(2, 2);
         this.Prompt.Yandere.Inventory.Schemes.UpdateInstructions();
         this.Prompt.Yandere.Inventory.Ring = true;
         this.Prompt.Yandere.TheftTimer     = 0.1f;
         base.gameObject.SetActive(false);
     }
 }
 public static void DeleteAll()
 {
     Globals.Delete("Profile_" + GameGlobals.Profile + "_CurrentScheme");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_DarkSecret");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_HelpingKokona");
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_SchemePreviousStage_", SchemeGlobals.KeysOfSchemePreviousStage());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_SchemeStage_", SchemeGlobals.KeysOfSchemeStage());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_SchemeStatus_", SchemeGlobals.KeysOfSchemeStatus());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_SchemeUnlocked_", SchemeGlobals.KeysOfSchemeUnlocked());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_ServicePurchased_", SchemeGlobals.KeysOfServicePurchased());
 }
 // Token: 0x0600076A RID: 1898 RVA: 0x0006FB00 File Offset: 0x0006DF00
 private void Start()
 {
     for (int i = 1; i < this.SchemeNames.Length; i++)
     {
         if (!SchemeGlobals.GetSchemeStatus(i))
         {
             this.SchemeDeadlineLabels[i].text = this.SchemeDeadlines[i];
             this.SchemeNameLabels[i].text     = this.SchemeNames[i];
         }
     }
 }
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         SchemeGlobals.SetSchemeStage(3, 3);
         this.Prompt.Yandere.Inventory.Schemes.UpdateInstructions();
         this.Prompt.Yandere.Inventory.Cigs = true;
         UnityEngine.Object.Destroy(base.gameObject);
         this.Prompt.Yandere.StudentManager.TaskManager.CheckTaskPickups();
     }
 }
 // Token: 0x0600077C RID: 1916 RVA: 0x00070928 File Offset: 0x0006ED28
 public void UpdateList()
 {
     this.ID = 1;
     while (this.ID < this.ServiceNames.Length)
     {
         this.CostLabels[this.ID].text = this.ServiceCosts[this.ID].ToString();
         bool    servicePurchased = SchemeGlobals.GetServicePurchased(this.ID);
         UILabel uilabel          = this.NameLabels[this.ID];
         uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, (!this.ServiceActive[this.ID] || servicePurchased) ? 0.5f : 1f);
         this.ID++;
     }
 }
 // Token: 0x06000704 RID: 1796 RVA: 0x0006BE5C File Offset: 0x0006A25C
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         SchemeGlobals.SetSchemeStage(4, 2);
         this.Prompt.Yandere.Inventory.Schemes.UpdateInstructions();
         this.Prompt.Yandere.RivalPhoneTexture    = this.MyRenderer.material.mainTexture;
         this.Prompt.Yandere.Inventory.RivalPhone = true;
         this.Prompt.enabled = false;
         base.enabled        = false;
         base.gameObject.SetActive(false);
         this.Stolen = true;
     }
 }
 // Token: 0x06000A92 RID: 2706 RVA: 0x00057940 File Offset: 0x00055B40
 public void Empty()
 {
     if (SchemeGlobals.GetSchemeStage(1) == 2)
     {
         SchemeGlobals.SetSchemeStage(1, 1);
         this.Yandere.PauseScreen.Schemes.UpdateInstructions();
     }
     this.UpdateAppearance = true;
     this.Bloodiness       = 0f;
     this.Bleached         = false;
     this.Gasoline         = false;
     this.Sparkles.Stop();
     this.Full = false;
 }
Beispiel #29
0
 // Token: 0x06000230 RID: 560 RVA: 0x0002EEE0 File Offset: 0x0002D2E0
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         if (this.Phase == 1)
         {
             this.Prompt.Hide();
             this.Prompt.enabled = false;
             this.Prompt.Yandere.Inventory.AnswerSheet = false;
             this.Papers[1].gameObject.SetActive(true);
             SchemeGlobals.SetSchemeStage(5, 3);
             this.Schemes.UpdateInstructions();
             base.GetComponent <AudioSource>().Play();
         }
         else
         {
             this.Prompt.Hide();
             this.Prompt.enabled = false;
             this.Prompt.Yandere.Inventory.AnswerSheet    = true;
             this.Prompt.Yandere.Inventory.DuplicateSheet = true;
             this.Papers[2].gameObject.SetActive(false);
             this.RummageSpot.Prompt.Label[0].text = "     Return Answer Sheet";
             this.RummageSpot.Prompt.enabled       = true;
             SchemeGlobals.SetSchemeStage(5, 4);
             this.Schemes.UpdateInstructions();
         }
         this.Phase++;
     }
     if (this.Phase == 2)
     {
         this.Timer += Time.deltaTime;
         if (this.Timer > 4f)
         {
             this.Prompt.Label[0].text = "     Pick Up Sheets";
             this.Prompt.enabled       = true;
             this.Phase = 2;
         }
         else if (this.Timer > 3f)
         {
             Transform transform = this.Papers[2];
             transform.localPosition = new Vector3(transform.localPosition.x, transform.localPosition.y, Mathf.Lerp(transform.localPosition.z, -0.166f, Time.deltaTime * 10f));
         }
         else if (this.Timer > 1f)
         {
             Transform transform2 = this.Papers[1];
             transform2.localPosition = new Vector3(transform2.localPosition.x, transform2.localPosition.y, Mathf.Lerp(transform2.localPosition.z, 0.166f, Time.deltaTime * 10f));
         }
     }
 }
 // Token: 0x0600077D RID: 1917 RVA: 0x00070A08 File Offset: 0x0006EE08
 public void UpdateDesc()
 {
     if (this.ServiceActive[this.Selected] && !SchemeGlobals.GetServicePurchased(this.Selected))
     {
         this.PromptBar.Label[0].text = ((PlayerGlobals.PantyShots < this.ServiceCosts[this.Selected]) ? string.Empty : "Purchase");
         this.PromptBar.UpdateButtons();
     }
     else
     {
         this.PromptBar.Label[0].text = string.Empty;
         this.PromptBar.UpdateButtons();
     }
     this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 200f - 25f * (float)this.Selected, this.Highlight.localPosition.z);
     this.ServiceIcon.mainTexture = this.ServiceIcons[this.Selected];
     this.ServiceLimit.text       = this.ServiceLimits[this.Selected];
     this.ServiceDesc.text        = this.ServiceDescs[this.Selected];
     this.UpdatePantyCount();
 }