Example #1
0
        /// <summary>
        /// Gets a PathString
        /// </summary>
        public static UnityPath GetFilePath(ECommonFile gfl)
        {
            switch (gfl)
            {
            case ECommonFile.Logs:
                return(Folders.GetPath(ECommonFolder.Project).Path.InsertAtEnd(cLogsFileName));

            case ECommonFile.Configs:
                return(Folders.GetPath(ECommonFolder.Assets).Path.InsertAtEnd(cConfigFileName));

            case ECommonFile.Saves:
                return(Folders.GetPath(ECommonFolder.UserData).Path.InsertAtEnd(cSavesFileName));

            case ECommonFile.Data:
                return(Folders.GetPath(ECommonFolder.RuntimeFiles).Path.InsertAtEnd(cDataFileName));
            }

            return(null);
        }
Example #2
0
 /// <summary>
 /// Constructs path to common file based on type
 /// </summary>
 public static UnityPath GetCommonFile(ECommonFile file)
 {
     return(UTECommonFile.GetFilePath(file));
 }