Prevent a project from using another projects script.

It is going to be pretty hard to explain this, but I will try my best. I have a game that I am working on with a Leap Motion and two of the levels use a different form of a Leap Manager script. I can’t rename them, otherwise they wont work and having them both in there causes errors. Is there any way to have it so that one project (level) doesn’t look at the other script? If not is there a way I can link a level to another project without it being in the asset folder?

Two options for you to look into:

  1. Custom Preprocessor Defines

  2. namespaces (c#): you will probably have to reference them in code because the inspector might not know the difference between the two.