private void OnTriggerEnter(Collider hit)
 {
     if (hit.gameObject.tag == "Brain")
     {
         brainsource.Play();
         hit.gameObject.SetActive(false);
         ms.addScore(1);
         if (ms.GetDistanceBetween() < 3)
         {
             ms.AddSpeed(0.5f);
         }
         if (ms.GetScore() % 10 == 0)
         {
             ms.AddSpeed(0.1f);
             mobscript.GainSpeed(1);
             if (ms.GetHearts() == 0)
             {
                 ms.AddHeart();
                 ms.SetHeartActive(0, true);
                 anim.SetBool("damaged", false);
             }
             else if (ms.GetHearts() == 1)
             {
                 ms.AddHeart();
                 ms.SetHeartActive(0, true);
                 ms.SetHeartActive(1, true);
             }
             else if (ms.GetHearts() == 2)
             {
                 ms.AddHeart();
                 ms.SetHeartActive(0, true);
                 ms.SetHeartActive(1, true);
                 ms.SetHeartActive(2, true);
             }
         }
         else if (ms.GetScore() % 20 == 0)
         {
             mobscript.GainSpeed(2);
         }
     }
 }