引入 BGM 切换+文档初版草稿
This commit is contained in:
@@ -14,7 +14,6 @@ namespace Procedure
|
||||
{
|
||||
private int _nextSceneId = 0;
|
||||
private bool _isChangeSceneComplete = false;
|
||||
private int _backgroundMusicId = 0;
|
||||
|
||||
public override bool UseNativeDialog => false;
|
||||
|
||||
@@ -59,7 +58,6 @@ namespace Procedure
|
||||
|
||||
GameEntry.Scene.LoadScene(AssetUtility.GetSceneAsset(drScene.AssetName), Constant.AssetPriority.SceneAsset,
|
||||
this);
|
||||
_backgroundMusicId = drScene.BackgroundMusicId;
|
||||
}
|
||||
|
||||
protected override void OnLeave(ProcedureOwner procedureOwner, bool isShutdown)
|
||||
@@ -110,11 +108,6 @@ namespace Procedure
|
||||
|
||||
Log.Info("Load scene '{0}' OK.", ne.SceneAssetName);
|
||||
|
||||
if (_backgroundMusicId > 0)
|
||||
{
|
||||
GameEntry.Sound.PlayBGM(_backgroundMusicId);
|
||||
}
|
||||
|
||||
_isChangeSceneComplete = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -73,6 +73,8 @@ namespace Procedure
|
||||
|
||||
_menuFormController = new MenuFormController();
|
||||
_menuFormController.OpenUI(new MenuFormContext());
|
||||
|
||||
GameEntry.Sound.PlayBGM(1);
|
||||
}
|
||||
|
||||
protected override void OnLeave(IFsm<IProcedureManager> procedureOwner, bool isShutdown)
|
||||
|
||||
Reference in New Issue
Block a user