Hey Frederik, welcome to the community!
Just as a heads-up, it is often better to copy/paste your code into your posts on the forum and then apply the code formatting characters, before and after it. It really helps with readability, especially on mobile devices but it also allows those that offer to help you to copy/paste parts of your code back, perhaps with suggestions/corrections, without having to type the whole lot out. If it’s quick to answer you’ll often find you get more responses
Screenshots are, of course, very useful for error messages or details from the Unity editor itself.
Hope this is of use
See also;