30 lines
946 B
C#
30 lines
946 B
C#
![]() |
using System.Threading.Tasks;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace DDD
|
||
|
{
|
||
|
public class RestaurantRunController : RestaurantFlowController
|
||
|
{
|
||
|
RestaurantCustomerStateSo _restaurantCustomerStateSo;
|
||
|
public override async Task InitializeController()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override async Task InitializeState()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override async Task OnReadyNewFlow(GameFlowState newFlowState)
|
||
|
{
|
||
|
var restaurantCustomerStateHandle = _restaurantCustomerStateSo.OnReadyNewFlow(newFlowState);
|
||
|
}
|
||
|
public override async Task OnExitCurrentFlow(GameFlowState exitingFlowState)
|
||
|
{
|
||
|
if (exitingFlowState == GameFlowState.RunRestaurant)
|
||
|
{
|
||
|
var restaurantCustomerStateHandle = _restaurantCustomerStateSo.OnExitCurrentFlow(exitingFlowState);
|
||
|
await Task.WhenAll(restaurantCustomerStateHandle);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|