Esempio n. 1
0
        public static void Save(string guid, InterfaceMacro target, string code)
        {
            var path      = AssetDatabase.GUIDToAssetPath(guid);
            var finalPath = path.Remove(path.LastIndexOf("/") + 1, path.Length - path.LastIndexOf("/") - 1);

            code.Save().Custom(finalPath, target.title + ".cs").Text();
        }
Esempio n. 2
0
 public override void Initialize()
 {
     Images.Cache();
     _target   = metadata.value as InterfaceMacro;
     generator = InterfaceMacroGenerator.GetDecorator(_target);
 }