已经可以重新恢复运行, 成功提升到RScript版本

This commit is contained in:
2025-11-26 17:59:18 +08:00
parent a0347dcfe6
commit 19175b72b3
6 changed files with 83 additions and 14 deletions

View File

@@ -86,6 +86,7 @@ namespace Demo.Game
}
if (string.IsNullOrEmpty(clipPath) == false)
{
/*
IEnumerator Run()
{
#if ENABLE_CLASS_Interaction
@@ -106,6 +107,24 @@ namespace Demo.Game
}
StartCoroutine(Run());
*/
#if ENABLE_CLASS_Interaction
var clipFile = new Interaction(clipPath);
#else
var clipFile = new ToolFile(clipPath);
#endif
if (clipFile.Exists() == false)
clipFile = new(MainConfig.GetFile(clipPath).GetFullPath());
if (clipFile.Exists() == false)
{
Debug.LogError($"Cannt load {clipPath}", this);
yield break;
}
yield return MainAudio.LoadAudio(clipFile, audioType);
content.SongLoadOverCallback(MainAudio);
StartCoroutine(GameAudioSystemInit());
}
}
else