That’s kinda about it, Unity sees errors that don’t exist and that weren’t there yesterday
![alt text][3]
![alt text][3]
Your switch construction is C# 8 feature. This version of C# is supported by Unity 2020.2 (beta) only. So if your Unity version is smaller than 2020.2 you have to rewrite your code using C# 7. If you use 2020.2 (beta), then choose C# 8 compiler in your editor settings.
Well, turns out Unity just spontaneously decided to stop understanding he switch construction from 8.0, the “x switch { 0 => value1, 1 => value2, _ => value3}” one. Annoying af.