Beispiel #1
0
        /// <summary>
        /// Returns the UnityPath to the target folder
        /// </summary>
        public static UnityPath GetFolderPath(ECommonFolder gfl)
        {
            switch (gfl)
            {
            case ECommonFolder.Assets:
                return(UnityPath.AssetsPath);

            case ECommonFolder.Project:
                return(UnityPath.ProjectPath);

            case ECommonFolder.Config:
                return(ConfigUnityPath);

            case ECommonFolder.RuntimeFiles:
                return(RuntimeFilesUnityPath);

            case ECommonFolder.UserData:
                return(UserDataUnityPath);
            }

            return(null);
        }
Beispiel #2
0
 /// <summary>
 /// Returns a path to a common folder
 /// </summary>
 public static UnityPath GetPath(ECommonFolder location)
 {
     return(UTECommonFolder.GetFolderPath(location));
 }