Beispiel #1
0
    // Token: 0x06001A13 RID: 6675 RVA: 0x000FE46C File Offset: 0x000FC66C
    public static SchoolSaveData ReadFromGlobals()
    {
        SchoolSaveData schoolSaveData = new SchoolSaveData();

        foreach (int num in SchoolGlobals.KeysOfDemonActive())
        {
            if (SchoolGlobals.GetDemonActive(num))
            {
                schoolSaveData.demonActive.Add(num);
            }
        }
        foreach (int num2 in SchoolGlobals.KeysOfGardenGraveOccupied())
        {
            if (SchoolGlobals.GetGardenGraveOccupied(num2))
            {
                schoolSaveData.gardenGraveOccupied.Add(num2);
            }
        }
        schoolSaveData.kidnapVictim        = SchoolGlobals.KidnapVictim;
        schoolSaveData.population          = SchoolGlobals.Population;
        schoolSaveData.roofFence           = SchoolGlobals.RoofFence;
        schoolSaveData.schoolAtmosphere    = SchoolGlobals.SchoolAtmosphere;
        schoolSaveData.schoolAtmosphereSet = SchoolGlobals.SchoolAtmosphereSet;
        schoolSaveData.scp = SchoolGlobals.SCP;
        return(schoolSaveData);
    }
    // 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 #3
0
 // Token: 0x060002F3 RID: 755 RVA: 0x0003812B File Offset: 0x0003652B
 public void EndOfDayCheck()
 {
     if (this.VictimID > 0)
     {
         StudentGlobals.SetStudentMissing(this.VictimID, true);
         SchoolGlobals.SetGardenGraveOccupied(this.ID, true);
     }
 }
Beispiel #4
0
 // Token: 0x060002EF RID: 751 RVA: 0x00037B5F File Offset: 0x00035F5F
 private void Start()
 {
     if (SchoolGlobals.GetGardenGraveOccupied(this.ID))
     {
         this.Prompt.Hide();
         this.Prompt.enabled = false;
         base.enabled        = false;
     }
 }
 // Token: 0x06000440 RID: 1088 RVA: 0x0003BFE8 File Offset: 0x0003A3E8
 public static void DeleteAll()
 {
     Globals.DeleteCollection("DemonActive_", SchoolGlobals.KeysOfDemonActive());
     Globals.DeleteCollection("GardenGraveOccupied_", SchoolGlobals.KeysOfGardenGraveOccupied());
     Globals.Delete("KidnapVictim");
     Globals.Delete("Population");
     Globals.Delete("RoofFence");
     Globals.Delete("SchoolAtmosphere");
     Globals.Delete("SchoolAtmosphereSet");
     Globals.Delete("SCP");
 }
Beispiel #6
0
 // Token: 0x060015F6 RID: 5622 RVA: 0x000BA920 File Offset: 0x000B8B20
 public static void DeleteAll()
 {
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_DemonActive_", SchoolGlobals.KeysOfDemonActive());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_GardenGraveOccupied_", SchoolGlobals.KeysOfGardenGraveOccupied());
     Globals.Delete("Profile_" + GameGlobals.Profile + "_KidnapVictim");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Population");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_RoofFence");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SchoolAtmosphere");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SchoolAtmosphereSet");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_ReactedToGameLeader");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_HighSecurity");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SCP");
 }
