Unity says that there is a error in the script but I don't find any errors

using System.Collections;
using UnityEngine.Ui;
using UnityEngine;

public class Game : MonoBehaviour
{
   public text ui;

   public void Increment()
   {   
       GameManager.Geld += GameManager.multiplier;
   }

   public void Buy(int num)
   {
       if(num == 1 && GameManager.Geld >= 25)
       {
           GameManager.multiplier += 1;
           GameManager.Geld -= 25;
       }
   }
    }

    // Update is called once per frame
    void Update()
    {
        ui.text = "Geld:" + GameManager.Geld;
    }

Thats the first script where the error is in.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour
{
    public static int Geld;
    public static int multiplier;
    void Start()
    {
        multiplier = 1;
        Geld = 0;
       
    }
}

Thats the second script there is no error in it but I think it helps you to understand the problem

And what is the error?

Oh, I can already see it. Check the braces …

what are the braces ?

These guys
8192241--1068081--upload_2022-6-9_13-59-31.png

Oh and wrong subforum

Since you’re in the same topic, it says I’m missing ; on
Assets\arrowpull.cs(11,8): error CS1002: ; expected

Assets\arrowpull.cs(11,10): error CS1002: ; expected

but I think I have them no?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class arrowpull : MonoBehaviour
{

private float CalculatePull(Vector3 pullPosition)
{
Vector3 pullDirection = pullPosition - start.position;
Vector 3 targetDirection = end.position - start.position;;
float maxLength = targetDirection.magnitude;

targetDirection.Normalize();
float pullValue = Vector3.Dot(pullDirection, targetDirection) / maxLength;
return Mathf.Clamp(pullValue, 0, 1);
}

    // Start is called before the first frame update
    void Start()
    {
       
    }

    // Update is called once per frame
    void Update()
    {
       
    }
}
Vector 3

Space. The final frontier. :smile: