I come from a C++ background. I am used to having one instance of each source file somewhere on my computer and including them into my main project where required. I can have some container classes somewhere, some graphics code somewhere else and include them in my game project (the actual source files do not get copied they remain in situ). If I find that something in, say, the container class needs editing, I can make that change within the game project and the change will be reflected in all the projects that file is included in.
Is there a way of doing this when using csharp and unity?
thanks
My solution for this is through the use of SVN and SVN externals. If you don't know what an external is it's basically a link from a folder in you repository to another folder in the same repository or any other repository.
What I then do is have these externals inside me Assets folder for all my projects all referencing the same repository. Simply update edit and commit as normal and all instances of those files will be updated.
I'm unsure if there is another way to do this without SVN externals but I haven't tried.
This solution also works cross platform as well which is good.
For your question about doing it in some kind of coding i don’t know. But an easier solution for handling multiple computers for files i can recommend skydrive.
i’m using it. It’s very fast with adding files to all the computers sharing the folders. The only thing it has hard handling is more computers saving the same gamescene. So if 1 work on game Scene at a time it would be very easy. Sync is possible it just takes some time for gamescene. Good if you have many programmers.