Beispiel #7
0
 // Token: 0x06001A14 RID: 6676 RVA: 0x000FE520 File Offset: 0x000FC720
 public static void WriteToGlobals(SchoolSaveData data)
 {
     foreach (int demonID in data.demonActive)
     {
         SchoolGlobals.SetDemonActive(demonID, true);
     }
     foreach (int graveID in data.gardenGraveOccupied)
     {
         SchoolGlobals.SetGardenGraveOccupied(graveID, true);
     }
     SchoolGlobals.KidnapVictim        = data.kidnapVictim;
     SchoolGlobals.Population          = data.population;
     SchoolGlobals.RoofFence           = data.roofFence;
     SchoolGlobals.SchoolAtmosphere    = data.schoolAtmosphere;
     SchoolGlobals.SchoolAtmosphereSet = data.schoolAtmosphereSet;
     SchoolGlobals.SCP = data.scp;
 }
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Yandere.Character.GetComponent <Animation>().CrossFade(this.Yandere.IdleAnim);
         this.Yandere.CanMove = false;
         this.Communing       = true;
     }
     if (this.DemonID == 1)
     {
         if ((double)Vector3.Distance(this.Yandere.transform.position, base.transform.position) < 2.5)
         {
             if (!this.Open)
             {
                 AudioSource.PlayClipAtPoint(this.MouthOpen, base.transform.position);
             }
             this.Open = true;
         }
         else
         {
             if (this.Open)
             {
                 AudioSource.PlayClipAtPoint(this.MouthClose, base.transform.position);
             }
             this.Open = false;
         }
         if (this.Open)
         {
             this.Value = Mathf.Lerp(this.Value, 100f, Time.deltaTime * 10f);
         }
         else
         {
             this.Value = Mathf.Lerp(this.Value, 0f, Time.deltaTime * 10f);
         }
         this.Face.SetBlendShapeWeight(0, this.Value);
     }
     if (this.Communing)
     {
         AudioSource component = base.GetComponent <AudioSource>();
         if (this.Phase == 1)
         {
             this.Darkness.color = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, Mathf.MoveTowards(this.Darkness.color.a, 1f, Time.deltaTime));
             if (this.Darkness.color.a == 1f)
             {
                 this.DemonSubtitle.transform.localPosition = Vector3.zero;
                 this.DemonSubtitle.text  = this.Lines[this.ID];
                 this.DemonSubtitle.color = this.MyColor;
                 this.DemonSubtitle.color = new Color(this.DemonSubtitle.color.r, this.DemonSubtitle.color.g, this.DemonSubtitle.color.b, 0f);
                 this.Phase++;
                 if (this.Clips[this.ID] != null)
                 {
                     component.clip = this.Clips[this.ID];
                     component.Play();
                     return;
                 }
             }
         }
         else if (this.Phase == 2)
         {
             Debug.Log("Demon Phase is 2.");
             this.DemonSubtitle.transform.localPosition = new Vector3(UnityEngine.Random.Range(-this.Intensity, this.Intensity), UnityEngine.Random.Range(-this.Intensity, this.Intensity), UnityEngine.Random.Range(-this.Intensity, this.Intensity));
             this.DemonSubtitle.color = new Color(this.DemonSubtitle.color.r, this.DemonSubtitle.color.g, this.DemonSubtitle.color.b, Mathf.MoveTowards(this.DemonSubtitle.color.a, 1f, Time.deltaTime));
             this.Button.color        = new Color(this.Button.color.r, this.Button.color.g, this.Button.color.b, Mathf.MoveTowards(this.Button.color.a, 1f, Time.deltaTime));
             if (this.DemonSubtitle.color.a > 0.9f && Input.GetButtonDown("A"))
             {
                 this.Phase++;
                 return;
             }
         }
         else if (this.Phase == 3)
         {
             this.DemonSubtitle.transform.localPosition = new Vector3(UnityEngine.Random.Range(-this.Intensity, this.Intensity), UnityEngine.Random.Range(-this.Intensity, this.Intensity), UnityEngine.Random.Range(-this.Intensity, this.Intensity));
             this.DemonSubtitle.color = new Color(this.DemonSubtitle.color.r, this.DemonSubtitle.color.g, this.DemonSubtitle.color.b, Mathf.MoveTowards(this.DemonSubtitle.color.a, 0f, Time.deltaTime));
             if (this.DemonSubtitle.color.a == 0f)
             {
                 this.ID++;
                 if (this.ID >= this.Lines.Length)
                 {
                     this.Phase++;
                     return;
                 }
                 this.Phase--;
                 this.DemonSubtitle.text = this.Lines[this.ID];
                 if (this.Clips[this.ID] != null)
                 {
                     component.clip = this.Clips[this.ID];
                     component.Play();
                     return;
                 }
             }
         }
         else
         {
             this.Darkness.color = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, Mathf.MoveTowards(this.Darkness.color.a, 0f, Time.deltaTime));
             this.Button.color   = new Color(this.Button.color.r, this.Button.color.g, this.Button.color.b, Mathf.MoveTowards(this.Button.color.a, 0f, Time.deltaTime));
             if (this.Darkness.color.a == 0f)
             {
                 this.Yandere.CanMove = true;
                 this.Communing       = false;
                 this.Phase           = 1;
                 this.ID = 0;
                 SchoolGlobals.SetDemonActive(this.DemonID, true);
                 StudentGlobals.FemaleUniform = 1;
                 StudentGlobals.MaleUniform   = 1;
                 GameGlobals.Paranormal       = true;
             }
         }
     }
 }
