2025-07-02 10:24:01 +08:00
|
|
|
|
using System;
|
|
|
|
|
using HK;
|
|
|
|
|
using Runtime.Produce;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Runtime
|
|
|
|
|
{
|
|
|
|
|
public class GameData : ManagerBase<GameData>
|
|
|
|
|
{
|
|
|
|
|
public ShoppingCart shoppingCart = new ShoppingCart();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Game : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
private void Awake()
|
|
|
|
|
{
|
|
|
|
|
UIManager.Instance.LoadUI(nameof(HomeUI), AssetConst.Assets_Res_Prefab_UI_HomeUI_prefab);
|
|
|
|
|
UIManager.Instance.LoadUI(nameof(AgreementUI), AssetConst.Assets_Res_Prefab_UI_AgreementUI_prefab);
|
|
|
|
|
UIManager.Instance.LoadUI(nameof(ThemeUI), AssetConst.Assets_Res_Prefab_UI_ThemeUI_prefab);
|
|
|
|
|
UIManager.Instance.LoadUI(nameof(ChooseProductUI), AssetConst.Assets_Res_Prefab_UI_ChooseProductUI_prefab);
|
|
|
|
|
UIManager.Instance.LoadUI(nameof(ProductUI), AssetConst.Assets_Res_Prefab_UI_ProductUI_prefab);
|
|
|
|
|
UIManager.Instance.LoadUI(nameof(ShoppingCartUI), AssetConst.Assets_Res_Prefab_UI_ShoppingCartUI_prefab);
|
2025-07-10 23:16:27 +08:00
|
|
|
|
UIManager.Instance.LoadUI(nameof(SubmitMessageUI), AssetConst.Assets_Res_Prefab_UI_SubmitMessageUI_prefab);
|
|
|
|
|
UIManager.Instance.LoadUI(nameof(PrintReceiptUI), AssetConst.Assets_Res_Prefab_UI_PrintReceiptUI_prefab);
|
2025-07-13 15:53:13 +08:00
|
|
|
|
UIManager.Instance.LoadUI(nameof(SettingUI), AssetConst.Assets_Res_Prefab_UI_SettingUI_prefab);
|
2025-07-02 10:24:01 +08:00
|
|
|
|
|
|
|
|
|
ProcedureManager.Instance.ClearProcedures();
|
|
|
|
|
ProcedureManager.Instance.AddProcedure(nameof(StartGameProcedure), new StartGameProcedure());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
|
{
|
|
|
|
|
ProcedureManager.Instance.StartProcedure(nameof(StartGameProcedure));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|