forked from cgvr/DeltaVR
enable continuous movement by default, move config.json to game folder
This commit is contained in:
@@ -6,7 +6,7 @@ public class ConfigManager : MonoBehaviour
|
||||
{
|
||||
public GameConfig Config { get; private set; }
|
||||
public static ConfigManager Instance { get; private set; }
|
||||
private static string configPath => Path.Combine(Application.persistentDataPath, "config.json");
|
||||
public static string configPath = "config.json";
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
[System.Serializable]
|
||||
public class GameConfig
|
||||
{
|
||||
public string invokeAIUrl = "http://192.168.0.53:9090";
|
||||
public string invokeAIModelKey = "81d45960-08a0-4b8c-a48b-e7d73b21bfe2";
|
||||
public string InvokeAIUrl = "http://192.168.0.53:9090";
|
||||
public string InvokeAIModelKey = "81d45960-08a0-4b8c-a48b-e7d73b21bfe2";
|
||||
public string TrellisUrl = "http://192.168.0.53:7960";
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class InvokeAiClient : MonoBehaviour
|
||||
{
|
||||
Timeout = TimeSpan.FromSeconds(120)
|
||||
};
|
||||
httpClient.BaseAddress = new Uri(ConfigManager.Instance.Config.invokeAIUrl);
|
||||
httpClient.BaseAddress = new Uri(ConfigManager.Instance.Config.InvokeAIUrl);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
@@ -516,7 +516,7 @@ public class InvokeAiClient : MonoBehaviour
|
||||
|
||||
public async Task<byte[]> GenerateImage(string prompt)
|
||||
{
|
||||
string modelKey = ConfigManager.Instance.Config.invokeAIModelKey;
|
||||
string modelKey = ConfigManager.Instance.Config.InvokeAIModelKey;
|
||||
string refinedPrompt = prompt + promptSuffix;
|
||||
JObject args = new JObject()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user