public BallFactory(GameHandling.BallTypes BallType, float CreateTimer, bool IsUnlocked, bool IsBoosted)
 {
     ballType   = BallType;
     createTime = CreateTimer;
     isUnlocked = IsUnlocked;
     isBoosted  = IsBoosted;
 }
    //Funktioner til at vælge bolden
    public void PickBallType(string chosenBallType)
    {
        switch (chosenBallType)
        {
        case "Normal":
            ballType = GameHandling.BallTypes.Normal;
            GetComponent <MeshRenderer>().material = normalMat;
            break;

        case "Test":
            ballType = GameHandling.BallTypes.Test;
            GetComponent <MeshRenderer>().material = testMat;
            break;
        }
        GetComponent <BallMovement>().UpdateBall();
    }
 public void UpdateBall()
 {
     ballType = GetComponent <BallHandler>().ballType;
 }