title: Setting a player pref key results in setting all of them Unity3D
body: <p>When I try to use <code>PlayerPrefsManager.SetFood()</code> it sets all of the player pref strings. So if I do <code>PlayerPrefsManager.SetFood(Monday, Bread)</code>, it sets <code>MONDAY_KEY</code>, <code>TUESDAY_KEY</code>, <code>WEDNESDAY_KEY</code>, etc to <code>Bread</code>. Can someone please point out my error?</p>
  
  <p>Edit: I know that it's all <code>if</code> statements in the <code>SetFood</code> function (instead of <code>else if</code> statements), but due to the fact that 2 or more instances of the function could be called at the same time I replaced all of the <code>else if</code> statements (I'm not sure if that's the correct wording).</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class PlayerPrefsManager : MonoBehaviour {
      const string MONDAY_KEY = "null";
      const string TUESDAY_KEY = "null";
      const string WEDNESDAY_KEY = "null";
      const string THURSDAY_KEY = "null";
      const string FRIDAY_KEY = "null";
      const string SATURDAY_KEY = "null";
      const string SUNDAY_KEY = "null";
  
      public static string GetFood (string Day){
          if (Day == "Monday") {
              return PlayerPrefs.GetString (MONDAY_KEY);
          } else if (Day == "Tuesday") {
              return PlayerPrefs.GetString (TUESDAY_KEY);
          } else if (Day == "Wednesday") {
              return PlayerPrefs.GetString (WEDNESDAY_KEY);
          } else if (Day == "Thursday") {
              return PlayerPrefs.GetString (THURSDAY_KEY);
          } else if (Day == "Friday") {
              return PlayerPrefs.GetString (FRIDAY_KEY);
          } else if (Day == "Saturday") {
              return PlayerPrefs.GetString (SATURDAY_KEY);
          } else if (Day == "Sunday") {
              return PlayerPrefs.GetString (SUNDAY_KEY);
          } else{
              return "Day out of range";
          }
      }
  
      public static void SetFood (string Day, string Food){
          if (Day == "Monday") {
              PlayerPrefs.SetString (MONDAY_KEY, Food); 
          } if (Day == "Tuesday") {
              PlayerPrefs.SetString (TUESDAY_KEY, Food);
          } if (Day == "Wednesday") {
              PlayerPrefs.SetString (WEDNESDAY_KEY, Food);
          } if (Day == "Thursday") {
              PlayerPrefs.SetString (THURSDAY_KEY, Food);
          } if (Day == "Friday") {
              PlayerPrefs.SetString (FRIDAY_KEY, Food);
          } if (Day == "Saturday") {
              PlayerPrefs.SetString (SATURDAY_KEY, Food);
          } if (Day == "Sunday") {
              PlayerPrefs.SetString (SUNDAY_KEY, Food);
          } if (!(Day == "Monday") || (Day == "Tuesday") || (Day == "Wednesday") || (Day == "Thursday") || (Day == "Friday") || (Day == "Saturday") || (Day == "Sunday")) {
              Debug.LogError ("Day out of range");
          }
      }
  }
  </code></pre>