2025-08-14 11:35:16 +00:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2025-08-27 07:52:34 +00:00
|
|
|
namespace DDD.Restaurant
|
2025-08-14 11:35:16 +00:00
|
|
|
{
|
2025-08-27 08:25:11 +00:00
|
|
|
public class ManagementController : FlowController
|
2025-08-14 11:35:16 +00:00
|
|
|
{
|
2025-08-14 11:59:40 +00:00
|
|
|
public override Task InitializeController()
|
2025-08-14 11:35:16 +00:00
|
|
|
{
|
2025-08-14 11:59:40 +00:00
|
|
|
return Task.CompletedTask;
|
2025-08-14 11:35:16 +00:00
|
|
|
}
|
|
|
|
|
2025-08-14 11:59:40 +00:00
|
|
|
public override Task InitializeState()
|
2025-08-14 11:35:16 +00:00
|
|
|
{
|
|
|
|
// Load default asset
|
2025-08-19 04:51:42 +00:00
|
|
|
RestaurantState.Instance.ManagementState.InitializeReadyForRestaurant();
|
2025-08-14 11:59:40 +00:00
|
|
|
return Task.CompletedTask;
|
2025-08-14 11:35:16 +00:00
|
|
|
}
|
|
|
|
|
2025-08-14 11:59:40 +00:00
|
|
|
public override Task OnReadyNewFlow(GameFlowState newFlowState)
|
2025-08-14 11:35:16 +00:00
|
|
|
{
|
2025-08-14 11:59:40 +00:00
|
|
|
return Task.CompletedTask;
|
2025-08-14 11:35:16 +00:00
|
|
|
}
|
|
|
|
|
2025-08-14 11:59:40 +00:00
|
|
|
public override Task OnExitCurrentFlow(GameFlowState exitingFlowState)
|
2025-08-14 11:35:16 +00:00
|
|
|
{
|
2025-08-14 11:59:40 +00:00
|
|
|
return Task.CompletedTask;
|
2025-08-14 11:35:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|