When I try to build my game, Unity includes the scripts contained in my Editor directories. This implies the build to fail because Unity.Editor is not accessible during the build. I'm using Unity 2020.1.6f1, how can I solve this problem ?
This is the type of error i'm getting durring the build:
Assets\Scripts\Editor\EnemyLootEditor.cs(7,32): error CS0246: The type or namespace name 'Editor' could not be found (are you missing a using directive or an assembly reference?)
Theses errors doesn't occur when the game is lauched in Editor Mode.
This is a picture of my Scripts folder that contains all of my code files, including my Editor files:
