void Update()
 {
     if (numberOfPlatformsTouching == 0)
     {
         playerStateScript.SetIsTouchingPlatform(false);
     }
     else
     {
         playerStateScript.SetIsTouchingPlatform(true);
     }
 }