title: The 'public / static' modifier is not valid for this item
body: <p>I created a script to add sounds in the game like jump and hit and I have an error that I can not solve it still says <code>The modifier 'public' is not valid for this item</code> and I say in unity im la just the way <code>The static modifier is not valid for this item</code> can help me?</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class SoundManagerScript : MonoBehaviour
  {
      public static AudioClip Hit_HurtSound, Jump2Sound;
      static AudioSource audioSrc;
  
      // Start is called before the first frame update
      void Start()
      {
          Hit_HurtSound = Resources.Load&lt;AudiotClip&gt; ("Hit_Hurt");
          Jump2Sound = Resources.Load&lt;AudiotClip&gt; ("Jump2");
  
          audioSrc = GetComponent&lt;AudioSource&gt; ();
      }
  
      // Update is called once per frame
      void Update()
      {
                public static void PlaySound (string clip)
          {
              switch (clip)
              {
                  case "Jump2":
                      audioSrc.PlayOneShot(Jump2Sound);
                      break;
  
                  case "Hit_Hurt":
                      audioSrc.PlayOneShot(Hit_HurtSound);
                      break;
              }
          }
      }
  }
  </code></pre>