Example #1
0
        public static void AddFile(Object asset, string xCodePath = "")
        {
            ISD_AssetFile file = new ISD_AssetFile();

            file.Asset     = asset;
            file.XCodePath = xCodePath;

            AddFile(file);
        }
Example #2
0
        public static void AddFile(ISD_AssetFile file)
        {
            foreach (var assetFile in ISD_Settings.Instance.Files)
            {
                if (assetFile.Asset.Equals(file.Asset))
                {
                    ISD_Settings.Instance.Files.Remove(assetFile);
                    break;
                }
            }

            ISD_Settings.Instance.Files.Add(file);
        }