title: I'm trying to make upgrade system I cannot find way to save this data after when I Start game
body: <pre><code>    private void Update()
  
  
      {
  
  
          Score.text = puanlama.ToString();
  
          if (puanlama &lt; firstbarvalue)//used for first bar value to open button activeness
          {
              activeness.interactable = false;
          }
  
          if (puanlama &gt;= firstbarvalue &amp;&amp; counterbars == 1)//counterbar for button activeness
          {
  
              textforvalues.text = firstbarvalue.ToString();// button value on it
              activeness.interactable = true;
  
          }
  
  
              if (counterbars == 2)
              {
                  activeness.interactable = false;
  
              }
  
  
             
              if (puanlama &gt;= secondbarvalue &amp;&amp; counterbars == 2)
              {
                  
  
                  textforvalues.text = secondbarvalue.ToString();
                  activeness.interactable = true;
  
              }
  
  
  
              if (counterbars == 3)
              {
                  activeness.interactable = false;
              }
  
  
          
      }
      public void Buttonactiveness()// Button activeness that I assign to my button[Here button and bars that I used][1]
      {
  
      
              if (puanlama &gt;= firstbarvalue &amp;&amp; counterbars == 1)
              {
  
                  Fuelbars[0].SetActive(true);
                  for (int i = 1; i &lt; Fuelbars.Length; i++)
                  {
                      Fuelbars[i].SetActive(false);
                  }
  
                  puanlama = puanlama - firstbarvalue;
                  counterbars++;
                 
  
              }
          
  
          else if (puanlama &gt;= secondbarvalue &amp;&amp; counterbars == 2)//Bars which is second one
          {
              
  
                  Fuelbars[0].SetActive(true);
                  Fuelbars[1].SetActive(true);
                  for (int i = 2; i &lt; Fuelbars.Length; i++)
                  {
                      Fuelbars[i].SetActive(false);
                  }
                  puanlama = puanlama - secondbarvalue;
                  counterbars++;
  
              
     }
  
     
  </code></pre>
  <ul>
  <li>I'm trying to put some code to turn this code to player pref and save this data.</li>
  <li>playerpref counter bar is not working any suggest</li>
  <li>Button activeness that I assign to my button<a href="https://i.stack.imgur.com/2EHck.jpg" rel="nofollow noreferrer">Here button and bars that I used</a></li>
  <li>Fuelbars which I'm trying to add is important part of work</li>
  <li>counterbar for button activeness</li>
  <li>In update section I tried to control button activeness and I changed button text</li>
  </ul>