Something wrong with the code

Hi. I use the script that you offer in this file.
It shows 15 errors…

Severity Code Description Project File Line Suppression State
Error CS0121 The call is ambiguous between the following methods or properties: ‘NumberWizard.StartGame()’ and ‘NumberWizard.StartGame()’ Assembly-CSharp C:\Repos\Unity2D\New_Wizard\Number Wizard UI\Assets\Scripts\NumberWizard.cs 15 Active
Severity Code Description Project File Line Suppression State
Error CS0229 Ambiguity between ‘NumberWizard.max’ and ‘NumberWizard.max’ Assembly-CSharp C:\Repos\Unity2D\New_Wizard\Number Wizard UI\Assets\Scripts\NumberWizard.cs 20 Active

Hi Angie, it looks like you have two NumberWizard.cs files within your Unity project - that’s what the Ambiguity error normally means.

Cheers, Chris

[edit: oops, thought that 2d meant the question was asked 2 days ago - oh well, hopefully this helps anyone else with a similar issue]

1 Like

Privacy & Terms