Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets\Scripts\CombatScript.cs(188,44): error CS0136: A local or parameter named 'duration' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter #1

Open
facybenbook opened this issue Jul 25, 2021 · 1 comment

Comments

@facybenbook
Copy link

i downgraded the project to unity 2019 and i got the following error : Assets\Scripts\CombatScript.cs(188,44): error CS0136: A local or parameter named 'duration' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

could you tell me how i can fix it please

@FuzzyBoots
Copy link

It's probably referring to the definition at 179. You might try renaming "duration" to something else in the parameter list and body of CounterCoroutine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants