已经可以重新恢复运行, 成功提升到RScript版本
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user