Problem with adding the FallingTiles script to the empty

I am using Unity 2018.3.14f1. When I try to add the script to the empty with the Box Collider 2d and Rigidbody2d it gives me a popup window which tell me: "Cant add script: Please fix compiler errors before creating new script components" in the console I have [11:10:45] (I think this is the time).

Should I just create different project with a different version of Unity?

Thanks!

  • Jonathan Gonzalez(jgonzalez) replied

    What does the error say exactly? Please copy the entire code here and I can determine what the fix would be. There may be an issue with another component or script and it wants you to fix them before adding that script. You could try a different version of Unity but I'm not sure that would resolve the issue.