EndCurrentFlow 추가

This commit is contained in:
NTG_DESKTOP 2025-08-12 21:57:39 +09:00
parent e22f2d6857
commit 7aad5a3d2c
3 changed files with 7 additions and 15 deletions

View File

@ -47,7 +47,7 @@ public void ChangeFlow(GameFlowState newFlowState)
return;
}
EndCurrentFlow();
_ = EndCurrentFlow();
_ = ReadyNewFlow(newFlowState);
}
@ -57,9 +57,14 @@ private bool CanChangeFlow(GameFlowState newFlowState)
return true;
}
private void EndCurrentFlow()
private async Task EndCurrentFlow()
{
var endCurrentFlowState = GameFlowDataSo.CurrentGameState;
foreach (var handler in FlowHandlers)
{
await handler.OnExitCurrentFlow(endCurrentFlowState);
}
}
private async Task ReadyNewFlow(GameFlowState newFlowState)

View File

@ -1,11 +0,0 @@
// using System.Threading.Tasks;
// using UnityEngine;
//
// namespace DDD
// {
// public abstract class GameFlowTask : ScriptableObject
// {
// public abstract Task OnReadyNewFlow(GameFlowState newFlowState);
// public abstract Task OnExitCurrentFlow(GameFlowState exitingFlowState);
// }
// }

View File

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: b072e73316b7d534b8ec18ffa0b8bfa2