I have updated the script a bit but there are still errors. Can you check what's wrong with the script? Again, the Unity version that I'm using is 2022.1.4f1.