コード例 #1
0
        public override void OnPostprocessFile(IAkyuiLoader loader, IPathGetter pathGetter)
        {
            var gitKeepPath = Path.Combine(pathGetter.AssetOutputDirectoryPath, ".gitkeep");

            if (File.Exists(gitKeepPath))
            {
                return;
            }

            File.Create(gitKeepPath).Close();
        }
コード例 #2
0
        static Paths()
        {
            switch (Application.platform)
            {
            case RuntimePlatform.Android:
                PathGetter = new AndroidPathGetter();
                break;

            case RuntimePlatform.IPhonePlayer:
                PathGetter = new IosPathGetter();
                break;

            case RuntimePlatform.OSXEditor:
                PathGetter = new MacEditorPathGetter();
                break;

            default:
                throw new NotImplementedException("unsupported platform " + Application.platform);
            }
        }
コード例 #3
0
 public virtual void OnPostprocessFile(IAkyuiLoader loader, IPathGetter pathGetter) { }
コード例 #4
0
 public DownloadMP3Command(IPathGetter pathGetter)
 {
     this.pathGetter = pathGetter;
 }
コード例 #5
0
 public DownloadToFileCommand(IPathGetter pathGetter)
 {
     this.pathGetter = pathGetter;
 }