Ejemplo n.º 1
0
        public void RemoveEditorReferences()
        {
            var defaultReferences = GetDefaultReferences();

            foreach (var dRef in defaultReferences)
            {
                var file = new FileInfo(dRef);
                if (file.Name.Contains("Editor"))
                {
                    ExcludedReferences.Add(dRef);
                }
            }
        }
Ejemplo n.º 2
0
        public void AddUnityReferences()
        {
            var coreModuleLocation  = new FileInfo(typeof(MonoBehaviour).Assembly.Location);
            var unityAssemblyFolder = coreModuleLocation.Directory;
            var managedFolder       = unityAssemblyFolder.Parent;


            ExcludedReferences.Add(managedFolder.FullName + @"\UnityEngine.dll");
            ExcludedReferences.Add(PathUtilities.ReplaceSlashes(managedFolder.FullName + @"\UnityEngine.dll"));

            foreach (var hkFile in unityAssemblyFolder.EnumerateFiles("*.dll", SearchOption.TopDirectoryOnly))
            {
                if (hkFile.Name.Contains("UnityEngine"))
                {
                    //Debug.Log("Adding File = " + hkFile.FullName);
                    References.Add(PathUtilities.ReplaceSlashes(hkFile.FullName));
                }
            }
        }