added #if UNITY_EDITOR #endif directives to all editor related scripts to allow build compiles successfully