Beispiel #9
0
 // Token: 0x06000219 RID: 537 RVA: 0x0002B7F4 File Offset: 0x00029BF4
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Yandere.Character.GetComponent <Animation>().CrossFade(this.Yandere.IdleAnim);
         this.Yandere.CanMove = false;
         this.Communing       = true;
     }
     if (this.Communing)
     {
         AudioSource component = base.GetComponent <AudioSource>();
         if (this.Phase == 1)
         {
             this.Darkness.color = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, Mathf.MoveTowards(this.Darkness.color.a, 1f, Time.deltaTime));
             if (this.Darkness.color.a == 1f)
             {
                 this.DemonSubtitle.transform.localPosition = Vector3.zero;
                 this.DemonSubtitle.text  = this.Lines[this.ID];
                 this.DemonSubtitle.color = this.MyColor;
                 this.DemonSubtitle.color = new Color(this.DemonSubtitle.color.r, this.DemonSubtitle.color.g, this.DemonSubtitle.color.b, 0f);
                 this.Phase++;
                 if (this.Clips[this.ID] != null)
                 {
                     component.clip = this.Clips[this.ID];
                     component.Play();
                 }
             }
         }
         else if (this.Phase == 2)
         {
             this.DemonSubtitle.transform.localPosition = new Vector3(UnityEngine.Random.Range(-this.Intensity, this.Intensity), UnityEngine.Random.Range(-this.Intensity, this.Intensity), UnityEngine.Random.Range(-this.Intensity, this.Intensity));
             this.DemonSubtitle.color = new Color(this.DemonSubtitle.color.r, this.DemonSubtitle.color.g, this.DemonSubtitle.color.b, Mathf.MoveTowards(this.DemonSubtitle.color.a, 1f, Time.deltaTime));
             this.Button.color        = new Color(this.Button.color.r, this.Button.color.g, this.Button.color.b, Mathf.MoveTowards(this.Button.color.a, 1f, Time.deltaTime));
             if (this.DemonSubtitle.color.a == 1f && Input.GetButtonDown("A"))
             {
                 this.Phase++;
             }
         }
         else if (this.Phase == 3)
         {
             this.DemonSubtitle.transform.localPosition = new Vector3(UnityEngine.Random.Range(-this.Intensity, this.Intensity), UnityEngine.Random.Range(-this.Intensity, this.Intensity), UnityEngine.Random.Range(-this.Intensity, this.Intensity));
             this.DemonSubtitle.color = new Color(this.DemonSubtitle.color.r, this.DemonSubtitle.color.g, this.DemonSubtitle.color.b, Mathf.MoveTowards(this.DemonSubtitle.color.a, 0f, Time.deltaTime));
             if (this.DemonSubtitle.color.a == 0f)
             {
                 this.ID++;
                 if (this.ID < this.Lines.Length)
                 {
                     this.Phase--;
                     this.DemonSubtitle.text = this.Lines[this.ID];
                     if (this.Clips[this.ID] != null)
                     {
                         component.clip = this.Clips[this.ID];
                         component.Play();
                     }
                 }
                 else
                 {
                     this.Phase++;
                 }
             }
         }
         else
         {
             this.Darkness.color = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, Mathf.MoveTowards(this.Darkness.color.a, 0f, Time.deltaTime));
             this.Button.color   = new Color(this.Button.color.r, this.Button.color.g, this.Button.color.b, Mathf.MoveTowards(this.Button.color.a, 0f, Time.deltaTime));
             if (this.Darkness.color.a == 0f)
             {
                 this.Yandere.CanMove = true;
                 this.Communing       = false;
                 this.Phase           = 1;
                 this.ID = 0;
                 SchoolGlobals.SetDemonActive(this.DemonID, true);
                 GameGlobals.Paranormal = true;
             }
         }
     }
 }