private void UpdateCorkboardCursor()
    {
        Vector2 vector  = new Vector2(this.HomeCursor.transform.localPosition.x, this.HomeCursor.transform.localPosition.y);
        Vector2 vector2 = new Vector2(this.MouseDelta.x * 8.66666f + Input.GetAxis("Horizontal") * 86.66666f * this.SpeedLimit, this.MouseDelta.y * 8.66666f + Input.GetAxis("Vertical") * 86.66666f * this.SpeedLimit);

        this.HomeCursor.transform.localPosition = new Vector3(Mathf.Clamp(vector.x + vector2.x, -4788f, 4788f), Mathf.Clamp(vector.y + vector2.y, -3122f, 3122f), this.HomeCursor.transform.localPosition.z);
        if (Input.GetButtonDown("A") && this.HomeCursor.Photograph != null)
        {
            this.HomeCursor.Highlight.transform.position = new Vector3(this.HomeCursor.Highlight.transform.position.x, 100f, this.HomeCursor.Highlight.transform.position.z);
            this.MovingPhotograph = this.HomeCursor.Photograph;
            this.HomeCursor.gameObject.SetActive(false);
            this.Moving = true;
            this.UpdateButtonPrompts();
        }
        if (Input.GetButtonDown("Y"))
        {
            GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.StringSet, base.transform.position, Quaternion.identity);
            gameObject.transform.parent        = this.StringParent;
            gameObject.transform.localPosition = new Vector3(0f, 0f, 0f);
            gameObject.transform.localScale    = new Vector3(1f, 1f, 1f);
            this.String = gameObject.GetComponent <StringScript>();
            this.HomeCursor.gameObject.SetActive(false);
            this.MovingString = true;
            this.CorkboardStrings[this.Strings]         = this.String.GetComponent <StringScript>();
            this.CorkboardStrings[this.Strings].ArrayID = this.Strings;
            this.Strings++;
            this.UpdateButtonPrompts();
        }
        if (Input.GetButtonDown("B"))
        {
            if (this.HomeCursor.Photograph != null)
            {
                this.HomeCursor.Photograph = null;
            }
            this.HomeCursor.transform.localPosition      = new Vector3(0f, 0f, this.HomeCursor.transform.localPosition.z);
            this.HomeCursor.Highlight.transform.position = new Vector3(this.HomeCursor.Highlight.transform.position.x, 100f, this.HomeCursor.Highlight.transform.position.z);
            this.CanAdjust = true;
            this.HomeCursor.gameObject.SetActive(false);
            this.Adjusting = false;
            this.UpdateButtonPrompts();
        }
        if (Input.GetButtonDown("X"))
        {
            if (this.HomeCursor.Photograph != null)
            {
                this.HomeCursor.Highlight.transform.position = new Vector3(this.HomeCursor.Highlight.transform.position.x, 100f, this.HomeCursor.Highlight.transform.position.z);
                this.Shuffle(this.HomeCursor.Photograph.GetComponent <HomeCorkboardPhotoScript>().ArrayID);
                UnityEngine.Object.Destroy(this.HomeCursor.Photograph);
                this.Photos--;
                this.HomeCursor.Photograph = null;
                this.UpdateButtonPrompts();
            }
            if (this.HomeCursor.Tack != null)
            {
                this.HomeCursor.CircleHighlight.transform.position = new Vector3(this.HomeCursor.CircleHighlight.transform.position.x, 100f, this.HomeCursor.CircleHighlight.transform.position.z);
                this.ShuffleStrings(this.HomeCursor.Tack.transform.parent.GetComponent <StringScript>().ArrayID);
                UnityEngine.Object.Destroy(this.HomeCursor.Tack.transform.parent.gameObject);
                this.Strings--;
                this.HomeCursor.Tack = null;
                this.UpdateButtonPrompts();
            }
        }
    }
 public void SpawnStrings()
 {
     for (int i = 0; i < 100; i++)
     {
         if (PlayerPrefs.GetInt(string.Concat(new object[]
         {
             "Profile_",
             GameGlobals.Profile,
             "_CorkboardString_",
             i,
             "_Exists"
         })) == 1)
         {
             GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.StringSet, base.transform.position, Quaternion.identity);
             gameObject.transform.parent        = this.StringParent;
             gameObject.transform.localPosition = new Vector3(0f, 0f, 0f);
             gameObject.transform.localScale    = new Vector3(1f, 1f, 1f);
             this.String = gameObject.GetComponent <StringScript>();
             this.String.Origin.localPosition = new Vector3(PlayerPrefs.GetFloat(string.Concat(new object[]
             {
                 "Profile_",
                 GameGlobals.Profile,
                 "_CorkboardString_",
                 i,
                 "_PositionX"
             })), PlayerPrefs.GetFloat(string.Concat(new object[]
             {
                 "Profile_",
                 GameGlobals.Profile,
                 "_CorkboardString_",
                 i,
                 "_PositionY"
             })), PlayerPrefs.GetFloat(string.Concat(new object[]
             {
                 "Profile_",
                 GameGlobals.Profile,
                 "_CorkboardString_",
                 i,
                 "_PositionZ"
             })));
             this.String.Target.localPosition = new Vector3(PlayerPrefs.GetFloat(string.Concat(new object[]
             {
                 "Profile_",
                 GameGlobals.Profile,
                 "_CorkboardString2_",
                 i,
                 "_PositionX"
             })), PlayerPrefs.GetFloat(string.Concat(new object[]
             {
                 "Profile_",
                 GameGlobals.Profile,
                 "_CorkboardString2_",
                 i,
                 "_PositionY"
             })), PlayerPrefs.GetFloat(string.Concat(new object[]
             {
                 "Profile_",
                 GameGlobals.Profile,
                 "_CorkboardString2_",
                 i,
                 "_PositionZ"
             })));
             this.CorkboardStrings[this.Strings]         = this.String.GetComponent <StringScript>();
             this.CorkboardStrings[this.Strings].ArrayID = this.Strings;
             this.Strings++;
         }
         else
         {
             PlayerPrefs.SetInt(string.Concat(new object[]
             {
                 "Profile_",
                 GameGlobals.Profile,
                 "_CorkboardString_",
                 i,
                 "_Exists"
             }), 0);
         }
     }
 }