-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Markus
committed
Oct 25, 2023
1 parent
3a8d18d
commit e98face
Showing
6 changed files
with
118 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using System.IO; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace BuildManager { | ||
public class BuildManagerRuntimeSettings : ScriptableObject { | ||
[SerializeField] | ||
private string versionInfoPath = "VersionInfo.json"; | ||
public string VersionInfoPath { | ||
get { | ||
return Path.Combine("Assets/Resources/", versionInfoPath); | ||
} | ||
} | ||
|
||
[SerializeField] | ||
private string steamAppIdPath = "SteamAppId.json"; | ||
public string SteamAppIdPath { | ||
get { | ||
return Path.Combine("Assets/Resources/", steamAppIdPath); | ||
} | ||
} | ||
|
||
[SerializeField] | ||
private string gitHeadPath = "../../../.git/logs/HEAD"; | ||
public string GitHeadPath { | ||
get { | ||
return gitHeadPath; | ||
} | ||
} | ||
|
||
|
||
private static BuildManagerRuntimeSettings instance; | ||
public static BuildManagerRuntimeSettings Instance { | ||
get { | ||
if (instance == null) { | ||
instance = Resources.Load<BuildManagerRuntimeSettings>("Settings/BuildManagerRuntimeSettings"); | ||
} | ||
|
||
if(instance == null) { | ||
BuildManagerRuntimeSettings asset = CreateInstance<BuildManagerRuntimeSettings>(); | ||
|
||
AssetDatabase.CreateAsset(asset, "Assets/Resources/Settings/BuildManagerRuntimeSettings.asset"); | ||
AssetDatabase.SaveAssets(); | ||
AssetDatabase.Refresh(); | ||
} | ||
|
||
return instance; | ||
} | ||
} | ||
|
||
|
||
[InitializeOnLoadMethod] | ||
public static void Initialize() { | ||
instance = Instance; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters